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. cross-complie QT5.8 with multimedia
Forum Updated to NodeBB v4.3 + New Features

cross-complie QT5.8 with multimedia

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 1.7k Views 2 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.
  • L Offline
    L Offline
    Lann
    wrote on 4 Dec 2018, 07:06 last edited by
    #1

    my embedded platform is ARM x64. i cross-compile QT 5.8 with the following comfigure string:

    ./configure -extprefix /opt/QT5.8.0 -release -opensource -xplatform linux-aarch64-gnu-g++ -no-opengl -nomake examples -optimized-qmake -pch -qt-libjpeg -qt-libpng -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -no-separate-debug-info -no-pkg-config -xcb-xlib -qpa xcb

    after that, i use the cross-compile version of kit to debug the code (which is success in desktop kit) in QT Creator . But fail with:
    Project ERROR: Unknown module(s) in QT: multimedia multimediawidgets

    i think the problem is the QT cross-compile doesn't contain multimedia and multidiawidgets components. Then, what should i do.

    Thanks.

    P 1 Reply Last reply 4 Dec 2018, 13:09
    0
    • L Lann
      4 Dec 2018, 07:06

      my embedded platform is ARM x64. i cross-compile QT 5.8 with the following comfigure string:

      ./configure -extprefix /opt/QT5.8.0 -release -opensource -xplatform linux-aarch64-gnu-g++ -no-opengl -nomake examples -optimized-qmake -pch -qt-libjpeg -qt-libpng -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -no-separate-debug-info -no-pkg-config -xcb-xlib -qpa xcb

      after that, i use the cross-compile version of kit to debug the code (which is success in desktop kit) in QT Creator . But fail with:
      Project ERROR: Unknown module(s) in QT: multimedia multimediawidgets

      i think the problem is the QT cross-compile doesn't contain multimedia and multidiawidgets components. Then, what should i do.

      Thanks.

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 4 Dec 2018, 13:09 last edited by
      #2

      @Lann you may want to check step #16 from this guide as it may help you. Essentially you'll be cloning repository https://code.qt.io/cgit/qt/qtmultimedia.git

      BTW, I would like to ask where you get the cross-compiler for aarcg64 (linux-aarch64-gnu-g++) from?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      L 1 Reply Last reply 6 Dec 2018, 09:24
      0
      • L Offline
        L Offline
        Lann
        wrote on 5 Dec 2018, 01:11 last edited by
        #3

        thanks for the guide.

        i get cross-compiler for aarch64 from linaro:
        https://releases.linaro.org/components/toolchain/binaries/5.4-2017.01/aarch64-linux-gnu/

        P 1 Reply Last reply 5 Dec 2018, 11:55
        0
        • L Lann
          5 Dec 2018, 01:11

          thanks for the guide.

          i get cross-compiler for aarch64 from linaro:
          https://releases.linaro.org/components/toolchain/binaries/5.4-2017.01/aarch64-linux-gnu/

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 5 Dec 2018, 11:55 last edited by
          #4

          @Lann thank you for the link.
          Just a couple more things please:

          1. what about sysroot? did you use the provided by linaro?
          2. have you added the Qt framework dependencies as well to your sysroot? If so, how?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Lann
            wrote on 6 Dec 2018, 08:00 last edited by
            #5

            im new on this filed. and what does 'sysroot' mean?

            J P 2 Replies Last reply 6 Dec 2018, 08:25
            0
            • L Lann
              6 Dec 2018, 08:00

              im new on this filed. and what does 'sysroot' mean?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 6 Dec 2018, 08:25 last edited by
              #6

              @Lann Sysroot is a snapshot of the file system of your target device. It is needed because you need libraries and headers from your target device when cross compiling.

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

              1 Reply Last reply
              0
              • P Pablo J. Rogina
                4 Dec 2018, 13:09

                @Lann you may want to check step #16 from this guide as it may help you. Essentially you'll be cloning repository https://code.qt.io/cgit/qt/qtmultimedia.git

                BTW, I would like to ask where you get the cross-compiler for aarcg64 (linux-aarch64-gnu-g++) from?

                L Offline
                L Offline
                Lann
                wrote on 6 Dec 2018, 09:24 last edited by
                #7

                @Pablo-J.-Rogina
                i have already downloaded source code of qtmultimedia from
                https://download.qt.io/archive/qt/5.8/5.8.0/submodules/
                but i have no idea to cross-compile this module. because i find no 'configure' file.
                for cross-compiling QT5.8, i followed this steps:

                • ./configure ...
                • make -j4
                • make install
                  and should i follow this steps to cross-compile qtmultimedia and how?
                P 1 Reply Last reply 6 Dec 2018, 13:34
                0
                • L Lann
                  6 Dec 2018, 08:00

                  im new on this filed. and what does 'sysroot' mean?

                  P Offline
                  P Offline
                  Pablo J. Rogina
                  wrote on 6 Dec 2018, 13:31 last edited by
                  #8

                  @Lann said in cross-complie QT5.8 with multimedia:

                  what does 'sysroot' mean?

                  As stated by @jsulm "sysroot" is the folder/location of the headers/libraries (mostly) that you use during cross-compile, so the resulting component (Qt libraries in this case, or a Qt app later on) can run properly in the target device.

                  So it's strange that you claimed you cross-compiled Qt framework, but you didn't pay attention to sysroot (I'm not telling you off, I'm just curious about that)

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0
                  • L Lann
                    6 Dec 2018, 09:24

                    @Pablo-J.-Rogina
                    i have already downloaded source code of qtmultimedia from
                    https://download.qt.io/archive/qt/5.8/5.8.0/submodules/
                    but i have no idea to cross-compile this module. because i find no 'configure' file.
                    for cross-compiling QT5.8, i followed this steps:

                    • ./configure ...
                    • make -j4
                    • make install
                      and should i follow this steps to cross-compile qtmultimedia and how?
                    P Offline
                    P Offline
                    Pablo J. Rogina
                    wrote on 6 Dec 2018, 13:34 last edited by
                    #9

                    @Lann said in cross-complie QT5.8 with multimedia:

                    i find no 'configure' file.

                    It looks like you didn't look at step #16 as I suggested previously...

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    1 Reply Last reply
                    0

                    5/9

                    6 Dec 2018, 08:00

                    • Login

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