Problems Compiling Codelite on Mac (10.6.7)

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

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Roey »

Hi,

Yes, Auria, the broken bundles are the result of me not performing 'make install' for wx. With make install, I get a working bundle.

I just have this craze trying not to do 'make install' or using the default wx lib that ship with OS X (/usr/bin).

Although I did run export PATH=/Development/wx/wx2.8.12/build-codelite-debug:$PATH before make, it seems the configure script has dependencies on the libs being under /usr/local
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Roey »

Hmm...

I guess the right way of doing this is to provide --prefix when building the various wx builds, but do perform make install.
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Roey »

OK,

I manage to build and get a working bundle with the release version.

Debug will build but when creating the bundle I get:

Code: Select all

Creating Mac bundle...
Running install_name_tool...
cp: ../lib/CodeDesigner.so: No such file or directory
cp: ../lib/libwxscintillau.so: No such file or directory
cp: ../lib/libpluginu.so: No such file or directory
cp: ../lib/libcodeliteu.so: No such file or directory
cp: ../lib/libwxsqlite3u.so: No such file or directory
cp: ../lib/libdblayersqliteu.so: No such file or directory
cp: ../lib/libwxshapeframeworku.so: No such file or directory
I don't have lib/CodeDesigner.so at all, for all the others I got the debug version.
Auria
CodeLite Enthusiast
Posts: 26
Joined: Sat Oct 30, 2010 7:19 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Auria »

cp: ../lib/CodeDesigner.so: No such file or directory
cp: ../lib/libwxscintillau.so: No such file or directory
cp: ../lib/libpluginu.so: No such file or directory
cp: ../lib/libcodeliteu.so: No such file or directory
cp: ../lib/libwxsqlite3u.so: No such file or directory
cp: ../lib/libdblayersqliteu.so: No such file or directory
cp: ../lib/libwxshapeframeworku.so: No such file or directory
Can you check what are the names of the libraries that are actually there?
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Roey »

Apart from CodeDesigner.so, which is not under /lib whatsoever, all the other libraries has the same name as in the log only with 'd' at the end (so libpluginud.so, etc.)

Thanks!
Auria
CodeLite Enthusiast
Posts: 26
Joined: Sat Oct 30, 2010 7:19 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Auria »

Hmm maybe the OSX scripts just have never been tested in debug mode :lol:
You can perhaps try to open the OSX scripts (don't remember where they are) and fix them to handle debug libraries
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by eranif »

Auria wrote: (don't remember where they are) and fix them to handle debug libraries

Code: Select all

PATH_TO_CODELITE_SRC/Runtime/make_mac_bundle.sh
Eran
Make sure you have read the HOW TO POST thread
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: Problems Compiling Codelite on Mac (10.6.7)

Post by Roey »

Attached the patch.

Although it doesn't seem to cause any issue, the bundler still produces:

Code: Select all

cp: ../lib/CodeDesigner.so: No such file or directory
I had a look at /lib for both debug and release and none has CodeDesigner.so, nor does the stable release bundle has it.

I reckon it is safe to take it out?
You do not have the required permissions to view the files attached to this post.
Post Reply