Hi
Not sure of ur problem in the first method but it worked fine for me. I
dont exactly remember how I did it but I didnt use make -e and also I
didnt use jconfig.doc. Ill check and mail later.
U have compiled the library properly by the second method. If u
check libraries (.a files) are listed as ar archives. It should work with
whatever app u r using. Have u used it with any application?
I am using libjpeg in xview to view jpeg images on the assabet
board.
Take it easy
KAR.
Graduate Research Assistant
University of Southern California
635 3/4, W23 Street
Los Angeles - 90007
(213) 745 7042.
www-scf.usc.edu/~dantu
On Thu, 18 Jan 2001, [iso-8859-1] Supriyo Chatterjea wrote:
> Hi,
>
> I would like to x-compile the libjpeg.a library for
> the StrongARM.
>
> I'm using jpegsrc.v6b.tar.gz but I'm some errors
> trying to x-compile.
>
> These are the things I tried and the errors I got:
>
>
> Method 1:
> 1. cp jconfig.doc jconfig.h (Directory where jpeg
> files were uncompressed)
>
> 2. cp makefile.ansi Makefile
>
> 3. export AR=/skiff/local/bin/arm-linux-ar
> export AS=/skiff/local/bin/arm-linux-as
> export CC=/skiff/local/bin/arm-linux-gcc
> export CXX=/skiff/local/bin/arm-linux-c++
> export GXX=/skiff/local/bin/arm-linux-g++
> export LD=/skiff/local/bin/arm-linux-ld
> export NM=/skiff/local/bin/arm-linux-nm
> export RANLIB=/skiff/local/bin/arm-linux-ranlib
> export STRIP=/skiff/local/bin/arm-linux-strip
>
> 4. make -e
>
> 5. This is the error I got:
> ...
> ...
> /skiff/local/bin/arm-linux-gcc -O2 -I. -c -o
> jutils.o jutils.c
> /skiff/local/bin/arm-linux-gcc -O2 -I. -c -o
> jerror.o jerror.c
> /skiff/local/bin/arm-linux-gcc -O2 -I. -c -o
> jmemmgr.o jmemmgr.c
> /skiff/local/bin/arm-linux-gcc -O2 -I. -c -o
> jmemnobs.o jmemnobs.c
> rm -f libjpeg.a
> /skiff/local/bin/arm-linux-ar libjpeg.a jcapimin.o
> jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o
> jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o
> jccolor.o jcsample.o jchuff.o jcphuff.o jcdctmgr.o
> jfdctfst.o jfdctflt.o jfdctint.o jdapimin.o jdapistd.o
> jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o
> jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o
> jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o
> jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
> jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o
> /skiff/local/bin/arm-linux-ar: illegal option -- j
> make: ***[libjpeg.a] Error 1
>
> 6. Why is there an illegal option "-- j"? I don't see
> that option anywhere in the Makefile. I've tried
> compiling for the x86 by just typing "make" instead of
> "make -e" and that seems to work fine. So that looks
> like "ar" works fine but "arm-linux-ar" has some
> problem. I've tried using the HardHat "ar", but that
> gave me the same error.
>
>
> Method 2:
> 1. cp jconfig.doc jconfig.h (Directory where jpeg
> files were uncompressed)
>
> 2. cp makefile.ansi Makefile
>
> 3. export AR=/skiff/local/bin/arm-linux-ar
> export AS=/skiff/local/bin/arm-linux-as
> export CC=/skiff/local/bin/arm-linux-gcc
> export CXX=/skiff/local/bin/arm-linux-c++
> export GXX=/skiff/local/bin/arm-linux-g++
> export LD=/skiff/local/bin/arm-linux-ld
> export NM=/skiff/local/bin/arm-linux-nm
> export RANLIB=/skiff/local/bin/arm-linux-ranlib
> export STRIP=/skiff/local/bin/arm-linux-strip
>
> 4. ./configure
>
> 5. make
>
> 6. It seems that arm-linux-gcc is used during
> compilation but not arm-linux-ar. Instead just ar is
> used. This is wrong isn't it? I tried "file libjpeg.a"
> and that gave me:
>
> libjpeg.a: current ar archive
>
> Shouldn't it showing that it's an ARM file instead?
>
> Could someone please send me a libjpeg.a library
> x-compiled for the Assabet or tell me where I'm going
> wrong?
>
> Thanks,
> Supriyo
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail � Free email you can access from anywhere!
> http://mail.yahoo.com.sg/
>
> _______________________________________________
> http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> Please visit the above address for information on this list.
>
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.