User forums > Help

Errors building wxWidgets for Code::Blocks

<< < (2/2)

jeffg:
My version of mingw32-g++ is the version bundled with CB 10.05, i.e 4.4.1 (TDM-2 mingw32).

I will try rebuilding using the instructions in your link. Presumably the reason it says that it's not a stable version is because it's old text.

I'm a bit puzzled though: since the wxWidgets stuff is all self-contained (makefiles, sources), I don't see why there should be any errors or warnings however you build it. How does it depend on the version of mingw32? Probably I'm being naive here :)

EDIT: Rebuilt using new instructions and now I have 2 DLLs!! wxmsw291u_gcc_custom.dll and wxmsw291u_gl_gcc_custom.dll.
I have no errors, but still a lot of warnings similar to:

--- Code: ---Creating library file: ..\..\lib\gcc_dll\libwxmsw29u.a
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.1000 ' unrecognized
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: <unknown-file>:0: syntax error
Warning: .drectve `-export:T.1225 ' unrecognized

--- End code ---

That's the Unicode/Release version. Should I now go ahead to create all four sets of DLLs: unicode/non-unicode release/debug ? If I want to build a wxWidgets project, can I build the main project with debug using the release version of wxWidgets? I assume I can. How about unicode/non-unicode?

Sorry for so many questions.

EDIT #2: I think I have answered my own question. When I created a new wxWidgets project in CB, I could only choose Release and Unicode to get a clean build - if I didn't check the Unicode box I got undefined reference errors, and it wouldn't build a Debug version. Therefore I need to build all four sets. Still, getting one clean build which runs is a big leap forward for me! :)

EDIT #3: I have managed to build both Release and Debug versions with Unicode, but I get the similar errors in Scintilla that I got before when building with UNICODE=0.

stahta01:

--- Quote from: daniloz on March 03, 2011, 09:32:33 am ---@Tim:
My ultimate goal is to have C::B entirely compile for 64bit on Windows 7. Any experience on that?

--- End quote ---

Yes, I failed every time I tried it.

Tim S.

steve64beginner:
I had some issues with the build of wxWidgets according to these instructions.

My fixes:
 'set PATH=<MINGW>\bin;%PATH%' instead of 'set PATH=<MINGW>\bin'
compiled failed until I moved <MINGW> from c:\Program Files\CodeBlocks to c:\
I had to reissue the command 'cd /d <WXWIN>\build\msw' after the clean.

The 'make' just finished and I did not capture the log but I am just happy that it ran. Just now beginning to attempt a project in Code::Blocks

Hope this helps someone.
Steve S.

Navigation

[0] Message Index

[*] Previous page

Go to full version