Existing wxWidgets v3.03 Project Migration to v3.04

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
spflanze
Earned some good credits
Earned some good credits
Posts: 130
Joined: Tue Feb 15, 2011 10:02 pm

Existing wxWidgets v3.03 Project Migration to v3.04

Post by spflanze »

How can a wxWidgets project created by the wizard to use wxWidgets v3.03 be changed to use wxWidgets v3.04?
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: Existing wxWidgets v3.03 Project Migration to v3.04

Post by PB »

What wizard/IDE/OS?

For example on Windows, nothing needs to be done as long as the path remained the same. If a new wxWidgets version was installed into a different directory, the paths need to be changed at least for include and linker (the libraries themselves should still have the same name as before) directories.
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Existing wxWidgets v3.03 Project Migration to v3.04

Post by eranon »

Since I saw in another thread you're using Codeblocks, you simply have to adjust the path to wxWidgets as PB said. In Codeblocks, the easiest way is to use a global variable in settings. For example, you can call it "wx" if you're using a single wxWidgets version for all your projects or wx30 if you have some projects based on wxWidgets 3.0.x and some others based on others wxWidgets serials (eg. wx28, wx29, wx31). Then, in your project, your search directories about wxWidgets are based on this Clodeblocks variable.

In your build options (here, search directory about linker) rather than this hardcoded path:

Code: Select all

C:\devlibs\wxWidgets-3.1.0
you'll use this variable one:

Code: Select all

$(#wx31)\lib\gcc_lib64
knowing the wx31 variable has been defined like this in Codeblocks settings:
snap_0005487.png
snap_0005487.png (20.39 KiB) Viewed 1204 times
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
Post Reply