Add Multimedia Widgets to Qt Creator C++ project for Raspberry Pi
-
Hi and welcome to devnet,
What error did you get when trying to install that package ?
-
Hi! I didn't get any error when I installed that package on Ubuntu, the problem is that my Qt project fails the build anyway. I get the same error "Unknown module(s) in QT: multimedia multimediawidgets" even though that package is now installed!
Looking at Ubuntu Software Centre, "Qt Multimedia Widgets Module" seems to be installed! -
Are you cross-compiling for the Raspberry Pi ?
-
It looks like you don't have qtmultimedia for RPI. Did you build it for RPI?
-
The problem is when I build at the desktop side. I have already installed the multimedia package on my Ubuntu machine with "sudo apt-get install qtmultimedia5-dev". Have I to install other kind of package for the RPi? How can I check if I build the qtmultimedia for RPI?
-
It doesn't matter whether you installed it on your host machine. If you cross-compile then you need it for your target device and not your host (Ubuntu).
-
"By the way, the compiling error is shown when I build in Qt on my host machine, hence before deploying the program on the RPi!" - sure, if you cross-compile without QMultimedia for Pi. I guess you already have Qt cross-compiled for Pi, right? Now you need QMultimedia cross-compiled for Pi as well.