首先感谢前来观帖的朋友!
先说明一下我的情况:
1、我先修改了mkspecs/qws/linux-arm-g++/qmake.conf文件,将
#QMAKE_CC= arm-linux-gcc
#QMAKE_CXX= arm-linux-g++
#QMAKE_LINK= arm-linux-g++
#QMAKE_LINK_SHLIB= arm-linux-g++
改为:
QMAKE_CC=/opt/buildroot-2011.11/arm920t/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
QMAKE_CXX=/opt/buildroot-2011.11/arm920t/usr/bin/arm-unknown-linux-uclibcgnueabi-g++
QMAKE_LINK=/opt/buildroot-2011.11/arm920t/usr/bin/arm-unknown-linux-uclibcgnueabi-g++
QMAKE_LINK_SHLIB=/opt/buildroot-2011.11/arm920t/usr/bin/arm-unknown-linux-uclibcgnueabi-g++
注:
1、我的交叉编译器安装在了/opt/下;
2、使用的是centos;
3、gcc交叉编译器版本:arm-linux-gcc-4.3.6
2、进入/usr/local/qt/qt-embedded-linux-opensource-src-4.4.3-arm目录执行了./configure -arch arm命令。
3、然后gmake;在gmake后出现一下错误:
/opt/buildroot-2011.11/arm920t/usr/bin/arm-unknown-linux-uclibcgnueabi-g++ -c -pipe -fno-exceptions -Wreturn-type -fno-strict-aliasing -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DHAVE_STDINT_H -DBUILD_WEBKIT -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/qws/linux-arm-g++ -I. -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include/QtGui -I../../../../include -I../WebKit/qt/Api -I../JavaScriptCore -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -I../JavaScriptCore/bindings/c -I../JavaScriptCore/wtf -I../JavaScriptCore/ForwardingHeaders -I. -IForwardingHeaders -Iplatform -Iplatform/network -Iplatform/graphics -Iloader -Ipage -Icss -Idom -Ibridge -Iediting -Irendering -Ihistory -Ixml -Ihtml -Iplugins -I../../../../include/QtWebKit -I.rcc/release-shared-emb-arm -Igenerated -Itmp -I../JavaScriptCore -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -I../JavaScriptCore/bindings/c -I../JavaScriptCore/wtf -I../JavaScriptCore/bindings/qt -I../JavaScriptCore/pcre -I/usr/local/qt/qt-embedded-linux-opensource-src-4.4.3-arm/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/kjs/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/qt -Iplatform/graphics/svg/qt -Iloader/qt -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -I. -IForwardingHeaders -I../../webkit -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -Iplatform -Iplatform/network -Iplatform/graphics -Iplatform/graphics/svg -Iplatform/graphics/svg/filters -Iloader -Iloader/icon -Icss -Idom -Ipage -Ibridge -Iediting -Irendering -Ihistory -Ixml -Ihtml -Ibindings/js -Iksvg2 -Iksvg2/css -Iksvg2/svg -Iksvg2/misc -Iksvg2/events -Iplatform/image-decoders -I../../sqlite -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -o .obj/release-shared-emb-arm/collector.o ../JavaScriptCore/kjs/collector.cpp
../JavaScriptCore/kjs/collector.cpp: In function ‘void* KJS::currentThreadStackBase()’:
../JavaScriptCore/kjs/collector.cpp:355: error: ‘pthread_getattr_np’ was not declared in this scope
gmake[1]: *** [.obj/release-shared-emb-arm/collector.o] Error 1
gmake[1]: Leaving directory `/usr/local/qt/qt-embedded-linux-opensource-src-4.4.3-arm/src/3rdparty/webkit/WebCore'
gmake: *** [sub-webkit-make_default-ordered] Error 2
请问这个问题怎么解决?我若在./configure的时候去掉WebCore相关的东西,怎么去?会有什么影响啊?
麻烦各位高手指点指点啊~
谢谢~
------解决方案--------------------
现在官网上下载的都是4.7/4.8的everywhere源代码包,怎么还用4.4.3~~~
------解决方案--------------------
你如果不需要webkit 和网络相关的功能可以 加配置参数-no-webkit