hi, i have ubuntu 9.10 environment toolchain is ok when i compile qtopia 4.6.2 , i have many error as below /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") command line configure is ./configure -embedded arm -prefix /usr/local/Qt -release -shared -fast -pch -no-qt3support -no-sql-sqlite -no-libtiff -no-libmng -no-libjpeg -qt-zlib -no-libpng -no-freetype -no-openssl -nomake examples -nomake demos -nomake tools -optimized-qmake -no-phonon -no-nis -no-opengl -no-cups -no-xcursor -no-xfixes -no-xrandr -no-svg -no-phonon-backend -no-3dnow -no-largefile -no-gif -no-mmx -no-xrender -no-xmlpatterns -no-xkb -no-sm -no-xinerama -no-xshape -no-webkit -no-separate-debug-info -xplatform qws/linux-arm-g++ -depths 16 -no-qvfb -no-gtkstyle -qt-gfx-linuxfb -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb -little-endian i try to compile qt4.6.2 since 10 day and i have this error my host is linux ubutu 9.10 i686 please help me. what is the problem ? i use arm-angstrom-linux-gnueabi , i have tested with arm_none-linux-gnueabi and is a same. thanks you for your responses.
compile error for qt4.6.2
Thats how i compile it: 2.) Tar fvx qt-embedded-linux-opensource-src* 3.) Cd qt* 4.) NOTE: Add –O0 in mkspces/common/g++.conf conf file 5.) exchage the compiler in mkspces/qws/arm-linux/ ./configure -v \ -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/qt \ -nomake examples -opensource -nomake examples \ -no-accessibility -no-phonon -no-phonon-backend -no-qt3support \ -no-scripttools -no-mmx -no-3dnow -no-sse -no-sse2 -no-cups -no-dbus -no-glib \ -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -qt-gfx-linuxfb -qt-mouse-tslib -qt-gfx-qvfb \ -shared -release -host-little-endian Good Luck Seppo BTS: could u tell me which speed u achieve with qt plz! thx!
i am do all that you say but is a same, may be is a tar that i downloaded for nokia, i will test another archive of qtopia 4.6.2. else have you archive of qtopia that work ? where can i download it ? thanks
@andromeda: what is –O0 ?? was supposed to mean -O0 which disabled the compiler optimization The files i published so far can be found here: http://mini2440.sv-design.at/ Seppo
i have transfered librarie qt from your site in my board, when i launch a exampe the tslib-1.0.so is not present, can you put on your site the library tslib ? i have downloaded tslib-1.O and compil but i am error when i launch ./autogen.sh: /i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 2144: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 2144: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 2144: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found /usr/local/angstrom/arm/bin/libtoolize: 1: /disk/d1/oe/build_multi_dev/staging/i686-linux/usr/bin/sed: not found configure.ac:28: required file `./ltmain.sh' not found autoreconf: automake failed with exit status: 1 the libtool is installed in my host i don't understand why ubuntu cannot compile anything. arm-angstrong is installed and configured environment configured all is configured and installed but anything work. thank you for your response
is ok now for compile tslib sudo ./autogen.sh ./configure CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ -host=arm-linux -target=arm -enable-static=no -enable-shared=yes thanks
hi, in this http://mini2440.sv-design.at/ what is a version of qt from this link ? is 4.6.2 ? because the file private/qpixmapdata_p.h from directory usr/qt/include/qt/private doesn't exist but exist in version qt-everywhere 4.6.2 and i don't compile demo programm. thanks in advance.
Yea its 4.6.2 and it worked all fine for me.. exept the speed thingy.. just copy the lib and plugins folder to /usr/qt/lib ajnd /usr/qt/plugin and use the FULL to compile your own projects Seppo
hi, in which directory i must put a file libz.so.1 ? because ./helloworld -qws don't work, the libz.so.1 is not found in my board i have put libz.so.1.2.3.3 in all directory lib ans link to this file libz.so.1 /usr/lib /lib/opt/Qtopia/lib /usr/qt/lib ??????? thanks in advance
Hello all, I am getting the following error messages on ubuntu 9.10 1. qmake: 1: Syntax error: word unexpected (expecting ")")' 2. You might need to modify the include and library search paths by editing QMAKE_INCDIR and QMAKE_LIBDIR in /home/mike/mini2440 /qt-everywhereopensource-src-4.6.2/mkspecs/qws/linux-arm-g++ How do i resolve these problems. Thank you all.
Hello All, I turned on the switch "-v" and the error message "....bin/qmake: 1: Syntax error: word unexpected (expecting ")") " is reported for the following: floatmath auto-detection... () ... ... floatmath disabled. mmx auto-detection... () ... ... mmx disabled. 3dnow auto-detection... () ... ... 3dnow disabled. sse auto-detection... () ... ... sse disabled. sse2 auto-detection... () ... ... sse2 disabled. neon auto-detection... () ... ... neon disabled. libjpeg auto-detection... () ... ... libjpeg disabled. libtiff auto-detection... () ... ... libtiff disabled. libmng auto-detection... () ... ... libmng disabled. libpng auto-detection... () ... ... libpng disabled. DB2 auto-detection... () ... ... DB2 disabled. InterBase auto-detection... () ... ... InterBase disabled. MySQL (thread-safe) auto-detection... () ... ... MySQL (thread-safe) disabled. MySQL (thread-unsafe) auto-detection... () ... ... MySQL (thread-unsafe) disabled. OCI auto-detection... () ... ... OCI disabled. ODBC auto-detection... () ... ... ODBC disabled. iODBC auto-detection... () ... ... iODBC disabled. PostgreSQL auto-detection... () ... ... PostgreSQL disabled. SQLite2 auto-detection... () ... ... SQLite2 disabled. unknown SQL driver: sqlite_symbian TDS auto-detection... () ... ... TDS disabled. NIS auto-detection... () ... ... NIS disabled. Cups auto-detection... () ... ... Cups disabled. D-Bus auto-detection... () ... ... D-Bus disabled. EGL (EGL/egl.h) auto-detection... () ... ... EGL (EGL/egl.h) disabled. EGL (GLES/egl.h) auto-detection... () ... ... EGL (GLES/egl.h) disabled. Glib auto-detection... () ... ... Glib disabled. tslib auto-detection... () ... ... tslib disabled. The tslib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR and QMAKE_LIBDIR in /home/mike/qt-everywhere-opensource-src-4.7.0-tp/mkspecs/qws/linux-arm-gnueabi- g++. Please help, any input is welcome. Note: This error message is reported on Ubuntu 9.10 and 10.04 with arm-none-linux-gnueabi-g++ or arm-angstrom-linux-gnueabi-g++ Thanks, flux000
In file <path to qt>/mkspecs/qws/linux-arm-g++/qmake.conf I added: QMAKE_INCDIR += <path to your tslib dir>/tslib-1.0/src QMAKE_LIBDIR += <path to your tslib dir>/tslib-1.0/src/.libs I also added (I'm using nfs to boot)... QMAKE_LIBDIR += <path to my nfs root>/lib Hope this helps.
Hello All, This works for me... In qmake.conf file at the option '-ffast-math' as shown below to enable the floatmath (floatmath enabled). As for the other msges, just disable those components through your configuration options (e.g. -no-mmx -no-3dnow and so on) or just leave those options out and qt 4.x will compile. QMAKE_CXX = arm-angstrom-linux-gnueabi-g++ -ffast-math Also, to solve the The tslib functionality test failed, just add the following to qmake.conf prior to "load(qt_config)". QMAKE_INCDIR = "Path to your tslib include directory" QMAKE_LIBDIR = "Path to your tslib lib directory" Note: Do not export "QMAKE_CC=arm-angstrom-linux-gnueabi-gcc" to your environment and so on. The only export you need in your environment is "QWS_MOUSE_PROTO=Tslib:/dev/input/mouse0" Hope this helps, cause this is what worked for me. Regards, flux000
Hi all, I have tried to build qt4.6.2 but I don't understand why it doesn't work. First I run configure: sudo ./configure -embedded arm -prefix /usr/local/Qt -release -shared -fast -pch -no-qt3support -no-sql-sqlite -no-libtiff -no-libmng -no-libjpeg -qt-zlib -no-libpng -no-freetype -no-openssl -nomake examples -nomake demos -nomake tools -optimized-qmake -no-phonon -no-nis -no-opengl -no-cups -no-xcursor -no-xfixes -no-xrandr -no-svg -no-phonon-backend -no-3dnow -no-largefile -no-gif -no-mmx -no-xrender -no-xmlpatterns -no-xkb -no-sm -no-xinerama -no-xshape -no-webkit -no-separate-debug-info -xplatform qws/linux-arm-g++ -depths 16 -no-qvfb -no-gtkstyle -qt-gfx-linuxfb -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb -little-endian and it seems to be ok. But when I try to run make it given the next error: arm-none-linux-gnueabi-g++ -ffast-math -pipe -fno-exceptions -O0 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -I../../tslib-1.0/src -x c++-header -c global/qt_pch.h -o .pch/release-shared-emb-arm/QtCore.gch/c++ make[1]: arm-none-linux-gnueabi-g++: Command not found make[1]: *** [.pch/release-shared-emb-arm/QtCore.gch/c++] Error 127 And if I given arm-none-linux-gnueabi-g++ command it seems to work ok: => arm-none-linux-gnueabi-g++: no input files So, could any tell me what is the wrong? What I should be do?
Try running # qmake confclean before running # qmake That might help. Also, is arm-none-linux-gnueabi-g++ in your path? Or was it just in the current directory when you tested it?
Thanks Tim, arm-none-linux-gnuebai-g++ is my path. Problem is when I try to run make in sudo mode. If I run make without sudo then I get the next error: global/qt_pch.h:1: fatal error: can't create precompiled header .pch/release-shared-emb-arm/QtCore.gch/c++: Permission denied compilation terminated. How I can set the path so that it works also in sudo?
Hi, I was just compiling Qt 4.6.2 and everything went ok, but just after I made some changes. sudo make install fails because says it can't find arm-none-linux-gnueabi-ranlib. If I don't use sudo then it fails because it says "Permission denied". The directory I was using to install Qt was /usr/local/Qt To solve this do the following: In my case user=luis, group=luis, in your case use your go to /usr/local/Qt sudo chown -hR luis Qt/ sudo chgrp -hR luis Qt/ Change both user and group of destination directory to your user and group. After that, just execute: make install everything should work ok, regarding the permissions issue. Best regards, LDS
Hi LDS and thank you very much. I changed permission with chown and now all is ok. And next questions is: What next? How I use(or start) Qt 4.6.2? Where I can find examples for that? Best regards pera
Nice to know that you made it. Well, the next step is to copy everything in /usr/local/Qt (the installation directory) to the MINI2440 exactly in the same place (/usr/local/Qt) so that the executable files can find the files they need (libraries). You can also boot or copy the files using TFTP ou NFS. After that, you should set every ambient variable needed LD_LIBRARY_PATH, QTDIR, TSLIB variables, etc. After that, just run one of the examples using qws flag like "./application -qws", since you don't have any Qt server running. Best regards, LDS
Hi LDS, I have tried to copy all in /usr/local/Qt but big problem is that there are not enough a space in my mini2440 board. I have 128M borad and about 70M the free space but this is not enough for that. Do I need all library of Qt or can I copy only what needed? Best Regards pera
You can leave all the examples out except one or two to try if it works. And you probably don't need all the fonts, just use the ones you need in your app, or the example. Best regards, LDS
Hello, i've managed to resolve many bugs in the Qt Embedded version 4.6.2, but when I execute one of the examples in my Mini2440 board I get the following error: [root@FriendlyARM sdi]# ./sdi -qws ./sdi: symbol lookup error: /usr/local/Qt/lib/libQtGui.so.4: undefined symbol: _ZN23QCoreApplicationPrivate19checkReceiverThreadEP7QObject The result of export command is: export HOME='/root' export LD_LIBRARY_PATH='/usr/local/Qt/lib:/usr/local/lib:' export LOGNAME='root' export PATH='/usr/local/Qt/bin:/sbin:/usr/sbin:/bin:/usr/bin' export PS1='[\u@\h \W]\# ' export PWD='/' export QTDIR='/usr/local/Qt' export QWS_MOUSE_PROTO='tslib:/usr/input/ts' export SHELL='/bin/sh' export TERM='vt102' export TSLIB_CONFFILE='/usr/local/etc/ts.conf' export TSLIB_PLUGINDIR='/usr/local/lib/ts' export USER='root' Anybody has any idea how to solve this error? I'd be much appreciated. Best regards, LDS
Hi there, the instructions of upgrading Qt4.6.2 is written in my blog. If possible, please take a look there. http://mini2440vietnam.blogspot.com/2011/04/upgrade-qt462-in-mini2440.html
The most annoying problem i have ever come across is this , while you configure QT - for cross compilation in UBUNTU pc. -- Syntax error: word unexpected (expecting ")") The almost unanimous fix for this issue is, something along the lines of "sudo rm /bin/sh; sudo ln -s /bin/bash /bin/sh" to make /bin/sh point to /bin/bash. It would be worth seeing if this fixes the issue.
Dear all, please anyone help me. while compiling qt-everywhere-opensource-src-4.6.2 i got following Error ine 69: /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: cannot execute binary file /usr/local/qt-everywhere-opensource-src-4.6.2/config.tests/unix/compile.test: line 69: /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: cannot execute binary file The tslib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR and QMAKE_LIBDIR in /usr/local/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++. [root@localhost qt-everywhere-opensource-src-4.6.2]# please help me thank you
Hi Sunil/Bala, I am seeing similar issue where I was getting following error, /home/xenon/Documents/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") But after changing sh -> bash, I am getting /usr/local/qt-everywhere-opensource-src-4.6.2/config.tests/unix/compile.test: line 69: /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: cannot execute binary file Anyone has any solution for same. Thanks Tej
Hi, Trying to cross compiling qt, but can't solve the below shown issue, tried many ways. i am using the configuration: ./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync -no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib -qt-mouse-linuxinput ISSUE: /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") /usr/local/qt-everywhere-opensource-src-4.6.2/bin/qmake: 1: Syntax error: word unexpected (expecting ")") The tslib functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR and QMAKE_LIBDIR in /usr/local/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++. root@ubuntu:/usr/local/qt-everywhere-opensource-src-4.6.2# successfully cross compiled tslib and placed under /home/tslib i followed the link: http://mini2440vietnam.blogspot.co.nz/2011/04/upgrade-qt462-in-mini2440.... can anyone help me ?