Page 1 of 1

Configure and wx-config location on MAC

Posted: Sun Jun 26, 2011 9:45 pm
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

Re: Configure and wx-config location on MAC

Posted: Sun Jun 26, 2011 9:52 pm
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