Page 1 of 1
Select wx-config script
Posted: Mon Jan 24, 2011 10:58 pm
by evstevemd
I think there should be an option to set up active wx-config in enviroment so that it will be easy to switch btn versions of wxwidgets without much effort. Currently for each new project (With wx29) I have to enter manually wx-config path so that it will not use default wx28! Like in C::B there is option to setup global wx variable.
How do you see that?
Re: Select wx-config script
Posted: Tue Jan 25, 2011 12:43 pm
by eranif
you can use wx-config without absolute path but define various environment variables sets.
- From: 'Settings | Environment Variables...'
- You should have by default one set named 'Default'
- Click on the 'New Set...' button and create new set - name it 'wx-29'
- Copy the content of the 'Default' and paste it into the wx-29
- Add new variable:
In the 'wx-29' make it:
Code: Select all
WX_TOOL=/path/to/my/wx29/wx-config
and in the 'Default' set, make it point to the default
- Click OK and close this dialog
In your project (or workspace) - you can select which environment variables set will be used.
Right click on your project: 'Settings | Environment' and change the 'Environment variables set to use' from 'Default' to 'wx-29'
Replace the wx-config line with:
So instead of:
Code: Select all
$(shell wx-config --debug=no --unicode=yes --libs)
It should now become:
Code: Select all
$(shell $(WX_TOOL) --debug=no --unicode=yes --libs)
NOTE:
If you don't want to select the environment variable set per project, you can also do this from the 'Workspace' level: right click on the workspace icon and select 'Workspace Settings | Environment'
Eran
Re: Select wx-config script
Posted: Fri Feb 04, 2011 4:23 pm
by evstevemd
Thanks Eran. It is rather better doing that than changing stuffs in each project
Re: Select wx-config script
Posted: Mon Jun 06, 2011 3:24 am
by jimboh
I followed these instructions exactly but received the following error messages when I tried to build a project:
----------Build Started--------
/bin/sh -c '"make" -j 4 -w -f "SleepyHead_wsp.mk"'
make: Entering directory `/Users/Jimbo/sleepyhead/Projects/CodeLite/OSX'
----------Building project:[ SleepyHead - Debug ]----------
Warning: No config found to match: /opt/local/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /opt/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /opt/local/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /opt/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
make[1]: Entering directory `/Users/Jimbo/sleepyhead/Projects/CodeLite/OSX'
mkdir -p './Debug/SleepyHead.app/Contents' && cp -f Info.plist './Debug/SleepyHead.app/Contents/Info.plist'
mkdir -p './Debug/SleepyHead.app/Contents/Resources/' && cp -f SleepyHead.icns './Debug/SleepyHead.app/Contents/Resources/SleepyHead.icns'
make[1]: Leaving directory `/Users/Jimbo/sleepyhead/Projects/CodeLite/OSX'
Warning: No config found to match: /opt/local/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /opt/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /opt/local/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /opt/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
make[1]: Entering directory `/Users/Jimbo/sleepyhead/Projects/CodeLite/OSX'
/Users/Jimbo/sleepyhead/src/libs/sleeplib/preferences.cpp:172:20: error: missing binary operator before token "("
make[1]: *** [Debug/sleeplib_preferences.o.d] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/Users/Jimbo/sleepyhead/Projects/CodeLite/OSX'
make: *** [All] Error 2
make: Leaving directory `/Users/Jimbo/sleepyhead/Projects/CodeLite/OSX'
----------Build Ended----------
2 errors, 0 warnings
Is this a problem with my environment, the source code, or my CodeLight settings?
How do I fix this?
P.S. I just noticed that /opt/local/bin/wx-config is an alias to /opt/local/lib/wx/config/mac-unicode-release-2.8
Re: Select wx-config script
Posted: Mon Jun 06, 2011 6:52 am
by eranif
jimboh wrote:Is this a problem with my environment, the source code, or my CodeLight settings
The problem is that you try to pass the flag '--debug=yes' to the wx-config tool, but you dont have wx debug version installed as clearly stated in the error you received:
jimboh wrote:Warning: No config found to match: /opt/local/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /opt/local/lib/wx/config
If you require this configuration, please install the desired
library build
Eran
Re: Select wx-config script
Posted: Mon Jun 06, 2011 9:23 am
by jimboh
Thanks. I rebuilt wxmac and it works now.