搜到的qt 4.7 vxworks解決方案
錯誤提示:
c++pentium -c -fno-builtin -I/windriver/WindRiver/vxworks-6.7/target/h -I/windriver/WindRiver/vxworks-6.7/target/h/wrn/coreip -DCPU=SIMLINUX -DVX_CPU_FAMILY=simlinux -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -D_VSB_CONFIG_FILE='<../lib/h/config/vsbConfig.h>' -O2 -Wall -W -D_REENTRANT -DQT_SHARED -DVXWORKS -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/unsupported/vxworks-simpentium-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-auto -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-auto -o .obj/release-shared-emb-auto/qglobal.o global/qglobal.cpp
../../include/QtCore/../../src/corelib/tools/qstringbuilder.h:74: error: expected ';' before '.' token../../include/QtCore/../../src/corelib/tools/qstringbuilder.h: In member function 'const char* QLatin1Literal::data() const':
../../include/QtCore/../../src/corelib/tools/qstringbuilder.h:66: error: 'mBlkHdr' was not declared in this scope
../../include/QtCore/../../src/corelib/tools/qstringbuilder.h: In constructor 'QLatin1Literal::QLatin1Literal(const char (&)[N])':
../../include/QtCore/../../src/corelib/tools/qstringbuilder.h:70: error: class 'QLatin1Literal' does not have any field named 'mBlkHdr'
../../include/QtCore/../../src/corelib/tools/qstringbuilder.h:70: error: expected `(' before '.' token
../../include/QtCore/../../src/corelib/tools/qstringbuilder.h:70: error: expected `{' before '.' token
make[1]: *** [.obj/release-shared-emb-auto/qglobal.o] Error 1
make[1]: Leaving directory `/qt473vxw/src/corelib'
解決方法:
Hi
To resolve this just replace variable m_data to some other name say u_data in qstringbuilder.h This will resolve ur issue
The peoblem is coming as in vxworks mbuf.h m_data is already defined as
#define m_data mBlkHdr.mdata in So its taking this defination and trying to look out for mBlkHdr.
原文地址:
http://www.qtcentre.org/threads/43290-Help!!!Problems-in-building-Qt4-7-3-for-Vxworks-cross-compile
相關文章
- QT QML模組的程式設計挑戰與解決方案QT程式設計
- QT使用scrollarea顯示圖片,完美解決方案QT
- Qt報Multiple definition錯誤的解決QT
- Qt TcpSocket的掉線解決方法QTTCP
- QT 出現 warning: unterminated #pragma pack (push, ...) at end of file 問題的解決方案QT
- 解決方案| anyRTC金融音視訊解決方案
- 錯誤 qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ 的解決方法QTPluginPlatformWindows
- QT中文顯示亂碼解決QT
- VNC打不開Qt Creator解決VNCQT
- LAMP解決方案LAMP
- 4.7
- 高併發解決方案詳解(9大常見解決方案)
- Jou 的解決方案系列:序言
- 分散式鎖的解決方案分散式
- 佈局的常用解決方案
- mpvue使用sass的解決方案Vue
- mpvue 使用sass的解決方案Vue
- 前端跨域的解決方案前端跨域
- 探索ABP的EventHub解決方案
- 人工智慧的解決方案人工智慧
- 浮動坍塌的解決方案
- 介面測試的解決方案
- ajax跨域的解決方案跨域
- CA的安全解決方案(轉)
- 不同解決方案的比較
- 親測有用的解決方案
- Qt 之 執行Qt Creator出現cannot find -lGL的問題的兩種解決QT
- Qt 解決報錯registered using qRegisterMetaType()QT
- ios不支援fixed解決解決方案iOS
- vxworks開發基礎
- 快取的三大方案以及解決方案快取
- blog又能被google搜到了Go
- 解決MySQL server has gone away錯誤的解決方案MySqlServerGo
- 前端整合解決方案前端
- 高可用解決方案
- UnexpectedRollbackException解決方案Exception
- Feast on Amazon 解決方案AST
- 埠占用解決方案