[yocto] Qt creator build error in the first demo try

wuteng wu wutengss at gmail.com
Fri Nov 22 05:48:52 PST 2013


Hi guys,


I try to build my first embedded project in qt creator but failed.


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:

https://community.freescale.com/thread/309578


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.


**************************************************************************************************************

15:23:34: Running steps for project TestFun...

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

15:23:34: The process
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/bin/qmake2" exited
normally.

15:23:34: Starting: "/usr/bin/make"

/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/bin/uic4
../TestFun/mainwindow.ui -o ui_mainwindow.h

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

In file included from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qobject.h:48:0,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qwidget.h:46,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qmainwindow.h:45,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/QMainWindow:1,

from ../TestFun/mainwindow.h:4,

from ../TestFun/main.cpp:1:

/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

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

In file included from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qobject.h:48:0,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qwidget.h:46,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qmainwindow.h:45,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/QMainWindow:1,

from ../TestFun/mainwindow.h:4,

from ../TestFun/mainwindow.cpp:1:

/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

/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

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

In file included from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtCore/qobject.h:48:0,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qwidget.h:46,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/qmainwindow.h:45,

from
/opt/poky/1.4.1/sysroots/cortexa9hf-vfp-poky-linux-gnueabi//usr/include/qtopia/QtGui/QMainWindow:1,

from ../TestFun/mainwindow.h:4,

from moc_mainwindow.cpp:10:

/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

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

{ 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

Traceback (most recent call last):

File
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py",
line 569, in <module>

main()

File
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py",
line 551, in main

known_paths = addusersitepackages(known_paths)

File
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py",
line 278, in addusersitepackages

user_site = getusersitepackages()

File
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py",
line 253, in getusersitepackages

user_base = getuserbase() # this will also set USER_BASE

File
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site.py",
line 242, in getuserbase

from sysconfig import get_config_var

File
"/opt/poky/1.4.1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/sysconfig.py",
line 10, in <module>

'stdlib': '{base}/'+sys.lib+'/python{py_version_short}',

AttributeError: 'module' object has no attribute 'lib'

/bin/sh: 1: test: -gt: unexpected operator

15:23:38: The process "/usr/bin/make" exited normally.

15:23:38: Elapsed time: 00:04.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131122/3df26e13/attachment.html>


More information about the yocto mailing list