搜到的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 出現 warning: unterminated #pragma pack (push, ...) at end of file 問題的解決方案QT
- Qt TcpSocket的掉線解決方法QTTCP
- Qt報Multiple definition錯誤的解決QT
- 4.7
- 解決方案| anyRTC金融音視訊解決方案
- 錯誤 qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ 的解決方法QTPluginPlatformWindows
- Qt 解決報錯registered using qRegisterMetaType()QT
- VNC打不開Qt Creator解決VNCQT
- UnexpectedRollbackException解決方案Exception
- 佈局的常用解決方案
- 浮動坍塌的解決方案
- Jou 的解決方案系列:序言
- 前端跨域的解決方案前端跨域
- mpvue使用sass的解決方案Vue
- mpvue 使用sass的解決方案Vue
- 分散式鎖的解決方案分散式
- 親測有用的解決方案
- 不同解決方案的比較
- 探索ABP的EventHub解決方案
- 人工智慧的解決方案人工智慧
- 高併發解決方案詳解(9大常見解決方案)
- Qt error: LNK1104: 無法開啟檔案“releasexxxxx.exe”報錯解決方案QTError
- 解決MySQL server has gone away錯誤的解決方案MySqlServerGo
- 快取的三大方案以及解決方案快取
- 高可用解決方案
- Redis bigkey解決方案Redis
- 前端整合解決方案前端
- Feast on Amazon 解決方案AST
- 大漠編譯的程式 解決方案編譯
- SAP ABAP的CI/CD解決方案
- JS中的非同步解決方案JS非同步
- git pull衝突的解決方案Git
- 使用NVRAM的簡單解決方案VR
- 分散式下的WebSocket解決方案分散式Web
- App Store PLA 1.2 的解決方案APP
- python logging常見的解決方案Python
- 跨域的原因以及解決方案跨域
- 解決單執行緒QT UI 載入進度條實時顯示方案記錄執行緒QTUI