Friday, July 25th 2008, 2:39am UTC+1

You are not logged in.

  • Login
  • Register

Ajac

Beginner

1

Saturday, April 26th 2008, 2:10pm

Error while building qt

hello ,
i'm building qtopia free 2.2.0 for arm . following error i got plz help me to resolve this error.

my configuration:
./configure \
-release -shared -no-sm -qt-zlib -system-jpeg \
-xplatform linux-arm-g++ -embedded -depths 16,32 -no-vnc -no-xft\

Errror is as



arm-g++-no-keypad/dialogs/qtabdialog.o tmp/release-shared-linux-arm-g+
+-no-keypad/dialogs/qwizard.o tmp/release-shared-linux-arm-g++-no-
keypad/iconview/qiconview.o tmp/release-shared-linux-arm-g++-no-keypad/
workspace/qworkspace.o tmp/release-shared-linux-arm-g++-no-keypad/
network/qdns.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qftp.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qhostaddress.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qnetwork.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qserversocket.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qsocket.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qsocketdevice.o tmp/release-shared-linux-arm-g++-no-keypad/network/
qsocketdevice_unix.o tmp/release-shared-linux-arm-g++-no-keypad/canvas/
qcanvas.o tmp/release-shared-linux-arm-g++-no-keypad/table/qtable.o
tmp/release-shared-linux-arm-g++-no-keypad/xml/qxml.o tmp/release-
shared-linux-arm-g++-no-keypad/xml/qdom.o -lm -ljpeg && mv libqte.so.
2.3.12 /lib/; cd /lib/ && rm -f libqte.so libqte.so.2 libqte.so.2.3;
ln -s libqte.so.2.3.12 libqte.so; ln -s libqte.so.2.3.12 libqte.so.2;
ln -s libqte.so.2.3.12 libqte.so.2.3
/usr/local/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/
4.1.1/../../../../arm-linux-uclibc/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make[2]: Leaving directory `/home/qtopia_free_new/qtopia-free-/qt2/
src'
cd tools; make
make[2]: Entering directory `/home/qtopia_free_new/qtopia-free-/qt2/
tools'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/qtopia_free_new/qtopia-free-/qt2/
tools'
cd tutorial; make
make[2]: Entering directory `/home/qtopia_free_new/qtopia-free-/qt2/
tutorial'
for i in t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14; do ( if [ -d
$i ]; then cd $i ; pro=`basename $i`.pro ; tmake $pro -o Makefile;
grep "TEMPLATE.*subdirs" $pro 2>/dev/null >/dev/null && make -f
Makefile tmake_all || true; fi; ) ; done
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
/bin/sh: tmake: command not found
cd t1; make
make[3]: Entering directory `/home/qtopia_free_new/qtopia-free-/qt2/
tutorial/t1'
arm-linux-gcc -L/home/qtopia_free_new/qtopia-free-/qt2/lib -Wl,-rpath,/
home/qtopia_free_new/qtopia-free-/qt2/lib -o ./t1 main.o -lqte -lm
/usr/local/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/
4.1.1/../../../../arm-linux-uclibc/bin/ld: cannot find -lqte
collect2: ld returned 1 exit status
make[3]: *** [t1] Error 1
make[3]: Leaving directory `/home/qtopia_free_new/qtopia-free-/qt2/
tutorial/t1'
make[2]: *** [t1] Error 2
make[2]: Leaving directory `/home/qtopia_free_new/qtopia-free-/qt2/
tutorial'
make[1]: *** [sub-tutorial] Error 2
make[1]: Leaving directory `/home/qtopia_free_new/qtopia-free-/qt2'
make: *** [init] Error 2
[root@localhost qt2]#

i have used jpeg from qtopia core 4.3.3 and i didnt get abt tmake error ..
can any one help me?
Thanks in advance!!!!!!!!!!!!!!!!!
  • Go to the top of the page

Ajac

Beginner

2

Monday, May 12th 2008, 2:59pm

building qt

sorry i didnt get answer for above ok.. at last i tried qt 2.3.10 to compiling for arm. i got libraries but now i got error in tutorial..
as follows . also i excluded jpeg option from my confgure.


arm-linux-g++ -c -I/home/qt-2.3.10/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -o main.o main.cpp
arm-linux-gcc -L/home/qt-2.3.10/lib -Wl,-rpath,/home/qt-2.3.10/lib -o ./t1 main.o -lqte -lm
/home/qt-2.3.10/lib/libqte.so: undefined reference to `operator new[](unsigned int)'
/home/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete(void*)'
/home/qt-2.3.10/lib/libqte.so: undefined reference to `__cxa_pure_virtual'
/home/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete[](void*)'
/home/qt-2.3.10/lib/libqte.so: undefined reference to `__cxa_guard_release'
/home/qt-2.3.10/lib/libqte.so: undefined reference to `operator new(unsigned int)'
/home/qt-2.3.10/lib/libqte.so: undefined reference to `__cxa_guard_acquire'
collect2: ld returned 1 exit status
make[4]: *** [t1] Error 1
make[4]: Leaving directory `/home/qt-2.3.10/tutorial/t1'
make[3]: *** [t1] Error 2
make[3]: Leaving directory `/home/qt-2.3.10/tutorial'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/qt-2.3.10/tutorial'
make[1]: *** [sub-tutorial] Error 2
  • Go to the top of the page

Ajac

Beginner

3

Sunday, May 25th 2008, 3:02pm

hello ,

i solved that error . it was the linking error as shows above post . i added " lstdc++" in make files . problem solved and qt compiled successfully. :]
  • Go to the top of the page

Rate this thread