Reinstall Qt5 with QtMultimedia using Ubuntu Mate
-
@SGaist
Oh well, here are some errors.. Should i be worried or not?/usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crt1.o(.text+0x28): error: undefined reference to 'main' collect2: error: ld returned 1 exit status Makefile:81: recipe for target 'schema' failed make[4]: *** [schema] Error 1 make[4]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples/xmlpatterns/schema' Makefile:122: recipe for target 'sub-schema-make_first' failed make[3]: *** [sub-schema-make_first] Error 2 make[3]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples/xmlpatterns' Makefile:44: recipe for target 'sub-xmlpatterns-make_first' failed make[2]: *** [sub-xmlpatterns-make_first] Error 2 make[2]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples' Makefile:97: recipe for target 'sub-examples-make_first' failed make[1]: *** [sub-examples-make_first] Error 2 make[1]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns' Makefile:282: recipe for target 'module-qtxmlpatterns-make_first' failed make: *** [module-qtxmlpatterns-make_first] Error 2
I am gonna not use
make install
just yet, because errors and wait for your answer. -
@Xenoshell
Just to let you know: I am the person who tried to help with your original "why I am unable to use the camera without freezing?" question!I see this thread is getting long, I do hope my advice to sort out your multimedia installation fully is worth it for all this compiling etc. you're doing, and not a red-herring...!!
-
Don't build the tests nor the example, especially since your are cross-compiling. There's no use for that and you'll waste space, time and electricity for nothing.
-
@Xenoshell As you can see from what you posted those errors are coming from examples. As @SGaist suggested there is no need to build examples and tests (so, no these errors are not important). Use -skip to not to build examples and tests.
-
@Xenoshell make install ?
-
@Xenoshell Do you mean there is no libQt5Multimedia.* in lib directory and no header files?
-
@jsulm nope in the lib folder there is only just everything else. Here is my command i used
./configure -opengl desktop -gui -widgets -gstreamer -pulseaudio -alsa -ffmpeg -dbus-linked
, Do i maybe have to also add-multimedia
?? I dont think there even is that command, but what do i have to do to install QtMultimedia -
Are you calling configure from the top folder ?
If so, did you clean everything before calling configure again ?As I suggest every time: use out of source builds, that way if something goes wrong or you want to use a different set of option, you can simply nuke everything or change the folder and you know for sure you start from a clean state.
-
-
make distclean
ormake confclean
As the name suggests: builds that happens out of the source tree.
Basically:
mkdir /home/your_user/build_qt5 pushd /home/your_user/build_qt5 /path/to/Qt_sources/configure -nomake tests -nomake examples make -j (number_of_cores * 2 + 1) make install popd
-
It will be in the future when you'll build Qt again.