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. Project ERROR ... multimedia
Forum Updated to NodeBB v4.3 + New Features

Project ERROR ... multimedia

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 2.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.
  • S Offline
    S Offline
    samdol
    wrote on last edited by
    #1

    Hi,
    I built Qt statically in windows7 and I could build desktop application statically.
    Now I included music play features on it and when I include QT += multimedia in .pro file, I got the following error message,
    Project ERROR: Unknown module(s) in QT: multimedia
    Do I have to compile qt again with some additional configure options?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      How did you compile Qt ? Did the module also get built ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        How did you compile Qt ? Did the module also get built ?

        S Offline
        S Offline
        samdol
        wrote on last edited by
        #3

        @SGaist
        I compiled with
        configure -prefix C:\Qt\5.6.2 -static -release -platform win32-g++ -no-compile-examples -opengl desktop
        then run
        mingw32-make
        Maybe I did not build multimedia module, since I didn't do any other jobs.
        Could you explain how to build the module and put it to static Qt 5.6.2?
        Thank you.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It's -nomake examples. You should also add -nomake tests.

          You shouldn't use that prefix, you will likely overwrite the content of a pre-built version of Qt.

          Did you call configure in the sources top folder or in qtbase ?

          On a side note, you should do an out of source build. That will allow for easier multiple builds.

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

          S 1 Reply Last reply
          2
          • SGaistS SGaist

            It's -nomake examples. You should also add -nomake tests.

            You shouldn't use that prefix, you will likely overwrite the content of a pre-built version of Qt.

            Did you call configure in the sources top folder or in qtbase ?

            On a side note, you should do an out of source build. That will allow for easier multiple builds.

            S Offline
            S Offline
            samdol
            wrote on last edited by
            #5

            @SGaist
            Do you mean add -nomake tests instead of -no-compile-examples? like
            configure -prefix C:\Qt\5.6.2 -static -release -platform win32-g++ -nomake tests -opengl desktop
            I call configure in the sources top folder.
            When you say " out of source build", do you mean building qt by part as oppose to what I did?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              No I mean replace -no-compile-examples with -nomake examples -nomake tests.

              No, create a folder outside of the sources and call configure from that folder.

              mkdir build_Qt
              cd build_Qt
              /path/to/Qt/src/configure options
              mingw32-make
              mingw32-make install
              

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

              S 1 Reply Last reply
              3
              • SGaistS SGaist

                No I mean replace -no-compile-examples with -nomake examples -nomake tests.

                No, create a folder outside of the sources and call configure from that folder.

                mkdir build_Qt
                cd build_Qt
                /path/to/Qt/src/configure options
                mingw32-make
                mingw32-make install
                
                S Offline
                S Offline
                samdol
                wrote on last edited by
                #7

                @SGaist
                I have replaced
                -no-compile-examples with -nomake examples -nomake tests
                and compiled again. but I still get the same message
                Project ERROR: Unknown module(s) in QT: multimedia
                I did not create a folder outside of the sources and call configure from that folder. (because In my case it showed compile error).

                jsulmJ 1 Reply Last reply
                0
                • S samdol

                  @SGaist
                  I have replaced
                  -no-compile-examples with -nomake examples -nomake tests
                  and compiled again. but I still get the same message
                  Project ERROR: Unknown module(s) in QT: multimedia
                  I did not create a folder outside of the sources and call configure from that folder. (because In my case it showed compile error).

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

                  @samdol said in Project ERROR ... multimedia:

                  I did not create a folder outside of the sources and call configure from that folder. (because In my case it showed compile error).

                  What was the error?
                  Calling configure from same directory where you did it already before can cause problems (left overs from previous builds).
                  Also, did you call make install?

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

                  S 1 Reply Last reply
                  3
                  • jsulmJ jsulm

                    @samdol said in Project ERROR ... multimedia:

                    I did not create a folder outside of the sources and call configure from that folder. (because In my case it showed compile error).

                    What was the error?
                    Calling configure from same directory where you did it already before can cause problems (left overs from previous builds).
                    Also, did you call make install?

                    S Offline
                    S Offline
                    samdol
                    wrote on last edited by
                    #9

                    @jsulm
                    Thank you for your point. I did not run mingw32-make install.
                    After running mingw32-make install, it created directory assigned by prefix value,
                    and now it works.

                    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