How to configure Qt on BBB with linux
-
What if you drop the no-pch option ?
One that you should add is the nomake tests. -
@SGaist
Hi,- after dropping no-make tests, command ./configure was executed but further steps were not running.
I tried to build and run Qtproject on AM625x EVM board by installing AM625x SDK and following steps as per TI_ SDK with making dynamically executable file.
Compiling and running Qt project was successful on AM625x EVM board.
2.But, again when I tried my luck on Beaglebone with same procedure, i.e installation of AM335x SDK and running, with same installed Qt5.7.0, output of command file freshly built qtproject is as follows:
Qtproject: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, with debug_info, not stripped
This command is producing output in AM625x EVM as follows-
Qtproject: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, BuildID[sha1]=0x8569a0956d8efffcfde68fca5c883be5fa4f1c31, not stripped
When running ./Qtproject on beaglebone board,
The error is popping as:
error while loading shared libraries: libQt5Quick.so.5.so: cannot open shared object file: No such file or directoryI came across thread
https://forum.qt.io/topic/58963/error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory
and tried QMAKE_LFLAGS += -Wl,-rpath,"'$$ORIGIN'" in .pro file of Qtproject, but the file is still not being made as dynamically executable with shared libraries.Please guide.
- after dropping no-make tests, command ./configure was executed but further steps were not running.
-
Do you have the Qt libraries deployed on your target ?
If so, where ? -
yes , Qt is installed on target.
root@beaglebone:~$ qmake --version
** QMake version 3.1**
** Using Qt version 5.11.3 in /usr/lib/arm-linux-gnueabihfBut,I am not sure that all libraries are installed.
Still,error is
libQt5QmlModels.so.5 not found, could'nt find any package by glob or regex. -
I have connected LCD display to beaglebone and also tried below commands from link https://elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston#QtQuick_.2B_EGLFS
apt-get install libqt5qml5 qml-module-qtquick-controls qt5-default qtdeclarative5-dev qtquickcontrols5-examples
cd /usr/lib/arm-linux-gnueabihf/qt5/examples/quickcontrols/extras/dashboard
qmake
make
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=none
./dashboardBut getting error
EGLFS:failed to open /dev/fb0
EGLFS:can't continue without display -
Hi,
I installed libraries
sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5and tried to run
cd /usr/lib/arm-linux-gnueabihf/qt5/examples/quickcontrols/extras/dashboard
qmake
make
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=none
./dashboard*Now error is
qt.qpa.screen QXcbconnection:Could not connect to displayXDG_SESSION_TYPE is x11
What could be possible error?
-
Are you doing that on the BBB directly ?
Do you have any graphical interface running ?
Which plugins do you have installed with the package manager ? -
Hi,
I am trying to run "Hello world" made on Qt ,developed on host PC and then copying it to beaglebone using scp command.
The beaglebone is showing directory with executable file of "hello world" but when ./helloworld command is run, the error is shown.I have installed qt5-qtdeclarative5.15 on host PC.
Same error of libqt5qmlmodels.so.5 shared libraries not found.
Do I need to install it on beaglebone also ?If so, please guide with all required plugins,packages and dependencies of Qt supported . -
Since you cross-compiled Qt, you should deploy that one on your board.
If you want to stay with the distribution provided Qt of your target, you need to install all the Qt packages you are using in your application.
-
Hi,
Thanks for all support.
Finally, cross-compilation of beaglebone with Qt done.
But, still ,
next stone in the path is -
https://forum.qt.io/topic/124754/remote-generic-linux-devicePlease guide, what statement to add install in Cmakelists.txt file