[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autotools usage question
From: |
Oguz Yarimtepe |
Subject: |
autotools usage question |
Date: |
Sat, 31 Jan 2009 23:21:44 +0200 |
Hi,
I have a technical question about the usage of autotools. I am trying
to compile a library for sh linux environment. I have the source and
dev kit of sh linux. The library itself has a autogen.sh which runs
autoconf,aclocal and automake. I ran it once to get the ./configure
script. After it created the configure script for my system by using
the configure parameters i tried to compile the library for the sh
linux system. I added PKG_CONFIG path and x-librar parameter also used
--host and --prefix whilecompiling. But still i am getting the below
error:
./configure --host="sh4-linux" --prefix="/st710x/usr/local/efls"
--x-includes="/opt/STM/STLinux-2.2/devkit/sh4/target/usr/X11R7/include"
--x-libraries="/opt/STM/STLinux-2.2/devkit/sh4/target/usr/X11R7/lib"
make all-recursive
Making all in src
Making all in lib
make[3]: Nothing to be done for `all'.
Making all in bin
make[3]: Nothing to be done for `all'.
Making all in modules
Making all in loaders
/bin/bash ../../../libtool --tag=CC --tag=disable-static --mode=link
sh4-linux-gcc -g -O2 -module -avoid-version -o jpeg.la -rpath
/st710x/usr/local/efls/lib/imlib2/loaders jpeg_la-loader_jpeg.lo
-ljpeg ../../../src/lib/libImlib2.la
sh4-linux-gcc -shared .libs/jpeg_la-loader_jpeg.o -Wl,--rpath
-Wl,/home/oguz/E-new/E/trunk/imlib2/src/lib/.libs -Wl,--rpath
-Wl,/st710x/usr/local/efls//lib /usr/lib/libjpeg.so
../../../src/lib/.libs/libImlib2.so -Wl,-soname -Wl,jpeg.so -o
.libs/jpeg.so
/usr/lib/libjpeg.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [jpeg.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error
It is because the bash command is being called as /bin/bash. Instead
it should be called from the path of the sh linux source. Now i either
have to check the makefile entry and edit it or try to find the right
parameter for configure to create Makefile with the right values.
Is there a way to make these things automatically whileusing autotools?
--
Oğuz Yarımtepe
www.loopbacking.info
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- autotools usage question,
Oguz Yarimtepe <=