All of lore.kernel.org
 help / color / mirror / Atom feed
* i.MX6 Qt5.3 Cross-Compile
@ 2014-06-02  3:06 Jay Cady
  2014-06-03  8:58 ` Thomas Senyk
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Cady @ 2014-06-02  3:06 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 4261 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4754 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i.MX6 Qt5.3 Cross-Compile
  2014-06-02  3:06 i.MX6 Qt5.3 Cross-Compile Jay Cady
@ 2014-06-03  8:58 ` Thomas Senyk
  2014-06-05 16:08   ` Jay Cady
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Senyk @ 2014-06-03  8:58 UTC (permalink / raw)
  To: meta-freescale

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i.MX6 Qt5.3 Cross-Compile
  2014-06-03  8:58 ` Thomas Senyk
@ 2014-06-05 16:08   ` Jay Cady
  0 siblings, 0 replies; 3+ messages in thread
From: Jay Cady @ 2014-06-05 16:08 UTC (permalink / raw)
  To: Thomas Senyk; +Cc: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 5181 bytes --]

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@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
>
>

[-- Attachment #2: Type: text/html, Size: 6173 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-05 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02  3:06 i.MX6 Qt5.3 Cross-Compile Jay Cady
2014-06-03  8:58 ` Thomas Senyk
2014-06-05 16:08   ` Jay Cady

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.