找回密码
 立即注册
收起左侧

编译移植qt-everywhere-opensource-src-4.6.3出现下面这个错误

4
回复
5277
查看
[复制链接]
累计签到:14 天
连续签到:1 天
来源: 2015-1-16 16:15:07 显示全部楼层 |阅读模式

马上注册,查看详细内容!注册请先查看:注册须知

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
前面配置没有问题

make时出现错误:这个问题困扰老长时间了

In file included from ../../include/QtCore/qlist.h:1,
                 from ../../include/QtCore/../../src/corelib/kernel/qobject.h:50,
                 from ../../include/QtCore/qobject.h:1,
                 from ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:45,
                 from ../../include/QtCore/qcoreapplication.h:1,
                 from global/qt_pch.h:58:
../../include/QtCore/../../src/corelib/tools/qlist.h:54:15: error: new: No such file or directory
../../include/QtCore/../../src/corelib/tools/qlist.h: In member function ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = QString]’:
../../include/QtCore/../../src/corelib/tools/qlist.h:426:   instantiated from ‘void QList<T>::append(const T&) [with T = QString]’
../../include/QtCore/../../src/corelib/tools/qstringlist.h:70:   instantiated from here
../../include/QtCore/../../src/corelib/tools/qlist.h:341: error: no matching function for call to ‘operator new(unsigned int, QList<QString>::Node*&)’
<built-in>:0: note: candidates are: void* operator new(unsigned int)
../../include/QtCore/../../src/corelib/tools/qlist.h: In member function ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QString]’:
../../include/QtCore/../../src/corelib/tools/qlist.h:618:   instantiated from ‘QList<T>& QList<T>:perator+=(const QList<T>&) [with T = QString]’
../../include/QtCore/../../src/corelib/tools/qstringlist.h:85:   instantiated from here
../../include/QtCore/../../src/corelib/tools/qlist.h:360: error: no matching function for call to ‘operator new(unsigned int, QList<QString>::Node*)’
<built-in>:0: note: candidates are: void* operator new(unsigned int)
make[1]: *** [.pch/release-shared-emb-arm/QtCore.gch/c++] Error 1
请问 怎么解决呢 在网上搜索很久没有解决方案 求指教!!!!

回复

使用道具 举报

累计签到:595 天
连续签到:1 天
2015-1-16 16:38:52 显示全部楼层
你有裁剪过吗?按照道理配置完后编译应该没问题的,我裁剪的时候出现过这样的问题,当时我想把qsetting砍掉
回复 支持 反对

使用道具 举报

累计签到:14 天
连续签到:1 天
2015-1-18 21:07:27 显示全部楼层
sywh 发表于 2015-1-16 16:38
你有裁剪过吗?按照道理配置完后编译应该没问题的,我裁剪的时候出现过这样的问题,当时我想把qsetting砍掉 ...

裁剪过了 我的配置 照着网上教程来的 和别人的都一样的 配置如下;
./configure \
-prefix /usr/local/Trolltech/QtEmbedded-4.6.3-arm \
-opensource \
-confirm-license \
-release -shared \
-embedded arm \
-xplatform qws/linux-arm-g++ \
-depths 16,18,24 \
-fast -pch \
-optimized-qmake \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian -host-little-endian \
-no-qt3support \
-no-libtiff -no-libmng \
-no-opengl \
-no-mmx -no-sse -no-sse2 \
-no-3dnow \
-no-openssl \
-no-qvfb \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-glib \
-no-webkit \
-no-phonon \
-no-javascript-jit \
-no-xkb -no-sm -no-xinerama -no-xshape \
-no-xcursor -no-xfixes -no-xrandr -no-xrender \
-no-separate-debug-info \
-nomake examples -nomake tools -nomake docs -nomake demos\
-qt-kbd-usb \
-no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb \
-qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib

回复 支持 反对

使用道具 举报

累计签到:595 天
连续签到:1 天
2015-1-19 09:54:30 显示全部楼层
这个应该也是不影响的,没深入代码级剪裁吧。
回复 支持 反对

使用道具 举报

累计签到:14 天
连续签到:1 天
2015-1-19 16:46:28 显示全部楼层
sywh 发表于 2015-1-19 09:54
这个应该也是不影响的,没深入代码级剪裁吧。

哎 这问题 蛮奇葩的 网上都没有
回复 支持 反对

使用道具 举报

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

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了