Hi Dragos, Thanks for your help. I had already figured that the problem was related to libavcodec and ffmpeg and I've just finished reinstalling ffmpeg. But this time I used darwinports instead of the original source. It is much better now. I'm still not able to build qutecom on MacOS but I'm getting closer and closer! I still have to fight with Qt.
Mathieu On Fri, Apr 10, 2009 at 5:32 PM, Dragos D <[email protected]> wrote: > > Hi, > > It looks like your undefined symbols are related to libavcodec. > > Dragos > > On Fri, Apr 10, 2009 at 10:55 AM, Mathieu Osty <[email protected]> wrote: >> >> Hi all, >> >> I've recently moved to MAC OS X and currently trying to build qutecom on >> this plateform. I've never tried developping on MAC OS before. >> I'm stuck on what seems to be a zlib linking problem when building >> libwebcam.dylib. >> zlib is installed and I've built ffmpeg 0.5 with the --enable-zlib flag. >> I guess it's just a PATH problem but I can't figure where I'm wrong >> >> My setup is: >> - MAC OS X v10.5, >> - latest Xcode environment, >> - gcc/g++ v4.0.1, >> - Boost v1.33.1 (installed via fink), >> - FFmpeg v0.5 (compiled from source), >> - zlib v1.2.3 >> >> mat$ echo $PATH >> /opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin:/Users/mat/qt-mac-opensource-src-4.5.0/bin/ >> >> >> Here is a short part of the build_make.sh output showing that zlib is found : >> >> -- Found GLib2: >> /sw/lib/libglib-2.0.dylib;/sw/lib/libgmodule-2.0.dylib;/sw/lib/libgthread-2.0.dylib;/sw/lib/libgobject-2.0.dylib;/sw/lib/libintl.dylib;/sw/lib/libiconv.dylib >> -- Found OpenSSL: /usr/lib/libcrypto.0.9.7.dylib;/usr/lib/libssl.0.9.7.dylib >> -- Found ZLIB: /usr/lib/libz.dylib >> -- Found libxml2: /usr/lib/libxml2.dylib >> -- Found GnuTLS: /sw/lib/libgnutls.dylib >> -- Check if the system is big endian >> -- Check if the system is big endian - little endian >> -- Looking for include files HAVE_STDINT_H >> -- Looking for include files HAVE_STDINT_H - found >> -- Looking for include files HAVE_MACHINE_TYPES_H >> -- Looking for include files HAVE_MACHINE_TYPES_H - found >> -- Looking for include files HAVE_SYS_INT_TYPES_H >> -- Looking for include files HAVE_SYS_INT_TYPES_H - not found. >> -- Looking for include files HAVE_SYS_UIO_H >> -- Looking for include files HAVE_SYS_UIO_H - found >> -- Looking for include files HAVE_UNISTD_H >> -- Looking for include files HAVE_UNISTD_H - found >> -- Looking for include files HAVE_STDLIB_H >> -- Looking for include files HAVE_STDLIB_H - found >> -- Looking for inet_aton >> -- Looking for inet_aton - found >> -- Looking for include files HAVE_SYSLOG_H >> -- Looking for include files HAVE_SYSLOG_H - found >> >> >> Here is a short output from the build failing with "Undefined symbols": >> >> Scanning dependencies of target webcam >> [ 7%] Building CXX object >> libs/webcam/CMakeFiles/webcam.dir/src/WebcamDriver.o >> [ 7%] Building CXX object libs/webcam/CMakeFiles/webcam.dir/src/webcam.o >> [ 7%] Building CXX object >> libs/webcam/CMakeFiles/webcam.dir/src/quicktime/QuicktimeWebcamDriver.o >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp: >> In member function ‘virtual void QuicktimeWebcamDriver::cleanup()’: >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:67: >> warning: ‘DisposeGWorld’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:230) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:67: >> warning: ‘DisposeGWorld’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:230) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp: >> In member function ‘bool QuicktimeWebcamDriver::createGWorld()’: >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:309: >> warning: ‘LockPixels’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:188) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:309: >> warning: ‘GetPortPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:4414) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:309: >> warning: ‘GetPortPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:4414) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:309: >> warning: ‘LockPixels’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:188) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:314: >> warning: ‘GetMainDevice’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:3314) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:314: >> warning: ‘GetMainDevice’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:3314) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp: >> In member function ‘virtual WebcamErrorCode >> QuicktimeWebcamDriver::setPalette(pixosi)’: >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:357: >> warning: ‘GetGWorldPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:484) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:357: >> warning: ‘GetGWorldPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:484) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp: >> In function ‘OSErr mySGDataProc(ComponentInstanceRecord*, char*, long int, >> long int*, long int, TimeValue, short int, long int)’: >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:531: >> warning: ‘GetGWorldPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:484) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:531: >> warning: ‘GetGWorldPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:484) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:544: >> warning: ‘GetGWorldPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:484) >> /Users/mat/qutecom-2.2/build/libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp:544: >> warning: ‘GetGWorldPixMap’ is deprecated (declared at >> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:484) >> Linking CXX shared library libwebcam.dylib >> Undefined symbols: >> "_inflateEnd", referenced from: >> _decode_frame in libavcodec.a(pngdec.o) >> "_inflate", referenced from: >> _decode_frame in libavcodec.a(pngdec.o) >> "_inflateInit_", referenced from: >> _decode_frame in libavcodec.a(pngdec.o) >> ld: symbol(s) not found >> collect2: ld returned 1 exit status >> make[2]: *** [libs/webcam/libwebcam.dylib] Error 1 >> make[1]: *** [libs/webcam/CMakeFiles/webcam.dir/all] Error 2 >> make: *** [all] Error 2 >> >> >> Any idea about what I did wrong ? >> >> Mathieu >> >> >> _______________________________________________ >> QuteCom-dev mailing list >> [email protected] >> http://lists.qutecom.org/mailman/listinfo/qutecom-dev >> > _______________________________________________ QuteCom-dev mailing list [email protected] http://lists.qutecom.org/mailman/listinfo/qutecom-dev
