Configure and wx-config location on MAC

Discussion about CodeLite development process and patches
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Configure and wx-config location on MAC

Post by Roey »

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
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Configure and wx-config location on MAC

Post by eranif »

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:

Code: Select all

alias wx-config='/usr/local/bin/wx-config'
Or, if you are not interested in changing things in a persistent way:

Code: Select all

export PATH=/usr/local/bin:$PATH
./configure
make 
Eran
Make sure you have read the HOW TO POST thread
Post Reply