User forums > General (but related to Code::Blocks)

WxWidgets Setup Issue

(1/3) > >>

alen12345:
I installed wxwidgets using the instalattion pack with the pre-compiled library and I don't seem to be able to mak it work.
After setting the global compiler variable, I had no problem creating the project but the application does not run. I'm trying to build a Frame Based application using wxSmith. Using wxWidgets DLL it compiles fine but crashes asking for mingw10.dll in debug mode when building and running pressing F9. Turning on the option to build as a monolithic library the compiler throws some errors due to some reference issues.
What's the problem? I installed WxWidgets using the Pack version 2.8, whereas, as fas as the coompiler is concerned, I'm using GCC 4.7.1.

oBFusCATed:

--- Quote from: alen12345 on August 15, 2012, 09:46:18 am ---I installed WxWidgets using the Pack version 2.8, whereas, as fas as the coompiler is concerned, I'm using GCC 4.7.1.

--- End quote ---
Both compilers (the one used to build wx and the one you're using) must match. If they don't match you'll have endless problems.

alen12345:
Compiled fine in dynamic mode, unfortunately all other options such as static or monolithic fail since codeblocks cannot find the right configuration, even if selected in the wizard. Should I edit some other files after the build to make it work?

Jenna:
If you don't have the appropriate wx library, it can not work.
If you compile wxWidgets yourself, you can chose any options you need, if you use precompiled binaries you depend on the distributor.

alen12345:
I did not explain my issue properly. I compiled using the other options like for example MONOLITHIC=1 so I have the suitable libraries but codeblocks does not recognize them.

Like explained at this link: http://wiki.wxwidgets.org/WxWidgets_Build_Configurations

Navigation

[0] Message Index

[#] Next page

Go to full version