User forums > Help
wxWidgets 2.6 (MSW, GCC) installation instructions
wittend:
I keep havong one aggravation after another. Using Morten's batch file, I get:
gcc: installation problem, cannot exec `cc1': No such file or directory
On checking the directory where gcc & all the mingw stuff is, yes, there is no cc1.exe. So I run the uninstaller for MinGW5.0.2 and it deletes everything, including the D:\bin\CodeBlocks directory that was the parent, and any other subdirectories below it. Now I will try to install CodeBlocks again, then Mingw from the individual pieces. This is really dragging on...
dave
MortenMacFly:
--- Quote from: wittend on February 24, 2006, 03:47:58 pm ---This is really dragging on...
--- End quote ---
I can assure you: It will work at some point and you'll not regret the ability to compile C::B yourself... Just to hopefully decrease your frustration... ;-)
By the way: The MSW ZIP file should be pertfectly OK.
Morten.
TDragon:
--- Quote from: wittend on February 24, 2006, 03:47:58 pm ---On checking the directory where gcc & all the mingw stuff is, yes, there is no cc1.exe.
--- End quote ---
Actually, cc1.exe resides in <mingw>\libexec\gcc\mingw32\3.4.2, and gcc.exe usually has no trouble finding it (cc1.exe performs the actual compilation). It may be an issue with paths because of the batch file.
I'd really recommend installing MinGW first, and then just building wxWidgets, before you even install Code::Blocks. (Which, if you're using one of the nightlies like you should be, means the first time you run it.)
MortenMacFly:
--- Quote from: TDragon on February 24, 2006, 04:29:43 pm ---It may be an issue with paths because of the batch file.
--- End quote ---
Could be, but then it wouldn't work for me, too... but it works?!
wittend:
Well, I'm happy to report that I have been making progress.
Morten is right, his batch file is Ok, I had glossed over the line that sets the path (overriding the default) and had been making certain that my system path was pointing at the MinGW stuff. My dumb mistake. This is what was making it appear to me that the MinGW 5.0.2 installer had misbehaved. (Though I still believe that it 'uninstalled' the directory that the MinGW stuff was installed *under*, along with my test projects - no biggie, but it might bear checking.)
I successfully ran the batch file build by commenting out the 'set path line' and, aside from a few zillion warnings, everything went well. I built everything in the batch, just as it was.
Now, after installing CodeBlocks again from the nightly build and adjusting the paths as best I could, I created a minimal wxWidgets app, and compiled it. Unfortunately, the linker is still not quite happy. This is probably due to my lack of knowledge of its needs. The error messages I get now are far less threatening, but I could still use some advice. Here they are:
-------------- Build: default in testWX ---------------
mingw32-g++.exe -LD:\bin\wxWidgets-2.6.3\lib\gcc_dllUnicode -LD:\bin\wxWidgets-2.6.3\lib -LD:\bin\CodeBlocks\lib -LD:\bin\CodeBlocks\wx\lib -o wxwidgets.exe .objs\main.o ..\..\..\..\bin\wxWidgets-2.6.3\lib\gcc_dllUnicode\libwxmsw26u.a ..\..\..\..\bin\CodeBlocks\lib\libmingwthrd.a ..\..\..\..\bin\CodeBlocks\lib\libmingw32.a ..\..\..\..\bin\CodeBlocks\lib\libmingwex.a -mwindows
.objs\main.o:main.cpp:(.text$_ZN12wxStringBase10ConcatSelfEjPKc[wxStringBase::ConcatSelf(unsigned int, char const*)]+0x22): undefined reference to `_imp___ZN12wxStringBase10ConcatSelfEjPKcj'
.objs\main.o:main.cpp:(.text$_ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x27): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
.objs\main.o:main.cpp:(.text$_Z16wxGetTranslationPKc[wxGetTranslation(char const*)]+0x2c): undefined reference to `_imp___ZNK8wxLocale9GetStringEPKcS1_'
.objs\main.o:main.cpp:(.rdata$_ZTV5MyApp[vtable for MyApp]+0x68): undefined reference to `wxApp::Initialize(int&, char**)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
thanks,
-- dave
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version