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

Jay Cady jcady92 at gmail.com
Thu Jun 5 09:08:24 PDT 2014


Hey Thomas,

I'm not sure I know what you mean by installing Qt5 in my sysroot.  I
bitbake the meta-toolchain and then run the installation script it
generates, is that what you mean?

Jay


On Tue, Jun 3, 2014 at 1:58 AM, Thomas Senyk <thomas.senyk at pelagicore.com>
wrote:

> On Sunday, 01 June, 2014 20:06:41 Jay Cady wrote:
> > 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_met
> > atype_idEv[_ZN11QMetaTypeIdI5QListI4QUrlEE14qt_metatype_idEv]+0x130):
> > undefined reference to `QMetaType::hasRegisteredConverterFunction(int,
> > int)'
> >
> moc_qplatformdialoghelper.cpp:(.text._ZN11QMetaTypeIdI5QListI4QUrlEE14qt_me
> > tatype_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._ZN9QtPrivate16ConverterFunctorI5QListI
> >
> 4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterabl
> >
> eConvertFunctorIS3_EEED2Ev[_ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17Q
> >
> tMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertFu
> > nctorIS3_EEED5Ev]+0x48): undefined reference to
> > `QMetaType::unregisterConverterFunction(int, int)'
> >
> moc_qplatformdialoghelper.cpp:(.text._ZN9QtPrivate16ConverterFunctorI5QList
> >
> I4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterab
> >
> leConvertFunctorIS3_EEED2Ev[_ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17
> >
> QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertF
> > unctorIS3_EEED5Ev]+0x15c): undefined reference to
> > `QMetaType::hasRegisteredConverterFunction(int, int)'
> >
> moc_qplatformdialoghelper.cpp:(.text._ZN9QtPrivate16ConverterFunctorI5QList
> >
> I4QUrlEN17QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterab
> >
> leConvertFunctorIS3_EEED2Ev[_ZN9QtPrivate16ConverterFunctorI5QListI4QUrlEN17
> >
> QtMetaTypePrivate23QSequentialIterableImplENS4_33QSequentialIterableConvertF
> > unctorIS3_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?
>
> Have you installed Qt5 in your sysroot?
> If so consider deleting/moving it and doing a clean build to see if it's
> any
> better.
>
> >
> > Thanks,
> > Jay
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140605/9d43b7b4/attachment.html>


More information about the meta-freescale mailing list