<div dir="ltr">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">Hi guys,</span></p><p style="margin:0px;text-indent:0px"><br><span style="color:rgb(20,20,190)"></span></p><p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">I try to build my first embedded project in qt creator but failed.</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)"><br></span></p><p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">the target board is ATMEL SAMA5D34, and a qt-demo-image has been boot to the board and looks good, i build the yocto project by: bitbake mata-toolchain-qte command, after that i configured the qt creator by following the instruction from the link belows:<br>
</span></p><p style="margin:0px;text-indent:0px"><a href="https://community.freescale.com/thread/309578">https://community.freescale.com/thread/309578</a></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">
but after i press the build i get the mass compiler output msg as showed below, the project is just a simple test with basic Gui, i cannot solve the problem, anyone can help me, thx in advance.<br></p><p style="margin:0px;text-indent:0px">
<br><span style="color:rgb(20,20,190)"></span></p><p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">**************************************************************************************************************<br>
</span></p><p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">15:23:34: Running steps for project TestFun...</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">15:23:34: Starting: "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/bin/qmake2" /home/teng/Teng/TestFun/TestFun.pro -r -spec linux-gnueabi-oe-g++ CONFIG+=debug CONFIG+=declarative_debug</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">15:23:34: The process "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/bin/qmake2" exited normally.</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">15:23:34: Starting: "/usr/bin/make" </span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/bin/uic4 ../TestFun/mainwindow.ui -o ui_mainwindow.h</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mtune=cortex-a9 --sysroot=/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi -c -pipe -pipe -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -g -g -g -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I../TestFun -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia -I. -I. -I../TestFun -I. -o main.o ../TestFun/main.cpp</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">In file included from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qobject.h:48:0,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qwidget.h:46,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qmainwindow.h:45,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/QMainWindow:1,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from ../TestFun/mainwindow.h:4,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from ../TestFun/main.cpp:1:</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qstring.h:174:17: note: the mangling of 'va_list' has changed in GCC 4.4</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mtune=cortex-a9 --sysroot=/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi -c -pipe -pipe -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -g -g -g -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I../TestFun -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia -I. -I. -I../TestFun -I. -o mainwindow.o ../TestFun/mainwindow.cpp</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">In file included from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qobject.h:48:0,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qwidget.h:46,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qmainwindow.h:45,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/QMainWindow:1,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from ../TestFun/mainwindow.h:4,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from ../TestFun/mainwindow.cpp:1:</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qstring.h:174:17: note: the mangling of 'va_list' has changed in GCC 4.4</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/bin/moc4 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I../TestFun -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia -I. -I. -I../TestFun -I. ../TestFun/mainwindow.h -o moc_mainwindow.cpp</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mtune=cortex-a9 --sysroot=/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi -c -pipe -pipe -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -g -g -g -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I../TestFun -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui -I/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia -I. -I. -I../TestFun -I. -o moc_mainwindow.o moc_mainwindow.cpp</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">In file included from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qobject.h:48:0,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qwidget.h:46,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qmainwindow.h:45,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from /opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/QMainWindow:1,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from ../TestFun/mainwindow.h:4,</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from moc_mainwindow.cpp:10:</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qstring.h:174:17: note: the mangling of 'va_list' has changed in GCC 4.4</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">arm-poky-linux-gnueabi-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mtune=cortex-a9 --sysroot=/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-rpath-link,/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/lib -o TestFun main.o mainwindow.o moc_mainwindow.o -L/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/lib -lQtGuiE -lQtNetworkE -lQtCoreE -lpthread </span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(60,60,60)">{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'TestFun' && test -f TestFun.gdb-index && objcopy --add-section '.gdb_index=TestFun.gdb-index' --set-section-flags '.gdb_index=readonly' 'TestFun' 'TestFun' && rm -f TestFun.gdb-index || true</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">Traceback (most recent call last):</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> File "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py", line 569, in <module></span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> main()</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> File "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py", line 551, in main</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> known_paths = addusersitepackages(known_paths)</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> File "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py", line 278, in addusersitepackages</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> user_site = getusersitepackages()</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> File "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py", line 253, in getusersitepackages</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> user_base = getuserbase() # this will also set USER_BASE</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> File "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py", line 242, in getuserbase</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> from sysconfig import get_config_var</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> File "/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/sysconfig.py", line 10, in <module></span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)"> 'stdlib': '{base}/'+sys.lib+'/python{py_version_short}',</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">AttributeError: 'module' object has no attribute 'lib'</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(190,20,20)">/bin/sh: 1: test: -gt: unexpected operator</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">15:23:38: The process "/usr/bin/make" exited normally.</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(20,20,190)">15:23:38: Elapsed time: 00:04.</span></p></div>