ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Webcams

To:
Subject: Re: [ts-7000] Re: Webcams
From: Christopher Friedt <>
Date: Wed, 21 Nov 2007 17:58:12 +0100
Hi Elizabeth,

I just downloaded the jpegsrc, which provide the files that gcc will
search for ( -ljpeg -> libjpeg.so.x.x ) from here:

ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz

I first tried to configure it with:

./configure --prefix=/usr --host=arm-softfloat-linux-gnu --enable-shared
--enable-static

but it insisted on using the native c compiler 'gcc' instead of that of
the host.

1 x dumb

Then I ran the configure script with

CC=arm-softfloat-linux-gnu ./configure --prefix=/usr
--host=arm-softfloat-linux-gnu --enable-shared --enable-static

(Note, you could also prefix some CFLAGS="" settings above if you wanted
to).

I noticed that it also tried to run a binary program, even though the
'host' bit is different from 'build' (build should be automatically set
to the machine you are compiling on)

2 x dumb

make

That compiled with the correct compiler. However,

make install \
DESTDIR=/usr/local/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.4.4-glibc-2.3.2/arm-linux

overwrote my native libjpeg.so ... go team jpeg!

also, it used the native ranlib instead of that for the matching compiler.

1000 x dumb

A ./configure script / Makefile which does not obey DESTDIR is sure to
be a bad scene, and one that doesn't listen to its own --host && --build
options is quite dumb.

Anyway, you could follow the successful ./configure and make steps
above, but don't try make install. Instead you should just manually copy
the headers & libs.

DESTDIR=<wherever_your_sysroot_is_for_the_crosstools>
for i in
libjpeg.so.62.0.0 libjpeg.so.62 libjpeg.so libjpeg.la libjpeg.a; do
cp -a ${i} ${DESTDIR}/usr/lib
done
for i in jpeglib.h jpegint.h jmorecfg.h jerror.h jconfig.h; do
cp -a ${i} ${DESTDIR}/usr/include
done


Cheers,

Chris




Elizabeth wrote:
> Hey thanks cfriedt but here's a new question, im no longer using
> vgrabbj to capture images, im using videodog for this purpose but i
> still have the same problem with -ljpeg library when i try to compile
> it. I guess the best solution is to cross compile this program and
> then use it in my ts7300 board but my question is how do i cross
> compile it?
> 
> Any help will be appreciated.. thanks.. 
> 
> 
> 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU