How to install and build Qt5.7-everywhere for beaglebone black- OS debian?
-
hi every body, i am Vu and i have issue when i building the cross-toolchain for beaglebone black from ubuntu,. The First, i was downloaded qt-everywhere-opensource-src-5.7.0 and qt-opensource-linux-x64-5.7.0. i want a program about Qmodbus run in Beagglebone black( using OS debian) but i don't know how to install and configure qt-everywhere-opensource-src-5.7.0 on ubuntu and use that is a cross-toochains for debian, i really need a tutorial about it, Can i could on your help? please
The second, i was used to qt-everywhere-opensource-src-4.8.6 and success when run the program in beaglebone run OS Debian , but it's not works when i include QModbusTcpClient. I encounted "Project MESSAGE: Warning: unknown QT: serialbus", i think it can't fix because QT4.8.6 don't support Qmodbus, do i say right? if i wrong, please show me the how to fix it! sorry for my spell, i am Vietnamese! thanks for read! -
@Dang-Vu said in How to install and build Qt5.7-everywhere for beaglebone black- OS debian?:
Project MESSAGE: Warning: unknown QT: serialbus", i think it can't fix because QT4.8.6 don't support Qmodbus, do i say right?
Yes, Qt 4.x does not include serialbus module, you need >5.7 for that.
About beaglebone - either look for cross compilation tutorials, or compile Qt directly on the board (via ssh for example).
-
@sierdzio thanks, Sir. i have a problem when i configure the qt-everywhere-5.7. In a 4.8.6 i configure following: ```
//your code here./configure -v -opensource -confirm-license -prefix /opt/qt-arm -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-am335x-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-ssse3 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -little-endian -host-big-endian -no-pch -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-webkit -no-qt3support -nomake examples -nomake demos -nomake docs -nomake translations
but i don't know it would be like in a qt-5.7, can you help me write it? My beagllebone black is memory 2GB, it mean i don't have enought memory to install qt( apt-get install qtcreator) and pardon me, i don't know how to install using the memory of flash SD card extend. i am student and i learning embebded by self, no teacher and no one can help at that place. Thanks Sir, i hope receive your reply early!
-
@Dang-Vu said in How to install and build Qt5.7-everywhere for beaglebone black- OS debian?:
but i don't know it would be like in a qt-5.7, can you help me write it?
It's been a while since I compiled Qt myself, and it was always a native compilation, even on embedded boards (2 days on raspberry Pi :D), so I can't help much here.
What I do know is that you can definitely take a look at Qt5 build instructions. Also, some tailored info for BBB is here.
You can definitely drop -nomake demos, -nomake wekbitm -no-qt3support flags because they are not available anymore in Qt 5. Also, no need to pass -no-sse and other similar flags - Qt will automatically detect which instruction sets are available on target device.
And to skip modules, you can simply remove their subfolders from Qt dir - works the same as adding -nomake flags.
-
Don't know if it can help but some times ago I wrote some posts in my blog about Qt and BeagleBone:
-
thanks everybody, past 2 day, i was to know configure,....i configure below:
./configure -v -opensource -confirm-license -prefix /usr/local/qt-5.2 -no-largefile -no-accessibility -qt-zlib -no-gif -qt-libpng -qt-libjpeg -no-nis -nomake tests -nomake examples -no-opengl -no-cups -xplatform linux-linaro-gnueabihf-g++ -device linux-beagleboard-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf-
but i have issue before 2 hour building time
cd virtualkeyboard/ && ( test -e Makefile || /home/ngocvu/QT/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qmake /home/ngocvu/QT/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src/virtualkeyboard/virtualkeyboard.pro -qtconf /home/ngocvu/QT/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile Project MESSAGE: Hunspell not found! Spell correction will not be available. Project ERROR: Unknown module(s) in QT: quick make[2]: *** [sub-virtualkeyboard-make_first] Error 3
And i don't know....what problem in here! waiting for your help!
-
First, you are building Qt 5.7, but set prefix to /usr/local/qt-5.2. Not an error, but looks a bit dubious. Please make sure there are no artifacts from previous installation there.
Unknown module(s) in QT: quick
Have you removed QtQuick module directory from your Qt sources? Or maybe it has not been compiled due to missing dependencies? Please check configure output.Also - the virtualkeyboard compilation failed. Do you need it? Perhaps you could skip compilation of that module?
-
thanks Sir, my mistake! but it's only a number. About this problem above, i fix it by " sudo pat-get install qtdeclarative5-dev" , i build and make success, no error but i "make install" then:
cd virtualkeyboard/ && ( test -e Makefile || /home/ngocvu/QT/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qmake /home/ngocvu/QT/qt-everywhere-opensource-src-5.7.0/qtvirtualkeyboard/src/virtualkeyboard/virtualkeyboard.pro -qtconf /home/ngocvu/QT/qt-everywhere-opensource-src-5.7.0/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install Project MESSAGE: Hunspell not found! Spell correction will not be available. Project ERROR: Unknown module(s) in QT: quick
how to skip module vituarlkeyboard? -no-vituarlkeyboard? and what is error was i encountering?
-
@Dang-Vu said in How to install and build Qt5.7-everywhere for beaglebone black- OS debian?:
sudo pat-get install qtdeclarative5-dev
This installed qtquick from your distribution. It is not installed in your own Qt build! You need to build qtquick if you need it.
-
@Dang-Vu said in How to install and build Qt5.7-everywhere for beaglebone black- OS debian?:
@jsulm may be i don't need qtquick, then how i can skip qtquick in configure? how can i do that? Thanks
Remove "qtdeclarative" folder from your Qt source dir.