搜到的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 -D
错误提示:
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
更多推荐
所有评论(0)