Author Topic: Getting wxwidgets to work [solved]  (Read 3682 times)

philipptr

  • Guest
Getting wxwidgets to work [solved]
« 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 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?
« Last Edit: April 14, 2007, 06:20:49 pm by philipptr »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Getting wxwidgets to work
« Reply #1 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 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

philipptr

  • Guest
Re: Getting wxwidgets to work
« Reply #2 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Getting wxwidgets to work
« Reply #3 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
« Last Edit: April 14, 2007, 06:12:30 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

philipptr

  • Guest
Re: Getting wxwidgets to work
« Reply #4 on: April 14, 2007, 06:14:11 pm »
ah thanks works now, had to change it into 28.
thanks both of you :)