
Originally Posted by
dup
After long hours on google i found an interesting link for the qwt installation:
http://www.fhi-berlin.mpg.de/~jochen/Computer/MacTips
First you define in .MacOS/environment.plist two environment variables CPLUS_INCLUDE_PATH and DYLD_LIBRARY_PATH both set to /usr/local/qwt/lib.
After that you just change the identification name of the dynamic library with sudo install_name_tool -id /usr/local/qwt/lib/libqwt.5.dylib /usr/local/qwt/lib/libqwt.5.0.0.dylib and it works fine ! No need to define DYLD_LIBRARY_PATH inside xcode and to copy the library in the bundle.
ok, I created the environment.plist file under my ~/.MacOS/ and then executed the command sudo install_name_tool and when I run my app I get this messg:
../bin/simple.app/Contents/MacOS/simple dyld: Library not loaded: libqwt.5.dylib
Referenced from: /Users/sal/Downloads/qwt-5.1.1/examples/simple_plot/../bin/simple.app/Contents/MacOS/simple
Reason: image not found
Trace/BPT trap
../bin/simple.app/Contents/MacOS/simple dyld: Library not loaded: libqwt.5.dylib
Referenced from: /Users/sal/Downloads/qwt-5.1.1/examples/simple_plot/../bin/simple.app/Contents/MacOS/simple
Reason: image not found
Trace/BPT trap
To copy to clipboard, switch view to plain text mode
so I'm probably not doing something right --still. Any advice?
// Sal
Bookmarks