QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2103|回复: 6

急问,QT/E 安装问题 ! !!!!

[复制链接]
发表于 2005-9-15 10:28:35 | 显示全部楼层 |阅读模式
我的系统是Debian,内核是2.6.8
我的步骤如下:
1. 解包Qtopia
在Linux命令模式下运行以下命令:
  tar xfz qtopia-free-1.6.0.tar.gz
  cd qtopia-free-1.6.0
  export QPEDIR=$PWD   (设置环境变量)
  3cd..
2. 安装Tmake
在Linux命令模式下运行以下命令:
tar xfz tmake-1.11.tar.gz
export TMAKEDIR=$PWD/tmake-1.11
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
export PATH=$TMAKEDIR/bin:$PATH
3. 安装Qt/Embedded2.3.4
在Linux命令模式下运行以下命令:
tar xfz qt-embedded-2.3.4.tar.gz
cd qt-2.3.4
export QTDIR=$PWD
export QTEDIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
. /configure -qconfig qpe -qvfb -depths 4,8,16,32
make sub-src

信息如下:
make[1]: Leaving directory `/root/Work/qt-2.3.4/src'

是不是上面的过程没有问题?!
 楼主| 发表于 2005-9-15 10:38:59 | 显示全部楼层
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
请问怎么解决?????????
回复

使用道具 举报

 楼主| 发表于 2005-9-15 13:02:40 | 显示全部楼层
我做了这一步:
apt-get install libx11-dev
然后
make
结果如下:
make[4]: Leaving directory `/root/Work/qt-2.3.2/examples/xmlquotes'
make[3]: Leaving directory `/root/Work/qt-2.3.2/examples'
make[2]: Leaving directory `/root/Work/qt-2.3.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

Note: be sure to set $QTDIR to point to here or to wherever
      you move these directories.

Enjoy!   - the Trolltech team

make[1]: Leaving directory `/root/Work/qt-2.3.2'
这样是不是就是ok了??!!
回复

使用道具 举报

 楼主| 发表于 2005-9-15 14:50:05 | 显示全部楼层
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

Enjoy!   - the Trolltech team

make[1]: Leaving directory `/root/Work/qt-x11-free-3.1.2'
没有错误吧?????
回复

使用道具 举报

 楼主| 发表于 2005-9-15 14:57:23 | 显示全部楼层
6. 安装Qtopia
在Linux命令模式下运行以下命令:
cd qtopia-free-1.6.0
export QTDIR=$QTEDIR
export QPEDIR=$PWD
export PATH=$QPEDIR/bin:$PATH
cd src/
./configure
make
错误信息如下:
make -C libraries/qtopia
make[1]: Entering directory `/root/Work/qtopia-free-1.6.0/src/libraries/qtopia'
/root/Work/qt-2.3.4/bin/uic passwordbase_p.ui -o ./passwordbase_p.h
make[1]: /root/Work/qt-2.3.4/bin/uic: Command not found
make[1]: *** [passwordbase_p.h] Error 127
make[1]: Leaving directory `/root/Work/qtopia-free-1.6.0/src/libraries/qtopia'
make: *** [libraries/qtopia] Error 2
请问怎么解决??????????????????
回复

使用道具 举报

 楼主| 发表于 2005-9-15 15:06:11 | 显示全部楼层
哪位大哥帮看看,uic 是什么? 具体怎么弄?谢谢了
回复

使用道具 举报

 楼主| 发表于 2005-9-15 15:32:49 | 显示全部楼层
我又来了一次:
./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
请问这是怎么回事呢????实在不懂!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-3 04:28 , Processed in 0.068699 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表