Unsolved Regarding porting for an embedded device
-
As suggested by @tomasz3dk i am trying with yocto....
i have the tool chain, sysroot, debugger,compiler for qt 5.6.2 in that iMX-6 board. but when i try to build the sample example for qt and qml i get the following errors, can anyone please suggest me the possible solution, what i have to do further to make it work.error for qt example :
g++ -o QtExample main.o exqamplewidget.o moc_exqamplewidget.o -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lGLESv2
collect2: error: ld returned 1 exit status
make: *** [QtExample] Error 1
12:47:06: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project QtExample (kit: iMX-6)
The kit iMX-6 has configuration issues which might be the root cause for this problem.
When executing step "Make"
12:47:06: Elapsed time: 00:00.
for qml example :
g++ -o QmlExample main.o qrc_qml.o -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread/usr/bin/ld: cannot find -lQt5Quick
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: cannot find -lQt5Qml
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lGLESv2
collect2: error: ld returned 1 exit status
make: *** [QmlExample] Error 1
12:48:55: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project QmlExample (kit: iMX-6)
The kit iMX-6 has configuration issues which might be the root cause for this problem.
When executing step "Make"
12:48:55: Elapsed time: 00:02.
Thanks
-
@Naveen_D As the error message says you should check your iMX-6 kit. It looks like it is broken: all the needed libraries are missing. Please check your Kit: is the correct compiler set? Is the correct Qt version set? Are there any warning/errors in the Kit?
g++, /usr/bin/ld and /usr/bin/make look like tools from your host PC not for your device. -
@jsulm oh okay sir, will check with the kit.
do i need to connect the board before building the project...? -
@Naveen_D If you have the sysroot on your host PC then no need to connect the device
-
@Naveen_D It seems that you didn't set your iMX-6 kit properly. Look here. Btw you do not need connect your device to your computer, when you only crosscompile program for your device. It is necessary when you deploy program to device (by clicking "run" in qtcreator, of course before this you should set proper device for this kit).
-
@tomasz3dk Ok sir.. thanks i will recheck the kit.
-
Hi, now i am able to run qt example on the board.
I have developed one qml example and trying to port it for this device. the example builds without errors, but when i try to execute this in the boar it gives me the following error :root@imx6dlsabreauto:~# ./CarInfotainment_27March -qws
QQmlApplicationEngine failed to load component
qrc:/main.qml:2 module "QtQuick" version 2.7 is not installedwhat is the possible solution for this? Thanks
-
@Naveen_D You mentioned in previous post, that you have Qt 5.6.2 version on board. In this Qt version QtQuick module was in 2.5 version, so you must change all appearances of
import QtQuick 2.7
to
import QtQuick 2.5
If you will have same problems with other modules you should also take lower module version.
-
@tomasz3dk Ok thanks..
-
@Naveen_D
I have had good success with Julius on my Ubuntu Desktop, Raspberry Pi 2 & 3 and embedded Up Board. (intel cpu). Also installed flite (TTS) with several naturally sounding voices. It is for a long range project.My code and notes are at:
https://bitbucket.org/andyinyakima/Look at: boswasi and bos-jt for starters.
I use Qt for most of my work. My code ain't pretty but does the trick for me.
My first code was assembly on Commodore 64.I saw where Qt 5.9 was released so came to forum looking for QtSpeech updates.
Tried Sphinx but couldn't capture well enough, Julius is working good for me.
Kaldi is too big I believe.Tried "hello_speak" example on Qt 5.8 on Ubuntu. Get a "can't locate plug_in" error.
Does this example work on Linux machines? I am using pulseaudio.Anyhow, will check back to see if any more speech developments being made on Qt.
Thank you,
andyinyakima