Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bfr on May 13, 2007, 02:25:46 am

Title: Using wxWidgets with Code::Blocks
Post by: bfr on May 13, 2007, 02:25:46 am
Could I use this (http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_(MSW)) to get wxWidgets 2.8.3 to work with Code::Blocks?
Title: Re: Using wxWidgets with Code::Blocks
Post by: Deschamps on May 13, 2007, 02:31:31 am
Yes. At least, the way wxWidgets v2.6.2 compiles from sources with MinGW hasn't changed in the current 2.8.3.
Title: Re: Using wxWidgets with Code::Blocks
Post by: bfr on May 13, 2007, 03:47:39 am
Thanks.  I compiled wxWidgets successfully, but I still am unable to create a wxWidgets project.  I have wxWidgets 2.8.3 installed to C:\wxWidgets-2.8.3 and I am using the May 12th nightly build of Code::Blocks.  When I select the wxWidgets template when starting a new project, after a few menus, when I get to the one that has the "wxWidgets Library Settings" and "Miscellaneous Settings" and try to press Next, I get "A matching Debug ocnfiguration cannot be found in the wxWidgets directory you specified.  This means that the Debug target of your project will not build.  Are you sure you want to continue with these settings?"  What's wrong?  I entered in C:\wxWidgets-2.8.3 for the directory, which should be correct....

EDIT:  I got it working, thanks to wxPack. 
Title: Re: Using wxWidgets with Code::Blocks
Post by: Deschamps on May 13, 2007, 03:35:43 pm
This happens probably because you have built only a "release" version for your wxWidgets libraries, and then C::B wizard is not able to locate the debug ones. If you want compile adding debug info into your developments, you'll need to build a debug version for wxWidgets, too (adding a BUILD=debug option when you use mingw32-make).

But if you don't need debug versions, simply uncheck that option in the wizard' targets.