Tmake version 1.13 or higher; (makefile file for generating qt/embedded application engineering)
Qt/embedded 3.3.4 (qt/embedded installation package)
Qt 3.3.4 for X11; (Qt's X11 version of the installation package, which produces the two tools required for the X11 development environment)
First step
1224 export tmakedir= $PWD/make-1.13 1225 export tmakepath= $TMAKEDIR/lib/qws/linux-x86-g++ 1226 export path= $TMAKEDIR/ Bin: $PATH
It does not work to perform tmake after modification. Possible cause TMAKE environment variable configuration error, or no reboot
Second Step
1244 CD qt-2.3.10/1245 LS 1246 export qtdir= $PWD 1247 export qtedir= $QTDIR 1248 export path= $QTDIR/bin: $PATH 1249 Export Ld_library_path= $QTDIR/lib: $LD _library_path 1250./config-qconfig-depths 4,8,16,32 1251./configure-qconfig-depths 4 , 8,16,32 1252 sudo./configure-qconfig-depths 4,8,16,32 1253 export qtdir= $PWD 1254 sudo./configure-qconfig-depths 4, 8,16,32 1255 PWD 1256 $PWD 1257 Export qtdir= $PWD
This step is a lot of problems oh.
Pending resolution
Error: ' Class QString ' has no member named ' UTF8 '
Make comes up with this problem ....
MAKE[1]: * * * [KERNEL/QMEMORYMANAGER_QWS.O] Error 1
MAKE[1]: Leaving directory '/USR/SRC/QT-2.3.10/SRC '
Make: * * * [SUB-SRC] Error 2
Modify:
#ifndef Qt_no_textcodec
Qcstring UTF8 () const;
Static QString FromUtf8 (const char*, int len=-1);
#endif
Third Step
1143 CD qt-x11-free-3.3.4/1144 LS 1145 export qtdir= $PWD 1146 export path= $QTDIR/bin: $PATH 1147 export ld_library_path= $Q Tdir/lib: $LD _library_path 1148/config 1149./configure 1150 Make
In the file included from kernel/qtaddons_x11.cpp:25:
Kernel/qt_x11_p.h:66:22:error:x11/xlib.h:no such file or directory
Kernel/qt_x11_p.h:71:23:error:x11/xutil.h:no such file or directory
Kernel/qt_x11_p.h:72:21:error:x11/xos.h:no such file or directory
Kernel/qt_x11_p.h:73:23:error:x11/xatom.h:no such file or directory
MAKE[2]: * * * [. obj/release-shared/qtaddons_x11.o] Error 1
MAKE[2]: Leaving directory '/USR/SRC/QT-X11-FREE-3.3.4/SRC '
MAKE[1]: * * * [SUB-SRC] Error 2
MAKE[1]: Leaving directory '/usr/src/qt-x11-free-3.3.4 '
Make: * * * [init] Error 2
Description to install the X11 development package, the online solution is: Install X11 development Package
sudo apt
-get
install xorg
-
Dev
That I myself was installing sudo apt-get install Qt-creator
The inside should contain the X11 development package, now so, in short, the problem is solved.
And then it came up.
/usr/bin/ld:cannot Find-lxext
Trouble.
All of a sudden, my kernel version is 2.6.24 and these files are 2.4.18.
O my heart.
This method seems simple, but for the kernel version, what the requirements of the more demanding things, my problem more than these, after all, there is not much time spent on this above, simply back to qt.nokia.com download the new source code, QT-EVERYWHERE-4.7.3-SRC According to the requirements of the official Internet to do these settings and so on.