4. 安装Qt/X11 2.3.2
在Linux命令模式下运行以下命令:
tar xfz qt-x11-2.3.2.tar.gz
cd qt-2.3.2
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
. /configure -no-opengl
make
出错信息如下:
In file included from kernel/qpsprinter.cpp:97:
kernel/qt_x11.h:65:22: X11/Xlib.h: No such file or directory
kernel/qt_x11.h:71:23: X11/Xutil.h: No such file or directory
kernel/qt_x11.h:72:21: X11/Xos.h: No such file or directory
kernel/qt_x11.h:73:23: X11/Xatom.h: No such file or directory
kernel/qt_x11.h:84:34: X11/extensions/shape.h: No such file or directory
kernel/qpsprinter.cpp: In member function `USHORT
QPSPrinterFontTTF::unicode_for_glyph(int)':
kernel/qpsprinter.cpp:3328: warning: `ULONG offset' might be used uninitialized
in this function
kernel/qpsprinter.cpp: In constructor `QPSPrinterFont::QPSPrinterFont(const
QFont&, QPSPrinterPrivate*)':
kernel/qpsprinter.cpp:5195: error: `XGetFontPath' undeclared (first use this
function)
kernel/qpsprinter.cpp:5195: error: (Each undeclared identifier is reported only
once for each function it appears in.)
kernel/qpsprinter.cpp:5235: error: `XFreeFontPath' undeclared (first use this
function)
make[2]: *** [kernel/qpsprinter.o] Error 1
make[2]: Leaving directory `/root/Work/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/root/Work/qt-2.3.2'
make: *** [init] Error 2
请问怎么解决?????????
The Qt library is now built in ./lib
The Qt examples are built in the directories in ./examples
The Qt tutorials are built in the directories in ./tutorial
Note: be sure to set $QTDIR to point to here or to wherever
you move these directories.
5. 安装Qt/X11 3.1.2
在Linux命令模式下运行以下命令:
tar xfz qt-x11-free-3.1.2.tar.gz
cd qt-x11-free-3.1.2
export QTDIR=$PWD
export QT3DIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -thread
make
结果如下:
make[3]: Leaving directory `/root/Work/qt-x11-free-3.1.2/examples/xml/tagreader-with-features'
make[2]: Leaving directory `/root/Work/qt-x11-free-3.1.2/examples'
The Qt library is now built in ./lib
The Qt examples are built in the directories in ./examples
The Qt tutorials are built in the directories in ./tutorial
我又来了一次:
./configure
结果如下:
Makefiles will be regenerated.
./configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
../configure: line 408: tmake: command not found
.
QPE is now configured for building. Just run "make".
To reconfigure, run make clean and configure.
再来一次make:
make
结果如下:
make -C libraries/qtopia
make[1]: Entering directory `/root/Work/qtopia-free-1.6.0/src/libraries/qtopia'
make[1]: *** No rule to make target `all', needed by `default'. Stop.
make[1]: Leaving directory `/root/Work/qtopia-free-1.6.0/src/libraries/qtopia'
make: *** [libraries/qtopia] Error 2
请问这是怎么回事呢????实在不懂!!!