Select wx-config script
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Select wx-config script
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?
How do you see that?
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Select wx-config script
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:
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:
It should now become:
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
- 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
Code: Select all
WX_TOOL=wx-config
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:
Code: Select all
$(WX_TOOL)
Code: Select all
$(shell wx-config --debug=no --unicode=yes --libs)
Code: Select all
$(shell $(WX_TOOL) --debug=no --unicode=yes --libs)
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Select wx-config script
Thanks Eran. It is rather better doing that than changing stuffs in each project
CodeLite 15.x
CodeLite is awesome, I just Love it!
-
- CodeLite Curious
- Posts: 8
- Joined: Mon Jun 06, 2011 3:20 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Select wx-config script
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
----------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
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Select wx-config script
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:Is this a problem with my environment, the source code, or my CodeLight settings
Eranjimboh 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
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 8
- Joined: Mon Jun 06, 2011 3:20 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Select wx-config script
Thanks. I rebuilt wxmac and it works now.