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
QtWS25 Last Chance

cross-complie QT5.8 with multimedia

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 1.5k Views
  • 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 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.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • L Lann

      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.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on 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
      0
      • L Offline
        L Offline
        Lann
        wrote on 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/

        Pablo J. RoginaP 1 Reply Last reply
        0
        • L Lann

          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/

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on 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 last edited by
            #5

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

            jsulmJ Pablo J. RoginaP 2 Replies Last reply
            0
            • L Lann

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              • Pablo J. RoginaP Pablo J. Rogina

                @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 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?
                Pablo J. RoginaP 1 Reply Last reply
                0
                • L Lann

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

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on 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

                    @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?
                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on 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

                    • Login

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