Hi,
I posted this question to the mjpeg-developer mailing list but didn't get much response...
So I thought I'd try these mailing lists as well...
I was trying to use liblavplay (from the mjpeg tools) in an application I am writing and can't seem to get it to compile due to a linking problem of some sort. This is the compile command generated by make:
gcc -g -O2 -o eits main.o support.o interface.o callbacks.o gtktvplug.o gtksdl.o video.o -pthread -Wl,--export-dynamic -L/usr/X11R6/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lm -llinc -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lXv -lmjpegutils -llavfile -llavjpeg -llavplay -llavrec
I am linking against @PACKAGE_LIBS@ $(INTLLIBS) @SDL_LIBS@ -lXv -lmjpegutils -llavfile -llavjpeg -llavplay -llavrec in the Makefile.am
but get the following error: /usr/local/lib/liblavfile.so: undefined reference to `mjpeg_error_exit1' /usr/local/lib/liblavfile.so: undefined reference to `mjpeg_warn' /usr/local/lib/liblavfile.so: undefined reference to `mjpeg_error' /usr/local/lib/liblavfile.so: undefined reference to `mjpeg_info' /usr/local/lib/liblavfile.so: undefined reference to `mjpeg_debug' collect2: ld returned 1 exit status make[2]: *** [eits] Error 1
These functions are from the: mjpeg_logging.c file in the util directory. As far as I can tell form the makefile these functions should be included in libmjpegutils.... Am I overlooking something??
Also I've gotten Ronald Butje's gtktvplug widget to compile and run in gtk
2.0 (a huge 3 line change) so if anyone else is interested I can post the
changes and compile info.... There is a slight bug that sometimes the window needs to be moved to get the video to display. Not sure why, but when it is resized/etc sometimes u need to move the window slightly to get video to display.... If anyone knows why this is happening please let me know...
Thanks macca
_________________________________________________________________
Protect your inbox from harmful viruses with new ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users