[Freeswitch-dev] errlor link with libjpeg on mac
Hi, I'm on Mac 10.6.4, 64bit. I updated the last git HEAD, unable to find libjpeg, then I did a fresh clone, the problem still there. I found this been fixed: http://jira.freeswitch.org/browse/FSBUILD-271 Here's the error. Creating mod_spandsp.la ld: library not found for -ljpeg collect2: ld returned 1 exit status quiet_libtool: link: gcc -o .libs/mod_spandsp.so -bundle .libs/mod_spandsp_la-mod_spandsp.o .libs/mod_spandsp_la-udptl.o .libs/mod_spandsp_la-mod_spandsp_fax.o .libs/mod_spandsp_la-mod_spandsp_dsp.o .libs/mod_spandsp_la-mod_spandsp_codecs.o -ljpeg /Users/seven/workspace/freeswitch/freeswitch/.libs/libfreeswitch.1.0.0.dylib -L/Users/seven/workspace/freeswitch/freeswitch/libs/apr-util/xml/expat/lib /Users/seven/workspace/freeswitch/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /Users/seven/workspace/freeswitch/freeswitch/libs/apr/.libs/libapr-1.a -lpq -liconv -ldl -lpthread /Users/seven/workspace/freeswitch/freeswitch/libs/spandsp/src/.libs/libspandsp.a -L/Users/seven/workspace/freeswitch/freeswitch/libs/tiff-3.8.2/libtiff -lm /Users/seven/workspace/freeswitch/freeswitch/libs/tiff-3.8.2/libtiff/.libs/libtiff.a -lz -lc -lssl -lcrypto -lncurses -framework CoreFoundation make[4]: *** [mod_spandsp.la] Error 1 make[3]: *** [mod_spandsp-all] Error 1 make[2]: *** [all-recursive] Error 1 I installed libjpeg through brew and now can link without problem(see below). Do I need to report a jira? And another question, why it link to postgresql when everywhere is ODBC ? seven@seven-macpro:/usr/local/freeswitch/mod$ otool -L mod_spandsp.so mod_spandsp.so: /usr/local/Cellar/jpeg/8a/lib/libjpeg.8.dylib (compatibility version 9.0.0, current version 9.1.0) /usr/local/freeswitch/lib/libfreeswitch.1.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/local/Cellar/postgresql/8.4.3/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.2.0) /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0) Thanks. -- Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
participants (1)
-
Seven Du