From: Radu B. <br...@gm...> - 2011-05-10 14:25:15
|
Hi, I am trying to use the library on a Mac. Since it is not available via MacPorts I am trying to build it from source. I've downloaded the tarball ( 0.5.0 ) , and issued : scons platform=linux-gcc which compiles fine. But there is no installation script via scons, or I am not aware of one. I have tried manually copying the libraries from libs/linux-gcc-<ver>/*.{a,dylib} into /opt/local/lib but when I run otool on the library I get the following : otool -L /opt/local/lib/libjson_linux-gcc-4.0.1_libmt.dylib /opt/local/lib/libjson_linux-gcc-4.0.1_libmt.dylib: buildscons/linux-gcc-4.0.1/src/lib_json/libjson_linux-gcc-4.0.1_libmt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.6) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) Also, I tried linking my test program against it and of course it failed at runtime since it cannot find the library. Is there a documented way of installing the library on a Mac ? FWIW, I have tried the same with the libraries located under buildscons/linux-gcc ... with the same results. Help ? Thanks, Radu |