0

I am trying to use the Qt Multimedia API to access the user's webcam, but when I run the qmake, QT Creator says that the modules multimedia and multimediawidgets are unknown.

enter image description here

How can I install these modules on MacOS? I found a way to do it on Linux here but not on MacOS.

  • how did you install Qt? – Alan Birtles Sep 25 '21 at 13:51
  • what is your Qt Version? – eyllanesc Sep 25 '21 at 16:18
  • @AlanBirtles I downloaded from [this page](https://www.qt.io/download-open-source?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce%7C6cb0de4f-9bb5-4778-ab02-bfb62735f3e5). –  Sep 25 '21 at 19:45
  • @eyllanesc Qt Creator 5.0.1 based on Qt 5.15.2. –  Sep 25 '21 at 19:46
  • That QtCreator has been compiled with Qt5 does not imply that you are using Qt5. I suspect that you have installed Qt6. – eyllanesc Sep 25 '21 at 19:48
  • @eyllanesc Yes, you're right. I installed Qt6, which is the one that was installed by default. Should I install an earlier version? –  Sep 25 '21 at 19:52
  • Only in Qt 6.2 will the multimedia modules and multimediawidgets be available, so I recommend using the latest version of Qt5, not Qt6. – eyllanesc Sep 25 '21 at 19:54

1 Answers1

0

Since Qt6, multimedia needs to be installed additionally. You can install it using the qt maintenance tool and find it under "additional libraries"

zeroalpha
  • 173
  • 1
  • 11