When I run make (see end of mail for system revisions)
I get a lot of undefined references such as:
/bin/bash ../libtool --mode=link g++ -mcpu=i686 -march=i686 -g -O2 -o mplex.exe
main.o
../mplex/libmplex2.la -lm
g++ -mcpu=i686 -march=i686 -g -O2 -o mplex.exe main.o ../mplex/.libs/libmplex2.a
main.o(.text+0x12c): In function `_ZN16FileOutputStream4OpenEv':
/cygdrive/c/user/richardd/download/apps/mpeg/build/mjpegtools-1.6.2/mplex/main.cpp:107:
undefined
reference to `_mjpeg_error_exit1'
Linking issues are not something I know a lot about alas, and
hopefully this is something 'obvious'. To try and hunt these
down, I tried using nm:
nm -o ../mplex/.libs/libmplex2.a | grep exit1
nm: libmjpegutils.a: File format not recognized
nm: libmjpegutils.a: File format not recognized
../mplex/.libs/libmplex2.a:libmplex2_la-ac3strm_in.o: U _mjpeg_error_exit1
../mplex/.libs/libmplex2.a:libmplex2_la-bits.o: U _mjpeg_error_exit1
../mplex/.libs/libmplex2.a:libmplex2_la-dtsstrm_in.o: U _mjpeg_error_exit1
The 'File format not recognized' comes from something within the archive,
yet when I do nm on that archive, it seems OK:
nm -o utils/libmjpegutils.a | grep exit1
utils/libmjpegutils.a:mjpeg_logging.o:00000370 T _mjpeg_error_exit1
(I also tried copying the target archive into the local directory
in case the pathname was incomplete - same results).
When I tried to make just mpeg2enc, gcc linker gave a segmentation
fault.
OK, so what is the next step here to debugging/solving the issue ?
Any help appreciated.
Thanks,
Richard.
-------------------------------------------------------------------
In the interests of documenting things I did mess around with:
o Used pkg-config to identify gtk and glib
o Changed configure to use --modversion rather than --version for these
o Compiled/installed sdl from source using defaults
o set LD_LIBRARY_PATH to add /usr/local/lib for benefit of SDL
o Cast a (unsigned int*) to uint32_t* in motionest.cc calls to pvariance
And some revisions:
glib-2.0 GLib - C Utility Library
gtk+-2.0 GTK+ - GIMP Tool Kit (x11 target)
sdl 1.2.7
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
Cygwin is a complete (all packages) installation
Cygwin DLL version info:
DLL version: 1.5.10
DLL epoch: 19
NUMBER_OF_PROCESSORS=2
OLDPWD=/cygdrive/c/user/richardd/download/apps/mpeg/build/mjpegtools-1.6.2
OS2LIBPATH=C:\WINNT\system32\os2\dll;
OS=Windows_NT
PATH=/bin:/usr/local/bin:/usr/X11R6/bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0303
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users