On Tue, 6 Nov 2007, Florin Andrei wrote:

> The following patch fixed it:
        
        Well, 'worked around' ;)  On some systems that have SDL built to
        include its own depencendies then included -lX11 again causes 
        an error.  

> -SDL_LIBS = -L/usr/lib -lSDL
> +SDL_LIBS = -L/usr/lib -lSDL -lX11

        Which says that the SDL kit wasn't built or installed quite 100%
        correct.  If I run "sdl-config --libs" here I see:

-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lm -ldl -L/usr/X11R6/lib -lX1 
-lXext

        which means that since SDL uses/needs the X11 libraries it includes
        them and doesn't rely on the higher level applications adding them.

        That's why I don't see the problem (on the 3rd different OS I've 
        tried) - SDL is configured to include its own dependencies.

        A better workaround would be to edit the sdl-config script and add
        the -lX11 there.  That way it will be available for all applications
        as well as future mjpegtools builds

> /bin/bash ../libtool --mode=link g++  -march=k8 -mtune=k8 -g -O2 
> -pthread    -o mplex  main.o libmplex2.la  -lm  -lm
> g++ -march=k8 -mtune=k8 -g -O2 -pthread -o .libs/mplex main.o 
> ./.libs/libmplex2.so -lm -Wl,--rpath -Wl,/opt/mjpegtools/lib
> ./.libs/libmplex2.so: undefined reference to `mjpeg_loglev_t'
> collect2: ld returned 1 exit status
> make[2]: *** [mplex] Error 1
> make[2]: Leaving directory `/home/florin/work/mjpeg_play-cvs-20071106/mplex'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/florin/work/mjpeg_play-cvs-20071106'
> make: *** [all] Error 2

        ./utils/mjpeg_logging.c:mjpeg_loglev_t(const char *level)
        ./utils/mjpeg_logging.h:mjpeg_loglev_t(const char *str);

        so it would seem that ../utils/.libs/libmjpegutils.so isn't being
        included when linking mplex.  Another thing which doesn't happen,
        it seems, outside Ubuntu.

> Well, it's Ubuntu 7.04 with the Ubuntu Studio packages installed (plus a 
> bunch of multimedia-related libs and apps), but I'll be happy to be a 

        You wouldn't happen to be getting an OLD version of
        libmjpegutils.so from somewhere?  It is an installed library and
        if Ubuntu or an old mjpegtools was present and found first
        (due to the order of library search path) that would explain
        `mjpeg_loglev_t' being undefined - that routine is present in
        utils/mjpeg_logging.c

        Makes sure that utils/.libs/libmjpegutils.so is being used and
        that the undef'd symbol is present in that.

        Cheers,
        Steven


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to