Code::Blocks Forums

User forums => Help => Topic started by: philipptr on April 14, 2007, 02:45:37 pm

Title: Getting wxwidgets to work [solved]
Post by: philipptr on April 14, 2007, 02:45:37 pm
I've compiled wxwidgets like described at http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide (http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide) and added C:\wxWidgets-2.8.3\lib to the linker directories and C:\wxWidgets-2.8.3\include to the compiler directories, but I still get "C:/wxWidgets-2.8.3/include/wx/platform.h:196:22: wx/setup.h: No such file or directory" :/ Does someone know whats wrong/another guide on installing wxwidgets for codeblocks?
Title: Re: Getting wxwidgets to work
Post by: stahta01 on April 14, 2007, 03:43:58 pm
I've compiled wxwidgets like described at http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide (http://www.wxwidgets.org/wiki/index.php/CodeBlocks_Setup_Guide) and added C:\wxWidgets-2.8.3\lib to the linker directories and C:\wxWidgets-2.8.3\include to the compiler directories, but I still get "C:/wxWidgets-2.8.3/include/wx/platform.h:196:22: wx/setup.h: No such file or directory" :/ Does someone know whats wrong/another guide on installing wxwidgets for codeblocks?

Assuming you used GCC Shared Unicode, try adding C:\wxWidgets-2.8.3\lib\gcc_dll\mswu to the compiler directories.

Tim S
Title: Re: Getting wxwidgets to work
Post by: philipptr on April 14, 2007, 05:43:54 pm
thanks very much :) , seems like it helped but still I get one error:
C:\Programme\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
Title: Re: Getting wxwidgets to work
Post by: stahta01 on April 14, 2007, 06:05:16 pm
What ever you are compiling expects wxWidgets 2.6 you need to change it to use wxWidgets 2.8 or use wxWidgets 2.6 instead.

What version of Code::Blocks are you using? RC2 or SVN? If SVN, what number?

If SVN (also called nightly build), "Project" -> "Build Options" "Linker Settings" Under "Link Libraries" look for something like wxmsw26$(WX_SUFFIX) change the 26 to 28 so it becomes wxmsw28$(WX_SUFFIX).

Tim S
Title: Re: Getting wxwidgets to work
Post by: philipptr on April 14, 2007, 06:14:11 pm
ah thanks works now, had to change it into 28.
thanks both of you :)