主题 : QT 4.7 中编译出现的奇怪现象 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 38551
精华: 0
发帖: 74
金钱: 370 两
威望: 74 点
综合积分: 148 分
注册时间: 2011-02-26
最后登录: 2011-12-27
楼主  发表于: 2011-03-03 15:49

 QT 4.7 中编译出现的奇怪现象

在QT4.7中编译过程如下:

Running build steps for project hello...
Starting: "/usr/bin/make" clean -w
make: Entering directory `/home/linux/wcl/hello-build-desktop'
rm -f moc_mainwindow.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o moc_mainwindow.o
rm -f *~ core *.core
make: Leaving directory `/home/linux/wcl/hello-build-desktop'
The process "/usr/bin/make" exited normally.
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/linux/wcl/hello-build-desktop'
/usr/local/Trolltech/QtEmbedded-4.7.0-arm/bin/uic ../hello/mainwindow.ui -o ui_mainwindow.h
/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/mkspecs/qws/linux-arm-g++ -I../hello -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include -I. -I. -I../hello -I. -o main.o ../hello/main.cpp
In file included from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qobject.h:48:0,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qcoreapplication.h:45,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/qapplication.h:45,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/QApplication:1,
                 from ../hello/main.cpp:1:
/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/mkspecs/qws/linux-arm-g++ -I../hello -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include -I. -I. -I../hello -I. -o mainwindow.o ../hello/mainwindow.cpp
/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qstring.h:187:17: note: the mangling of 'va_list' has changed in GCC 4.4
In file included from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qobject.h:48:0,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/qwidget.h:46,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/qmainwindow.h:45,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/QMainWindow:1,
                 from ../hello/mainwindow.h:4,
                 from ../hello/mainwindow.cpp:1:
/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qstring.h:187:17: note: the mangling of 'va_list' has changed in GCC 4.4
/usr/local/Trolltech/QtEmbedded-4.7.0-arm/bin/moc -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/mkspecs/qws/linux-arm-g++ -I../hello -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include -I. -I. -I../hello -I. ../hello/mainwindow.h -o moc_mainwindow.cpp
/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/mkspecs/qws/linux-arm-g++ -I../hello -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include -I. -I. -I../hello -I. -o moc_mainwindow.o moc_mainwindow.cpp
In file included from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qobject.h:48:0,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/qwidget.h:46,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/qmainwindow.h:45,
                 from /usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtGui/QMainWindow:1,
                 from ../hello/mainwindow.h:4,
                 from moc_mainwindow.cpp:10:
/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-g++ -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.0-arm/lib -o hello main.o mainwindow.o moc_mainwindow.o    -L/usr/local/Trolltech/QtEmbedded-4.7.0-arm/lib -lQtGui -L/usr/local/Trolltech/QtEmbedded-4.7.0-arm/lib -lQtNetwork -lQtCore -lpthread
/usr/local/Trolltech/QtEmbedded-4.7.0-arm/include/QtCore/qstring.h:187:17: note: the mangling of 'va_list' has changed in GCC 4.4
make: Leaving directory `/home/linux/wcl/hello-build-desktop'
The process "/usr/bin/make" exited normally.

不知道标识红体字的是什么意思?我用的交叉编译器是4.5.1
大笑笑大
级别: 骑士
UID: 25314
精华: 8
发帖: 184
金钱: 1320 两
威望: 264 点
综合积分: 528 分
注册时间: 2010-07-22
最后登录: 2014-10-11
1楼  发表于: 2011-05-30 17:08
同问,有没有解决的办法?
我用arm-linux-gcc4.5.1编译qt4.6.3也出现va_list的问题!感觉很不爽
级别: 新手上路
UID: 92613
精华: 0
发帖: 15
金钱: 75 两
威望: 15 点
综合积分: 30 分
注册时间: 2013-06-04
最后登录: 2013-07-20
2楼  发表于: 2013-06-13 20:10
同问,我也是,怎么这类问题就没人理了?