[meta-freescale] i.MX6 Qt5.3 Cross-Compile

Jay Cady jcady92 at gmail.com
Sun Jun 1 20:06:41 PDT 2014


Hey,

Has anyone successfully cross-compiled Qt5.3 for the i.MX6?  I'm using a
Wandboard Dual and following this
<http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard>
tutorial
to do the cross-compile.  Unfortunately, whenever I run the make command
after configuring Qt5.3, it results in this error (just then end):


moc_qplatformdialoghelper.cpp:(.text+0x8dc): undefined reference to
`QMetaType::hasRegisteredConverterFunction(int, int)'
moc_qplatformdialoghelper.cpp:(.text+0x910): undefined reference to
`QMetaType::registerConverterFunction(QtPrivate::AbstractConverterFunction
const*, int, int)'
.obj/moc_qplatformdialoghelper.o: In function `QMetaTypeId<QList<QUrl>
>::qt_metatype_id()':
moc_qplatformdialoghelper.cpp:(.text._ZN11QMetaTypeIdI5QListI4QUrlEE14qt_metatype_idEv[_ZN11QMetaTypeIdI5QListI4QUrlEE14qt_metatype_idEv]+0x130):
undefined reference to `QMetaType::hasRegisteredConverterFunction(int, int)'
moc_qplatformdialoghelper.cpp:(.text._ZN11QMetaTypeIdI5QListI4QUrlEE14qt_metatype_idEv[_ZN11QMetaTypeIdI5QListI4QUrlEE14qt_metatype_idEv]+0x164):
undefined reference to
`QMetaType::registerConverterFunction(QtPrivate::AbstractConverterFunction
const*, int, int)'
.obj/moc_qplatformdialoghelper.o: In function
`QtPrivate::ConverterFunctor<QList<QUrl>,
QtMetaTypePrivate::QSequentialIterableImpl,
QtMetaTypePrivate::QSequentialIterableConvertFunctor<QList<QUrl> >
>::~ConverterFunctor()':
moc_qplatformdialoghelper.cpp:(.text._ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFunctorIS3_EEED2Ev[_ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFunctorIS3_EEED5Ev]+0x48):
undefined reference to `QMetaType::unregisterConverterFunction(int, int)'
moc_qplatformdialoghelper.cpp:(.text._ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFunctorIS3_EEED2Ev[_ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFunctorIS3_EEED5Ev]+0x15c):
undefined reference to `QMetaType::hasRegisteredConverterFunction(int, int)'
moc_qplatformdialoghelper.cpp:(.text._ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFunctorIS3_EEED2Ev[_ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFunctorIS3_EEED5Ev]+0x190):
undefined reference to
`QMetaType::registerConverterFunction(QtPrivate::AbstractConverterFunction
const*, int, int)'
collect2: error: ld returned 1 exit status
make[3]: *** [../../lib/libQt5Gui.so.5.3.0] Error 1
make[3]: Leaving directory
`/home/jay/Downloads/qt-everywhere-opensource-src-5.3.0/qtbase/src/gui'
make[2]: *** [sub-gui-make_first] Error 2
make[2]: Leaving directory
`/home/jay/Downloads/qt-everywhere-opensource-src-5.3.0/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory
`/home/jay/Downloads/qt-everywhere-opensource-src-5.3.0/qtbase'
make: *** [module-qtbase-make_first] Error 2

I see that others have had this same error with qt5.3.

These are my build config options:

./configure -v -opensource -confirm-license -device imx6 -device-option
CROSS_COMPILE=/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
-sysroot /home/jay/dora-yocto/build/tmp/sysroots/wandboard-dual -prefix
~/qt5arm -platform linux-g++ -shared -no-pch -no-rpath -pkg-config
-no-accessibility -no-dbus -no-icu -no-directfb -evdev -no-fontconfig
-no-opengl -opengl es2 -eglfs -no-glib -no-gtkstyle -no-iconv
-system-libjpeg -no-kms -system-libpng -no-linuxfb -no-mitshm -no-nis
-openssl -qt-pcre -release -no-sm -no-sql-db2 -no-sql-ibase -no-sql-mysql
-no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2
-no-sql-tds -nomake tests -tslib -libudev -widgets -no-xcb -no-xcursor
-no-xfixes -no-xinerama -no-xinput -no-xinput2 -no-xkb -no-xrandr
-no-xrender -no-xshape -no-xsync -no-xvideo -system-zlib

Any ideas what's going on?

Thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140601/50be66c2/attachment.html>


More information about the meta-freescale mailing list