LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 843|回复: 0

建立qt embedded 出错

[复制链接]
发表于 2009-6-10 09:13:32 | 显示全部楼层 |阅读模式
下载的源码如下
tmake-1.13.tar.gz
qt-embedded-2.3.7.tar.gz
qt-x11-2.3.2 .tar.gz

安装步骤如下:
tar xfz tmake-1.11.tar.gz
export TMAKEDIR=$PWD/tmake-1.11
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
export PATH=$TMAKEDIR/binPATH

tar xfz qt-embedded-2.3.7.tar.gz
cd qt-2.3.7
export QTDIR=$PWD
export QTEDIR=$QTDIR
export PATH=$QTDIR/binPATH
export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH
./configure -qconfig -qvfb -depths 4,8,16,32
make sub-src


结果提示错误信息如下:
  1. cd src; make
  2. make[1]: Entering directory `/usr/local/qt-2.3.7/src'
  3. g++  -c -I/usr/local/qt-2.3.7/include  -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -fPIC -DQT_NO_IMAGEIO_MNG -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MACH64 -DQT_NO_QWS_MATROX -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA_16 -DQT_NO_QWS_DEPTH_24 -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT  -I/usr/local/qt-2.3.7/src/3rd*****/zlib -I/usr/local/qt-2.3.7/src/3rd*****/libpng -I3rd*****/kernel -I3rd*****/tools -o allmoc.o allmoc.cpp
  4. In file included from kernel/qt.h:62,
  5.                  from allmoc.cpp:16:
  6. /usr/local/qt-2.3.7/include/qsortedlist.h: In destructor ‘QSortedList<type>::~QSortedList()’:
  7. /usr/local/qt-2.3.7/include/qsortedlist.h:51: error: there are no arguments to ‘clear’ that depend on a template parameter, so a declaration of ‘clear’ must be available
  8. /usr/local/qt-2.3.7/include/qsortedlist.h:51: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
  9. In file included from kernel/qt.h:303,
  10.                  from allmoc.cpp:16:
  11. /usr/local/qt-2.3.7/include/qwindowsystem_qws.h: At global scope:
  12. /usr/local/qt-2.3.7/include/qwindowsystem_qws.h:213: warning: ‘typedef’ was ignored in this declaration
  13. make[1]: *** [allmoc.o] 错误 1
  14. make[1]: Leaving directory `/usr/local/qt-2.3.7/src'
  15. make: *** [sub-src] 错误 2
复制代码


请问怎么解决?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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