Building Qt 5 from Git, some important modules are not installed
-
Hi all:
I've installed Qt5 from git according these steps:
http://qt-project.org/wiki/Building_Qt_5_from_Git
And tried to build a cross compiler for my embedded board:
http://www.udoo.org/ProjectsAndTutorials/how-to-build-qt5-for-udoo/?portfolioID=1394And now, when I checked the ../qtbase/mkspecs/modules, a lot of important modules are not installed.
Does anyone have any idea about this situation?
Thanks a lot.When I checked my configure command, there is "no-large file" there, but multimedia module is default to build in, so do these two commands conflict?
-
[quote author="Eddy" date="1398458189"]bq. a lot of important modules are not installed.
What modules are you missing?[/quote]
Actually I don't know the total number of lost modules.
Now I need to use QSound in a program, so I noticed that multimedia module is not there.
And xml webkit and some other modules are not there either. -
Hi,
Maybe a silly question but are you sure you have not only built qtbase ?
-
[quote author="SGaist" date="1398459868"]Hi,
Maybe a silly question but are you sure you have not only built qtbase ?[/quote]
My building process is following this website:
http://www.udoo.org/ProjectsAndTutorials/how-to-build-qt5-for-udoo/?portfolioID=1394
from step 1 to step 8.
I'm a beginner of Qt, actually I don't know whether I built it completely. Sorry.
In the folder that I ran make command, there are also gnuwin32 qt3d and other folders.
Did I make in the right path? -
Hi,
The problem with tutorials like that is they have a specific goal. If you want something more you need to do more.
Since Qt5 the sources are modularised. So you will need to build every module you want.Modules can be added one by one or by using a foreach.
to get an idea what module you could add. have a look in the qtbase folder. Every subfolder there is a possible candidate.
first mount your root filesystem. Here is how I did it for the Raspberry Pi
@
$ sudo mount -o loop,offset=62914560 2014-01-07-wheezy-raspbian.img /mnt/rasp-pi-rootfs
$ cd ~/opt/qt5/qtbase///here i add qtmultimedia and qtquickcontrols
for module in qtmultimedia qtquickcontrols ; do cd ../$module && /usr/local/qt5pi/bin/qmake . && make -j4 && sudo make install; done$ cd ~/opt
$ sync && sudo umount /mnt/rasp-pi-rootfs
@on a side note : in t he tutorial you follow there is a remark how to clean up before adding modules. please be sure you follow this directive.
Hope it helps
-
[quote author="Eddy" date="1398493914"]Hi,
The problem with tutorials like that is they have a specific goal. If you want something more you need to do more.
Since Qt5 the sources are modularised. So you will need to build every module you want.Modules can be added one by one or by using a foreach.
to get an idea what module you could add. have a look in the qtbase folder. Every subfolder there is a possible candidate.
first mount your root filesystem. Here is how I did it for the Raspberry Pi
@
$ sudo mount -o loop,offset=62914560 2014-01-07-wheezy-raspbian.img /mnt/rasp-pi-rootfs
$ cd ~/opt/qt5/qtbase///here i add qtmultimedia and qtquickcontrols
for module in qtmultimedia qtquickcontrols ; do cd ../$module && /usr/local/qt5pi/bin/qmake . && make -j4 && sudo make install; done$ cd ~/opt
$ sync && sudo umount /mnt/rasp-pi-rootfs
@on a side note : in t he tutorial you follow there is a remark how to clean up before adding modules. please be sure you follow this directive.
Hope it helps
[/quote]Thank you very much for your help, I'm trying it now.
-
[quote author="Eddy" date="1398494817"]Good luck.
please let us know your findings and feel free to ask. ;-)[/quote]Hi Eddy:
I've installed the qtmultimedia module according the website for raspberry pi.
After I ran make -j4 && sudo make install command, I copied the files in ../qtmultimedia/mkspecs/modules && modules-inst to ../qtbase/mkspec/modules && modules-inst.
And then I tried to run qmake for the program which includes multimedia module, it worked.
But when I tried to run this program on my board, there's a notice reads that: using null output device none available.
So did I install the module in a wrong way? -
[quote author="Eddy" date="1398927913"]Did you mount your device?[/quote]
You mean the audio device or the SD card which includes the file system of the target board?
About the audio device, there's a audio output on the board, but I think my program just can't find it.
When I tried to make the qtmultimedia module, the check list return this kind of information:Checking for openal... no
Checking for alsa... no
Checking for pulseaudio... no
Checking for gstreamer... no
Checking for resourcepolicy... no
Checking for gpu_vivante... yesSo is it possible that even I successfully installed the module, I can't make QMediaPlayer work because there's no output option it can find?
And about the SD card, I didn't mount it on when I ran make && make install. I usually install the system on the PC and copy it to the target board.
Thanks.