nanogui: Problem x-compiling JPEG libraries for Microwindows


Previous by date: 17 Jan 2001 13:33:53 -0000 alpha belending demo, dhammika
Next by date: 17 Jan 2001 13:33:53 -0000 Working config for Microwin on Assabet?, Jim Lawton
Previous in thread:
Next in thread:

Subject: Problem x-compiling JPEG libraries for Microwindows
From: Supriyo ####@####.####
Date: 17 Jan 2001 13:33:53 -0000
Message-Id: <20010117133750.3393.qmail@web4405.mail.yahoo.com>

Hi,

I would like to x-compile the libjpeg.a library for
the StrongARM so that Microwindows has support for
jpeg files.
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 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/

Previous by date: 17 Jan 2001 13:33:53 -0000 alpha belending demo, dhammika
Next by date: 17 Jan 2001 13:33:53 -0000 Working config for Microwin on Assabet?, Jim Lawton
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.