I'm not sure I'm getting this right, but this is what I gathered so far:
OS X ships with a version of wxWidgets (2.8.8 on my OS X 10.6.7) which has wx-config in /usr/bin
/usr/bin comes on the search path before /usr/local so even if one make install wxWidgets the wx-config will still output the 2.8.8 in /usr/bin (this can be solved by mv /usr/bin/wx-config /usr/bin/wx-config.old)
It seems that when running configure on a Mac, there's no way to tell the script the location of the requested wx-config. This forces a make install of a wxWidgets library tailored to CodeLite. Is the flags needed to build the wxWidgets library so CodeLite complies right documented anywhere?
Am I getting this whole business right or making it far more complicated that it is?
I can add wx-config path to configure if requested.
Thanks
Configure and wx-config location on MAC
-
- CodeLite Enthusiast
- Posts: 43
- Joined: Fri Aug 22, 2008 1:32 am
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Configure and wx-config location on MAC
If you are not interested in using the wxWidgets that comes with Mac, just create a symlink from /usr/bin/wx-config to the correct one.
OR
create an alias:
Or, if you are not interested in changing things in a persistent way:
Eran
OR
create an alias:
Code: Select all
alias wx-config='/usr/local/bin/wx-config'
Code: Select all
export PATH=/usr/local/bin:$PATH
./configure
make
Make sure you have read the HOW TO POST thread