On Sat, 29 May 2004, Bernhard Praschinger wrote:
> I just try to compile the mjpegtools (CVS version) on a MAC OS X. > Additional to the packages mentioned in the compile description on the > mjpeg.sf.page. I had to install the libjepg 6b (I did a: make install, > Now it seems that the compile fails when I try to link the first program > to the jpeg-lib: Actually the error is that somehow the jpeg library was not added to the list of "-l" entries - you are missing the "-ljpeg" > /bin/sh ../libtool --mode=link gcc -mcpu=7450 -mtune=7450 -g -O2 -Wall > -Wunused -o lav2yuv lav2yuv.o lav_common.o ../utils/libmjpegutils.la > liblavfile.la liblavjpeg.la > gcc -mcpu=7450 -mtune=7450 -g -O2 -Wall -Wunused -o .libs/lav2yuv > lav2yuv.o lav_common.o ../utils/.libs/libmjpegutils.dylib > ./.libs/liblavfile.dylib ./.libs/liblavjpeg.dylib > ld: Undefined symbols: > _jpeg_CreateCompress If you look closely you will see that "-ljpeg" is missing and that is why the symbol is coming up undefined. > Does anyone have a idea what fails there ? And how to fix it ? Look in the config.log to see why the jpeg library was not detected. In config.log it should look something like this for a successful probe: configure:23242: checking for jpeg_start_compress in -ljpeg configure:23273: gcc -o conftest -g -O2 conftest.c -ljpeg >&5 configure:23276: $? = 0 The lav2yuv build looks like on my OS/X system: /bin/sh ../libtool --mode=link gcc -mcpu=G5 -force_cpusubtype_ALL -mtune=G5 -g -O2 -Wall -Wunused -o lav2yuv lav2yuv.o lav_common.o ../utils/libmjpegutils.la liblavfile.la liblavjpeg.la -L/usr/local/lib -ldv -lm -L/usr/local/lib -lglib -lpthread gcc -mcpu=G5 -force_cpusubtype_ALL -mtune=G5 -g -O2 -Wall -Wunused -o .libs/lav2yuv lav2yuv.o lav_common.o ../utils/.libs/libmjpegutils-1.6.0.3.3.dylib ./.libs/liblavfile-1.6.0.3.3.dylib -L/usr/local/lib /usr/local/lib/libquicktime.0.0.0.dylib -ldl ./.libs/liblavjpeg-1.6.0.3.3.dylib /usr/local/lib/libjpeg.dylib /usr/local/lib/libdv.4.0.0.dylib -lm /usr/local/lib/libglib.dylib -lpthread creating lav2yuv Most of those you probably don't have - I have libquicktime and libdv installed on the system. But see the libjpeg.dylib? When you built and installed the jpeg library did you create the shared version? In /usr/local/lib I have: -rwxr-xr-x 1 sms admin 134912 1 Apr 18:29 /usr/local/lib/libjpeg.62.0.0.dylib lrwxr-xr-x 1 root admin 20 1 Apr 18:29 /usr/local/lib/libjpeg.62.dylib -> libjpeg.62.0.0.dylib -rw-r--r-- 1 sms admin 173816 1 Apr 18:29 /usr/local/lib/libjpeg.a lrwxr-xr-x 1 root admin 20 1 Apr 18:29 /usr/local/lib/libjpeg.dylib -> libjpeg.62.0.0.dylib -rwxr-xr-x 1 sms admin 654 1 Apr 18:29 /usr/local/lib/libjpeg.la Good Luck. Cheers, Steven Schultz ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users