I spent a little more effort on this and using ar I find
that libmjpegutils.a is listed twice in the .a file. Once
at the bottom, once at the end. If I remove both of them
and add libmjpegutils.a to the link line, I can get the 
mplex to go through with no undefined references.

However, I still get a crash out of gcc linker when I tried
to build mpeg2enc. I wrote a little script to recursively
figure out which .o files it needed and link that way. But I
got stuck on an fdct assembly file that refers to GLOBAL_OFFSET_TABLE.
So I was unable to get past resolving all symbols. My efforts to
try to understand how this symbol is meant to work weren't
successful. Any pointers to that aspect (in context and of
a simple minded nature) would be appreciated.

I think the root of the problem may lie with the configure (not
that it is at fault, just that we might get better luck there). 
Are there some options I should try to set to cause this to build
differently ?

Again, any help appreciated.

Richard.


--- Bernhard Praschinger <[EMAIL PROTECTED]> wrote:

> Hallo
> 
> > 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:
> It seems that the linke "forgets" the to include the shared object
> (maybe DLL in Windows I don't know that) 
> 
> So the command lookes like that on a Linux Box:
> ../libtool --mode=link g++  -march=athlon-4 -mno-sse2 -mcpu=athlon-4 -g
> -O2 -pthread    -o mplex  main.o ../mplex/libmplex2.la -lm   -lm
> g++ -march=athlon-4 -mno-sse2 -mcpu=athlon-4 -g -O2 -o .libs/mplex
> main.o  -pthread ../mplex/.libs/libmplex2.so
> /home/bernhard/download/cvs/mjpeg_play/utils/.libs/libmjpegutils.so
> /usr/lib/libstdc++.so -lm
>  
> The missing part is the libmjpegutils. 
> I don't have any idea how to solve that. Try to add the path and the
> so/dll to you path. Maybe you can try to create a static linked version
> instead of a dynamic linked version. 
> 
> 
> 
> auf hoffentlich bald,
> 
> Berni the Chaos of Woodquarter
> 
> Email: [EMAIL PROTECTED]
> www: http://www.lysator.liu.se/~gz/bernhard
> 



                
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to