Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake: /libQt5Multimedia.so and /libQt5MultimediaWidgets.so are incorrectly located
QtWS25 Last Chance

qmake: /libQt5Multimedia.so and /libQt5MultimediaWidgets.so are incorrectly located

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 2 Posters 478 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.
  • N Offline
    N Offline
    nestorac
    wrote on 12 Aug 2024, 12:21 last edited by
    #1

    As I have stated here, qmake incorrectly generates:

    /libQt5Multimedia.so
    /libQt5MultimediaWidgets.so
    

    They should be:

    /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so
    /usr/lib/x86_64-linux-gnu/libQt5MultimediaWidgets.so
    

    I explain everything in the linked post, not to repeat it again.

    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Aug 2024, 18:18 last edited by
      #2

      Hi,

      Do you have the same issue if you try with a simple project using Qt Multimedia and MultimediaWidgets ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply 13 Aug 2024, 09:37
      0
      • S SGaist
        12 Aug 2024, 18:18

        Hi,

        Do you have the same issue if you try with a simple project using Qt Multimedia and MultimediaWidgets ?

        N Offline
        N Offline
        nestorac
        wrote on 13 Aug 2024, 09:37 last edited by nestorac
        #3

        @SGaist I have tried a new minimal project with only main.cpp and .pro file, and it works perfectly. Why does the project not work, then?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Aug 2024, 12:05 last edited by
          #4

          Did you test it with both qmake alone and with the custom parameters ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nestorac
            wrote on 13 Aug 2024, 12:10 last edited by
            #5

            Yes, the complete command is:

            /usr/lib/qt5/bin/qmake -o Makefile src.pro 'QMAKE_CC = cc' 'QMAKE_CXX = g++' 'QMAKE_CFLAGS_RELEASE = -Wdate-time -D_FORTIFY_SOURCE=2 -O3' 'QMAKE_CXXFLAGS_RELEASE = -Wdate-time -D_FORTIFY_SOURCE=2 -O3' 'QMAKE_LFLAGS_RELEASE = -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro'
            

            and it produces the same error.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 13 Aug 2024, 18:44 last edited by
              #6

              Can you try this command by changing = by += for the various FLAGS parameters ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nestorac
                wrote on 13 Aug 2024, 21:44 last edited by
                #7

                Of course! I have tried and I get the same error.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 13 Aug 2024, 21:53 last edited by
                  #8

                  Next step: put these changes in the .pro file to see if there's some unintended interaction with the shell.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nestorac
                    wrote on 14 Aug 2024, 13:09 last edited by
                    #9

                    No way, the .pro file contains QT +=, LIBS +=, TARGET =, TEMPLATE =, SOURCES +=, HEADERS +=, FORMS +=, RESOURCES +=, and many "includes". The strangest things is that it correctly produces /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so and /usr/lib/x86_64-linux-gnu/libQt5Widgets.so (I don't know if it's the same as libQt5MultimediaWidgets), but then, it also generates incorrect /libQt5Multimedia.so and /libQt5MultimediaWidgets.so

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 14 Aug 2024, 17:02 last edited by
                      #10

                      Can you share that .pro file so it's possible to test in the same conditions ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      N 1 Reply Last reply 14 Aug 2024, 20:25
                      0
                      • S SGaist
                        14 Aug 2024, 17:02

                        Can you share that .pro file so it's possible to test in the same conditions ?

                        N Offline
                        N Offline
                        nestorac
                        wrote on 14 Aug 2024, 20:25 last edited by
                        #11

                        @SGaist of course, here it is.

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nestorac
                          wrote on 14 Aug 2024, 22:24 last edited by
                          #12

                          The project is published here, if I'm right (branch is version-2.0-stable).

                          1 Reply Last reply
                          0

                          10/12

                          14 Aug 2024, 17:02

                          • Login

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