dyld: Library not loaded

57 views
Skip to first unread message

Silex

unread,
Sep 16, 2012, 3:06:44 PM9/16/12
to oce...@googlegroups.com

Hello!

After I successfully built OCE on Mountain Lion I ran ma Xcode project. Everything went well, when suddenly before the app could started I got this error:

dyld: Library not loaded: libFWOSPlugin.2.dylib

I figured it out, that Xcode is searching for this .dylib in /usr/lib so if I copy it there, than the error dismisses but a new one comes in searching for the next .dylib...hence if I copy all of these libs to /usr/bin the app will start...but I don't think this is the right solution!

How can I tell Xcode to search in other places for these libraries?

Thanks in advance!

D. Barbier

unread,
Sep 16, 2012, 3:15:38 PM9/16/12
to oce...@googlegroups.com
Hello,

You must run
make install
so that CMake installs all files at the right place. If you do not
want to install them under /usr, you can specify another location with
cmake -DOCE_INSTALL_PREFIX=/path/to/somewhere

That said, maybe it does not work well under Mac OSX; there had been
discussions about RPATH issues months ago, see issue #77 and the
thread linked from there. IIRC OSX users set DYLD_LIBRARY_PATH
environment variable to point to OCE libraries, but it would be great
to fix this issue for real.

Denis

Silex

unread,
Sep 16, 2012, 3:22:49 PM9/16/12
to oce...@googlegroups.com
I ran the following cake command:

cmake -DOCE_INSTALL_PREFIX:PATH=$HOME/OCE \
-DOCE_WITH_FREEIMAGE:BOOL=ON \
-DOCE_WITH_GL2PS:BOOL=ON \
-DOCE_DRAW:BOOL=ON \
..

So because of the first cmake flag (the INSTALL_PREFIX one) ot didn't installed at the "right" place? I mean right place like it didn't installed where Xcode would search for it? So if I would leave that cmake flag out, than it would install to the "right" directory? I mean right where Xcode will search for it.
Reply all
Reply to author
Forward
0 new messages