Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 5 from Git, some important modules are not installed
Forum Updated to NodeBB v4.3 + New Features

Building Qt 5 from Git, some important modules are not installed

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 3 Posters 7.7k 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.
  • EddyE Offline
    EddyE Offline
    Eddy
    wrote on last edited by
    #5

    Hint: did you use foreach ?

    Qt Certified Specialist
    www.edalsolutions.be

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maatong
      wrote on last edited by
      #6

      [quote author="SGaist" date="1398459868"]Hi,

      Maybe a silly question but are you sure you have not only built qtbase ?[/quote]

      My building process is following this website:
      http://www.udoo.org/ProjectsAndTutorials/how-to-build-qt5-for-udoo/?portfolioID=1394
      from step 1 to step 8.
      I'm a beginner of Qt, actually I don't know whether I built it completely. Sorry.
      In the folder that I ran make command, there are also gnuwin32 qt3d and other folders.
      Did I make in the right path?

      https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maatong
        wrote on last edited by
        #7

        [quote author="Eddy" date="1398460333"]Hint: did you use foreach ?[/quote]

        I think I didn't.

        https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maatong
          wrote on last edited by
          #8

          I think maybe it's the problem of configure.
          I use "no large files" in my configure, does this cause the qmake to give up the multimedia and some other modules?

          https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

          1 Reply Last reply
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #9

            Hi,

            The problem with tutorials like that is they have a specific goal. If you want something more you need to do more.
            Since Qt5 the sources are modularised. So you will need to build every module you want.

            Modules can be added one by one or by using a foreach.

            to get an idea what module you could add. have a look in the qtbase folder. Every subfolder there is a possible candidate.

            first mount your root filesystem. Here is how I did it for the Raspberry Pi

            @
            $ sudo mount -o loop,offset=62914560 2014-01-07-wheezy-raspbian.img /mnt/rasp-pi-rootfs
            $ cd ~/opt/qt5/qtbase/

            //here i add qtmultimedia and qtquickcontrols
            for module in qtmultimedia qtquickcontrols ; do cd ../$module && /usr/local/qt5pi/bin/qmake . && make -j4 && sudo make install; done

            $ cd ~/opt
            $ sync && sudo umount /mnt/rasp-pi-rootfs
            @

            on a side note : in t he tutorial you follow there is a remark how to clean up before adding modules. please be sure you follow this directive.

            Hope it helps

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply
            0
            • M Offline
              M Offline
              maatong
              wrote on last edited by
              #10

              [quote author="Eddy" date="1398493914"]Hi,

              The problem with tutorials like that is they have a specific goal. If you want something more you need to do more.
              Since Qt5 the sources are modularised. So you will need to build every module you want.

              Modules can be added one by one or by using a foreach.

              to get an idea what module you could add. have a look in the qtbase folder. Every subfolder there is a possible candidate.

              first mount your root filesystem. Here is how I did it for the Raspberry Pi

              @
              $ sudo mount -o loop,offset=62914560 2014-01-07-wheezy-raspbian.img /mnt/rasp-pi-rootfs
              $ cd ~/opt/qt5/qtbase/

              //here i add qtmultimedia and qtquickcontrols
              for module in qtmultimedia qtquickcontrols ; do cd ../$module && /usr/local/qt5pi/bin/qmake . && make -j4 && sudo make install; done

              $ cd ~/opt
              $ sync && sudo umount /mnt/rasp-pi-rootfs
              @

              on a side note : in t he tutorial you follow there is a remark how to clean up before adding modules. please be sure you follow this directive.

              Hope it helps
              [/quote]

              Thank you very much for your help, I'm trying it now.

              https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #11

                Good luck.
                please let us know your findings and feel free to ask. ;-)

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  maatong
                  wrote on last edited by
                  #12

                  [quote author="Eddy" date="1398494817"]Good luck.
                  please let us know your findings and feel free to ask. ;-)[/quote]

                  Hi Eddy:
                  I've installed the qtmultimedia module according the website for raspberry pi.
                  After I ran make -j4 && sudo make install command, I copied the files in ../qtmultimedia/mkspecs/modules && modules-inst to ../qtbase/mkspec/modules && modules-inst.
                  And then I tried to run qmake for the program which includes multimedia module, it worked.
                  But when I tried to run this program on my board, there's a notice reads that: using null output device none available.
                  So did I install the module in a wrong way?

                  https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

                  1 Reply Last reply
                  0
                  • EddyE Offline
                    EddyE Offline
                    Eddy
                    wrote on last edited by
                    #13

                    Did you mount your device?

                    Qt Certified Specialist
                    www.edalsolutions.be

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      maatong
                      wrote on last edited by
                      #14

                      [quote author="Eddy" date="1398927913"]Did you mount your device?[/quote]

                      You mean the audio device or the SD card which includes the file system of the target board?

                      About the audio device, there's a audio output on the board, but I think my program just can't find it.
                      When I tried to make the qtmultimedia module, the check list return this kind of information:

                      Checking for openal... no
                      Checking for alsa... no
                      Checking for pulseaudio... no
                      Checking for gstreamer... no
                      Checking for resourcepolicy... no
                      Checking for gpu_vivante... yes

                      So is it possible that even I successfully installed the module, I can't make QMediaPlayer work because there's no output option it can find?

                      And about the SD card, I didn't mount it on when I ran make && make install. I usually install the system on the PC and copy it to the target board.

                      Thanks.

                      https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

                      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