I am having a devil of a time building libssh2 so that it will load on both Mac OS X 10.5 an 10.6. Has anyone been able to do this successfully?
Right now, I can build a library that works on 10.6, but when I try to run an app that links to it on 10.5, I get the following error:
Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/libssh2.1.dylib
Referenced from: /Users/test/Desktop/sftp.app/Contents/MacOS/sftp
Reason: no suitable image found. Did find:
/Users/test/Desktop/sftp.app/Contents/MacOS/../Frameworks/libssh2.1.dylib: unknown required load command 0x80000022
/Users/test/Desktop/sftp.app/Contents/MacOS/../Frameworks/libssh2.1.dylib: unknown required load command 0x80000022
Here is what I'm doing to build libssh2:
cd ~/Downloads/libssh2-1.2.7
export PKG_CONFIG_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/pkgconfig
export CFLAGS="-arch x86_64"
export CXXFLAGS=$CFLAGS
export LDFLAGS=$CFLAGS
./configure --build=x86_64-apple-darwin9.0 --with-libssl-prefix=/Developer/SDKs/MacOSX10.5.sdk/usr --with-libcrypt-prefix=/Developer/SDKs/MacOSX10.5.sdk/usr
make
Any help appreciated.
_murat
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-01-25