[Ipe-discuss] compile pb on mac

Thon, Michael m.thon at jacobs-university.de
Tue Mar 8 17:41:40 CET 2011


Dear Oliver,

it seems that your ipe was linked against a dynamic lua library that has its install_name set to "@executable_path/../lib/liblua.5.1.dylib". Therefore, on executing ipe, it will search for the dynamic library in that location, where "@executable_path" is replaced by the path to the ipe executable.

The install_name in the lua library provided by MacPorts should *not* be set like this. You can check by doing "otool -L /opt/local/lib/liblua.5.1.dylib". If it is, I would do a sudo port selfupdate, followed by sudo port upgrade outdated (and recompile ipe).

Most likely, though, you are accidentally linking against a lua library that is sitting in some .app bundle (since there it is typical to set the install_name like this, so that you can move the bundle around). And this is probably in your $PATH, or $LDFLAGS or similar for some reason (which it shouldn't be). In this case you would need to fix your path settings, and recompile ipe.

You could also check what "pkg-config --libs lua" returns (should be "-L/opt/local/lib -llua -lm"). Otherwise, you may have a pkg-config from some .app bundle in your path causing the trouble.

Hope this helps.
Cheers,
Michael

-----
$ ipe 
alucite:Periodic_3_triangulation_3 odevil$ ipe 
dyld: Library not loaded: @executable_path/../lib/liblua.5.1.dylib 
  Referenced from: /usr/local/bin/ipe 
  Reason: image not found 
Trace/BPT trap 

$ ls /usr/local/lib/*lua* 
/usr/local/lib/libipelua.so        /usr/local/lib/libipelua.so.7.0.14 
$ ls /opt/local/lib/*lua* 
/opt/local/lib/liblua.5.1.4.dylib  /opt/local/lib/liblua.dylib /opt/local/lib/liblua.5.1.dylib 



More information about the Ipe-discuss mailing list