Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unable to cross-compile using Qtcreator
I am trying to use poky cross-compiler in qtcreator to cross-compile application for Rensas Board.
i added :
qmake path is /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/qt5/qmake
compiler path is /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
when i build my application i get
Again i manually did source /opt/poky/1.6.1/environment-setup-cortexa15hf-vfp-neon-poky-linux-gnueabi
then i ran qtcreator.sh
keeping all the settings same for qmake and compiler.
this time i got
QT version invalid , run make install.
Kindly provide some solution.
@Sumit You should set g++ not gcc as compiler
@jsulm with g++ also i am facing the same problem.
@Sumit "QT version invalid , run make install" - did you install Qt?
@jsulm Yes i had installed that , please see the below log:
administrator@administrator-OptiPlex-990:~$ sudo apt-get install qt5-default
[sudo] password for administrator:
Reading package lists... Done
Building dependency tree
Reading state information... Done
qt5-default is already the newest version.
The following packages were automatically installed and are no longer required:
libbonobo2-0 libbonobo2-common libgconf2-4 libgnome2-0 libgnome2-bin
libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
For building qt in Yocto Project i did :
is it something related to that.
As i read, meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?
@Sumit "meta-toolchain-qt installs qt4.8. And the qmake which i am linking is from qt5 is that causing a problem?" - yes it is. You need to use qmake from the Qt version you want to use and this Qt version must be installed (not only qmake).
@jsulm Thanks i will get back to you on this, once done.
@jsulm i got stuck while doing bitbake meta-tolchain-qt5.
No such file or directory
Error 2: oe-runmake failed.
For error 1:
I found a patch which avoids this error by installing a qmake under mkspecs folder.
But did not install linux-oe-g++ related files under mkspecs which will be further required by the Qtcreator to perform qmake and cross-sompile the application.
If I use the above patch which avoids the Error 1, but Error 2 still persist(Somewhere it explains qmake version mismatch). There are some patch available to solve Error 2 .
I am confused wether to skip the linux-oe-g++(which i think should not be) or install.
@jsulm it was the problem of qt version. I solved it by using bitbake meta-toolchain-qt5. Is there any way to have a SDK both with qt and opencv?
@Sumit I don't know. Who is providing the SDK?
@jsulm I will again rephrase my question. After bitbake meta-toolchain-qt5 i have a sdk which compiles qt files. Now if i add opencv libraries onto my image. I would need a sdk to compile opencv codes. So is there anyway to built same sdk both for qt and opencv. Or i have to use seperate sdk for opencv.
@Sumit Should be possible, but I never used Bitbake