Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to install and build Qt5.7-everywhere for beaglebone black- OS debian?
Forum Updated to NodeBB v4.3 + New Features

How to install and build Qt5.7-everywhere for beaglebone black- OS debian?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 4 Posters 9.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dang Vu

    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!

    sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    @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).

    (Z(:^

    D 1 Reply Last reply
    0
    • sierdzioS sierdzio

      @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).

      D Offline
      D Offline
      Dang Vu
      wrote on last edited by
      #3

      @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!

      sierdzioS 1 Reply Last reply
      0
      • D Dang Vu

        @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!

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by sierdzio
        #4

        @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.

        (Z(:^

        1 Reply Last reply
        0
        • L Offline
          L Offline
          luca
          wrote on last edited by
          #5

          Don't know if it can help but some times ago I wrote some posts in my blog about Qt and BeagleBone:

          blog.ventisei.eu

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dang Vu
            wrote on last edited by
            #6

            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!

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #7

              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?

              (Z(:^

              1 Reply Last reply
              1
              • D Offline
                D Offline
                Dang Vu
                wrote on last edited by
                #8

                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?

                jsulmJ 1 Reply Last reply
                0
                • D Dang Vu

                  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?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  @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.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  D 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @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.

                    D Offline
                    D Offline
                    Dang Vu
                    wrote on last edited by
                    #10

                    @jsulm may be i don't need qtquick, then how i can skip qtquick in configure? how can i do that? Thanks

                    sierdzioS jsulmJ 2 Replies Last reply
                    0
                    • D Dang Vu

                      @jsulm may be i don't need qtquick, then how i can skip qtquick in configure? how can i do that? Thanks

                      sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #11

                      @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.

                      (Z(:^

                      1 Reply Last reply
                      0
                      • D Dang Vu

                        @jsulm may be i don't need qtquick, then how i can skip qtquick in configure? how can i do that? Thanks

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        @Dang-Vu Try to pass "-skip qtdeclarative" parameter to configure

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved