Cross compile Qt5 for QtCreator -Problem

916 views
Skip to first unread message

Nilesh Kokane

unread,
Jul 24, 2014, 7:28:15 AM7/24/14
to wand...@googlegroups.com


Hello,

i followed http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard#Cross_compile_Qt5_for_QtCreator and

1)I've downloaded the QtCreator from http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz.mirrorlist

2)/home
 export PATH=$PATH:/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi


3)/qt-everywhere-opensource-src-5.1.1

 ./configure -v -opensource -confirm-license -device imx6 -device-option CROSS_COMPILE=/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /home/bin/fsl-community-bsp/build/tmp/sysroots/wandboard-solo -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



it popped with ld errors and

/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ --sysroot=/home/bin/fsl-community-bsp/build/tmp/sysroots/wandboard-solo -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find crti.o: No such file or directory
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find crtbeginS.o: No such file or directory
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find -lstdc++
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find -lm
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find -lgcc_s
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find -lc
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find -lgcc_s
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find crtendS.o: No such file or directory
/opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.2/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
Symbolic function binding disabled.

This is the Qt Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.

You have already accepted the terms of the  license.

Creating qmake...
make: Nothing to be done for `first'.
Running configuration tests...
Error: PKG_CONFIG_LIBDIR has not been set. This could mean
the host's .pc files will be used (even if you set PKG_CONFIG_PATH).
Set this variable to the directory that contains target .pc files
for pkg-config to function correctly when cross-compiling or
use -force-pkg-config to override this test.



please suggest



Thanks
Nilesh Kokane









“The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.”

Alfonso Tamés

unread,
Jul 25, 2014, 2:42:18 AM7/25/14
to
Nilesh,

The qt5 wiki guide is outdated. Right now the best way to cross compile with Qt5 is to bitbake the meta-toolchain-qt5 recipe and then run the installer located in <yocto home>/build/tmp/deploy/sdk

Point your Qtcreator to the x86 qmake inside /opt/poky/.....

I'll try to update the wiki this weekend.

Regards,

Alfonso

Nilesh Kokane

unread,
Jul 25, 2014, 5:25:27 AM7/25/14
to wand...@googlegroups.com
Hello  Alfonso ,

Thanks for your valuable reply first of all.

Can you please provide the URL for the above process.Or if u can elobrate the steps for me.


Sorry for that i'm just a beginner.




Thanks
Nilesh Kokane




On Fri, Jul 25, 2014 at 12:12 PM, Alfonso Tamés <alfons...@gmail.com> wrote:
Nilesh,

The qt5 wiki guide is outdated. Right now the best way to cross compile with Qt5 is to bitbake the meta-toolchain-qt5 image and then run the installer located in <yocto home>/build/tmp/deploy/sdk

Point your Qtcreator to the x86 qmake inside /opt/poky/.....

I'll try to update the wiki this weekend.

Regards,

Alfonso


On Thursday, July 24, 2014 6:28:15 AM UTC-5, Nilesh Kokane wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "Wandboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wandboard/emy97OTiSfI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wandboard+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks

Lucas Rocha

unread,
Nov 4, 2014, 6:00:40 AM11/4/14
to wand...@googlegroups.com
HI , i already follow all the steps and i could compile and run some aplications in my wandboard quad , but now when i try to use some features like  QtQuick.Controls 1.2,QtQuick.Controls.Private 1.0, QtQuick.Controls.Styles 1.1 in the QML i[m getting a error.
i donr know if the recepts i use to get the sdk need to be changed or th problem is in the Yocto i generate to my wandboard , i use the core-image-minimal and meta-toolchain-qt5 to the sdk .

Does enybody knows where could be the problem  ? and how to solve it ?

Thanks

Lucas

Otavio Salvador

unread,
Nov 4, 2014, 6:24:12 AM11/4/14
to Wandboard Discussion Group
On Tue, Nov 4, 2014 at 9:00 AM, Lucas Rocha <lucas...@easy-br.com> wrote:
> HI , i already follow all the steps and i could compile and run some
> aplications in my wandboard quad , but now when i try to use some features
> like QtQuick.Controls 1.2,QtQuick.Controls.Private 1.0,
> QtQuick.Controls.Styles 1.1 in the QML i[m getting a error.
> i donr know if the recepts i use to get the sdk need to be changed or th
> problem is in the Yocto i generate to my wandboard , i use the
> core-image-minimal and meta-toolchain-qt5 to the sdk .
>
> Does enybody knows where could be the problem ? and how to solve it ?

I've been working on the SDK improvements for last weeks and finished
the known fixes last Friday. It now works with QMake, CMake and ought
to work fine for QtCreator.

Dizzy and master branches has the fixes.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

Lucas Rocha

unread,
Nov 4, 2014, 7:01:28 AM11/4/14
to wand...@googlegroups.com, ota...@ossystems.com.br
Bom dia Otavio , i,m from Santa Rita do Sapucai Mg ,and  sorry but  this is my first try in the embedded world , and to be able to copile all the QML aplications in my wnadboard i need to rebuild the SDK or the Yocto that i use?

And if can you please give me a step by step for the changes i need to do i will very glad.

Thanks

Lucas

Otavio Salvador

unread,
Nov 4, 2014, 7:05:49 AM11/4/14
to Wandboard Discussion Group
On Tue, Nov 4, 2014 at 10:01 AM, Lucas Rocha <lucas...@easy-br.com> wrote:
> Bom dia Otavio , i,m from Santa Rita do Sapucai Mg ,and sorry but this is
> my first try in the embedded world , and to be able to copile all the QML
> aplications in my wnadboard i need to rebuild the SDK or the Yocto that i
> use?
>
> And if can you please give me a step by step for the changes i need to do i
> will very glad.

Bom dia :-) I'm typing from Pelotas, RS - Brazil ...

Could you clarify your desire / needs? it is very confusing for your
e-mail what you really need.

Lucas Rocha

unread,
Nov 4, 2014, 7:38:49 AM11/4/14
to wand...@googlegroups.com, ota...@ossystems.com.br
Actually i need to compile some QT aplications that use QML whit some features
like  QtQuick.Controls 1.2,QtQuick.Controls.Private 1.0, QtQuick.Controls.Styles 1.1 and whit the SDK i had generate i[m gettting a red line under this Includes and the aplicatin do not compile , i have a error message taht says the qtcreator could not find this modules in the path opt/poky/1.6.1/ ....  qt5/qml

Do you know if i need to rebult somenthing in order to get this working or i just need to add some importation path to help qt find the modules ?

thanks

Lucas

Otavio Salvador

unread,
Nov 4, 2014, 7:44:41 AM11/4/14
to Wandboard Discussion Group
On Tue, Nov 4, 2014 at 10:38 AM, Lucas Rocha <lucas...@easy-br.com> wrote:
> Actually i need to compile some QT aplications that use QML whit some
> features
> like QtQuick.Controls 1.2,QtQuick.Controls.Private 1.0,
> QtQuick.Controls.Styles 1.1

This is easy; if you check our 'qsiv' recipe in meta-qt5 you should be
able to get it.

> and whit the SDK i had generate i[m gettting a
> red line under this Includes and the aplicatin do not compile , i have a
> error message taht says the qtcreator could not find this modules in the
> path opt/poky/1.6.1/ .... qt5/qml
>
> Do you know if i need to rebult somenthing in order to get this working or i
> just need to add some importation path to help qt find the modules ?

QtCreator has some corner cases in the integration. We are still
working on it on our free time as no customer has demanded it yet.

We are also preparing a blog post on how to get it working but ddn't
finished it yet.

Lucas Rocha

unread,
Nov 4, 2014, 7:56:11 AM11/4/14
to wand...@googlegroups.com, ota...@ossystems.com.br

I need to add this in the local.conf file? or how i do it  ?

Lucas

Lucas Rocha

unread,
Nov 4, 2014, 11:01:10 AM11/4/14
to wand...@googlegroups.com, ota...@ossystems.com.br

Ive try to use this local.conf file but im getting erros in the bitbake core image-minimal/


BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
MACHINE ??= 'wandboard-quad'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K"
PACKAGECONFIG_pn-qemu-native = "sdl"
PACKAGECONFIG_pn-nativesdk-qemu = "sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"

BB_NUMBER_THREADS = '8'
PARALLEL_MAKE = '-j 8'

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = ""


CORE_IMAGE_EXTRA_INSTALL += "dbus \
kernel-modules \
packagegroup-qt5-qtcreator-debug \
qtserialport \
qtbase-plugins \
qtbase-fonts \
qtbase-examples \
cinematicexperience \
qt5nmapcarousedemo \
qtsmarthome \
quitbattery \
qtwebkit-mkspecs \
qtwebkit-dev \
qtwebkit-qmlplugins \
"

DISTRO_FEATURES_remove = "x11 wayland"
PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "
IMAGE_INSTALL_append = " \
    firmware-imx-vpu-imx6q \
    firmware-imx-vpu-imx6d \
"

IMAGE_INSTALL_append = " \
    packagegroup-core-standalone-sdk-target \
           libsqlite3-dev \
        qt3d-dev \
        qt3d-mkspecs \
       qt3d-qmlplugins \
        qtbase-dev \
       qtbase-fonts \
        qtbase-mkspecs \
        qtbase-plugins \
        qtbase-staticdev \
        qtconnectivity-dev \
        qtconnectivity-mkspecs \
        qtconnectivity-qmlplugins \
     qtdeclarative-dev \
    qtdeclarative-mkspecs \
    qtdeclarative-plugins \
    qtdeclarative-qmlplugins \
    qtdeclarative-staticdev \
    qtgraphicaleffects-qmlplugins \
    qtimageformats-dev \
    qtimageformats-plugins \
     qtlocation-dev \
    qtlocation-mkspecs \
    qtlocation-plugins \
    qtlocation-qmlplugins \
    qtquick1-dev \
    qtquick1-mkspecs \
    qtquick1-plugins \
    qtquick1-qmlplugins \
    qtquickcontrols-qmlplugins \
    qtscript-dev \
    qtscript-mkspecs \
     qtsensors-dev \
    qtsensors-mkspecs \
    qtsensors-plugins \
    qtsensors-qmlplugins \
    qtserialport-dev \
    qtserialport-mkspecs \
     qtsvg-dev \
    qtsvg-mkspecs \
    qtsvg-plugins \
    qtsystems-dev \
    qtsystems-mkspecs \
    qtsystems-qmlplugins \
     qtxmlpatterns-dev \
    qtxmlpatterns-mkspecs \
    "
 
QT5_VERSION = "5.2.1+5.3.0-beta1+git%"
PREFERRED_VERSION_qtbase-native = "${QT5_VERSION}"
PREFERRED_VERSION_qtbase = "${QT5_VERSION}"
PREFERRED_VERSION_qtdeclarative = "${QT5_VERSION}"
PREFERRED_VERSION_qtjsbackend = "${QT5_VERSION}"
PREFERRED_VERSION_qtjsbackend-native = "${QT5_VERSION}"
PREFERRED_VERSION_qtgraphicaleffects = "${QT5_VERSION}"
PREFERRED_VERSION_qtimageformats = "${QT5_VERSION}"
PREFERRED_VERSION_qtmultimedia = "${QT5_VERSION}"
PREFERRED_VERSION_qtquick1 = "${QT5_VERSION}"
PREFERRED_VERSION_qtquickcontrols = "${QT5_VERSION}"
PREFERRED_VERSION_qtsensors = "${QT5_VERSION}"
PREFERRED_VERSION_qtserialport = "${QT5_VERSION}"
PREFERRED_VERSION_qtscript = "${QT5_VERSION}"
PREFERRED_VERSION_qtsvg = "${QT5_VERSION}"
PREFERRED_VERSION_qttools-native = "${QT5_VERSION}"
PREFERRED_VERSION_qtwebkit = "${QT5_VERSION}"
PREFERRED_VERSION_qtwebkit-examples = "${QT5_VERSION}"


Can you take a look , or send me one that works ?
Thanks

Lucas
PREFERRED_VERSION_qtxmlpatterns = "${QT5_VERSION}"

Otavio Salvador

unread,
Nov 4, 2014, 11:20:06 AM11/4/14
to Wandboard Discussion Group
On Tue, Nov 4, 2014 at 2:01 PM, Lucas Rocha <lucas...@easy-br.com> wrote:
>
> Ive try to use this local.conf file but im getting erros in the bitbake core
> image-minimal/

I am sorry; I am in the mid of some customer work and I cannot test it
to check what is missing. As I said, check the qsiv recipe.

Lucas Rocha

unread,
Nov 4, 2014, 11:32:05 AM11/4/14
to wand...@googlegroups.com, ota...@ossystems.com.br



Ok Man , thanks anyway , i will keep try here and i let you know if find th solution .

Thanks


Lucas

Lucas Rocha

unread,
Nov 6, 2014, 5:37:33 AM11/6/14
to wand...@googlegroups.com, ota...@ossystems.com.br
Dear all, during the bitbake process am getting an error below

Computing transaction...error: Can't install packagegroup-qt5-toolchain-target-1.0-r0@all: no package provides qtquickcontrols-qmlplugins


ERROR: Task 7 (/home/lucas/opt/labs/ex/fsl-community-bsp/sources/meta-qt5/recipes-qt/meta/meta-toolchain-qt5.bb, do_populate_sdk) failed with exit code '1'


Does anybody knows how to fix it and generate the sdk

Thanks

Lucas prado Rocha
Reply all
Reply to author
Forward
0 new messages