Skip to main content

Errors of compiling qte and qtopia for arm!

No replies
pigboy
Offline
Joined: 2006-03-08
Points: 0

If i need to compile the qte and qtopia for my device ,what can i do ?
the fellow is my document comes with the cross-compile from the GXcompany.

Compile QTE and Qtopia for OURSELEC:

Version: qte 2.3.7, qtopia 1.7.0 all are free version.
Created by Figo. 2006-07-04

----------------------------------------------------------------------------------------------

Prepare:

1. Make sure that install the toolchain provided in the CD package, please refer to the Linux user' guide.

2.

get tslib.tar.bz2

get tmake-1.11.tar.gz

get qt-embedded-2.3.7.tar.gz

get qtopia-free-1.7.0.tar.gz

Untar the source to work directory, this assume the work directory is /work .

for example : tar -jxf tslib.tar.bz2

tar vxzf tamke-1.11.tar.gz

rename the directory name "qtopia-free-1.7.0" to "qtopia-1.7.0"

Step 0:

export QTDIR=/work/qt-2.3.7

export QPEDIR=/work/qtopia-1.7.0

export LD_LIBRARY_PATH=/work/qt-2.3.7/lib:$LD_LIBRARY_PATH

export TMAKEDIR=/work/tmake-1.11

export TMAKEPATH=/work/tmake-1.11/lib/qws/linux-arm-g++

export PATH=/work/tmake-1.11/bin:$PATH

Step 1:

%cd tslib

%export CC=arm-linux-gcc

%./autogen.sh

%./configure --host=arm-linux

%make

%cp -a src/.libs/* ../qt-2.3.7/lib/

%cp -a plugins/.libs/*.so ../qt-2.3.7/lib/

Step 2:

%cd $QTDIR

(copy the qt_patch files to overwrite current files.)

%cp /work/qtopia-1.7.0/src/qt/qconfig-qpe.h /work/qt-2.3.7/src/tools/

%./configure -xplatform linux-arm-g++ -qconfig qpe

(color depth: 16 ; Virtual Framebuffer: no)

% make sub-src

Step 3 :

cp /usr/local/arm-linux/qt_toolchain/qt-2.3.2/bin/uic /work/qt-2.3.7/bin

export LD_LIBRARY_PATH=/usr/local/arm-linux/qt_toolchain/qt-2.3.2/lib:$LD_LIBRARY_PATH

.........

but i meet errors when i did the step 1,..make ...
i meet the problems of .......

make[2]: Leaving directory `/arm-target/zlib/src'
Making all in plugins
make[2]: Entering directory `/arm-target/zlib/plugins'
if /bin/sh ../libtool --mode=compile --tag=CC arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -MT linear.lo -MD -MP -MF ".deps/linear.Tpo" -c -o linear.lo linear.c; \
then mv -f ".deps/linear.Tpo" ".deps/linear.Plo"; else rm -f ".deps/linear.Tpo"; exit 1; fi
mkdir .libs
arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -MT linear.lo -MD -MP -MF .deps/linear.Tpo -c linear.c -fPIC -DPIC -o .libs/linear.o
/bin/sh ../libtool --mode=link --tag=CC arm-linux-gcc -rpath -o linear.la -module -avoid-version linear.lo
libtool: link: only absolute run-paths are allowed
make[2]: *** [linear.la] Error 1
make[2]: Leaving directory `/arm-target/zlib/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/arm-target/zlib'
make: *** [all] Error 2

...please help me!
Thanks!

Winson