当前位置:编程学习 > wap >>

qte配置错误!求高手指点

project.cpp:1139:   instantiated from here
/home/fantasy/Linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/include/QtCore/../../src/corelib/tools/qhash.h:528: error: no matching function for call to ‘operator new(unsigned int, void*&)’
<built-in>:0: note: candidates are: void* operator new(unsigned int)
/home/fantasy/Linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/include/QtCore/../../src/corelib/tools/qhash.h:530: error: no matching function for call to ‘operator new(unsigned int, void*&)’
<built-in>:0: note: candidates are: void* operator new(unsigned int)
gmake: *** [project.o] Error 1

这是配置指令
echo yes | ./configure -opensource -embedded arm -xplatform qws/linux-arm-g++  -no-webkit -qt-libtiff -qt-libmng  -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon --------------------编程问答-------------------- 1.别破坏源码,另外起个target目录,在当下执行configure
2.既然你用到了-qt-mouse-tslib   就要./configure 所有参数后 链接 -I tslib/include -L tslib/lib  --------------------编程问答-------------------- --------------------编程问答-------------------- 1,看看是不是交叉编译器版本的问题。
2,看看$QTDIR/mkspecs/qws/linux-arm-g++/qmake.conf 这个目录里设置交叉编译器的问题。
3,楼上说的tslib库问题, tslib库需要自己安装的, 然后指定的路径是自己安装相对应得路径。
4,如果楼主用的是大屏幕的话(超过3.5),推荐用4.7.2的源码, 4.7.0 对大屏幕的触摸支持不了(我移植的时候是这样的)。 --------------------编程问答-------------------- 4.7.0确实有问题。
补充:移动开发 ,  Qt
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,