Project ERROR ... multimedia



  • 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?


  • Lifetime Qt Champion

    Hi,

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



  • @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.


  • Lifetime Qt Champion

    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.



  • @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?


  • Lifetime Qt Champion

    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
    


  • @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).


  • Moderators

    @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?



  • @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.