[Solved] Errors building Qt 5.4 Alpha for Linux ( error: cannot find -lQt5Multimedia ) ?
-
My goal is to build Qt 5.4 Alpha for Android. Since I failed at that, I figured I should start with something easier and build Qt 5.4 for Linux.
Configure is happy after installing recommended dependencies:
@
make clean
./configure -v
@The error I get is:
error: cannot find -lQt5Multimedia
@
qtbase/lib -L/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtmultimedia/lib -lQt5Multimedia -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread
/usr/bin/ld.gold: error: cannot find -lQt5Multimedia
collect2: error: ld returned 1 exit status
make[5]: *** [maroon] Error 1
make[5]: Leaving directory/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples/quick/demos/maroon' make[4]: *** [sub-maroon-make_first] Error 2 make[4]: Leaving directory
/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples/quick/demos'
make[3]: *** [sub-demos-make_first] Error 2
make[3]: Leaving directory/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples/quick' make[2]: *** [sub-quick-make_first] Error 2 make[2]: Leaving directory
/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples'
make[1]: *** [sub-examples-make_first] Error 2
make[1]: Leaving directory `/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative'
make: *** [module-qtdeclarative-make_first] Error 2
edward3@ubuntu-14-04-x64:~/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.
@I see many Qt libs in the lib folder were successfully built but not Qt5Multimedia.
I read the default configure option was to build Qt5Multimedia?
Thanks in advance,
-Ed
-
Do I need to re-configure to force it to build Qt5Multimedia ?
-Ed
-
Hi,
Where did you call configure ? What was the summary ?
Also, you should rather do out of source builds so if something goes wrong, you just trash the current build and start over from new.
-
All is good now. Thank you for suggesting I should do out of source builds. This is making life easier!
I still had to iteratively build and install packages missing from Ubuntu 14.04LTS. I wish I had documented them all because they do not seem to ALL be documented here:
I deleted everything and re-extracted the source code from qt-everywhere-opensource-src-5.4.0-alpha.tar.gz
@
qt5.4-alpha/
├── build-android-qt-5.4.0
├── build-linux-qt-5.4.0
├── qt-everywhere-opensource-src-5.4.0-alpha
└── qt-everywhere-opensource-src-5.4.0-alpha.tar.gzCreate build directory in a sibling directory next to where you extracted source
cd qt5.4-alpha
mkdir build-linux-qt-5.4.0
cd build-linux-qt-5.4.0
../qt-everywhere-opensource-src-5.4.0-alpha/configure -v
make
make install
@Now I will try to build Qt 5.4.0 Alpha for Android.
Thank you very much for your help,
-Ed
-
Which dependencies where missing ?
-
I am no sure which dependencies were missing. Unfortunately I just kept installing one-by-one without documenting.
I believe the dependencies missing did not seem to be documented here:
But it could have been my mistake and I had missed installing some of the documented dependencies.
The packages I installed on the day I finally succeeding in building Qt 5.4.0 Linux are listed below:
@
2014-10-10 09:02:41 install linux-image-3.13.0-37-generic:amd64 <none> 3.13.0-37.64
2014-10-10 09:02:52 install linux-image-extra-3.13.0-37-generic:amd64 <none> 3.13.0-37.64
2014-10-10 09:02:59 install linux-headers-3.13.0-37:all <none> 3.13.0-37.64
2014-10-10 09:03:06 install linux-headers-3.13.0-37-generic:amd64 <none> 3.13.0-37.64
2014-10-10 09:22:59 install x11proto-render-dev:all <none> 2:0.11.1-2
2014-10-10 09:23:00 install libxrender-dev:amd64 <none> 1:0.9.8-1
2014-10-10 09:30:08 install libbison-dev:amd64 <none> 2:3.0.2.dfsg-2
2014-10-10 09:30:08 install bison:amd64 <none> 2:3.0.2.dfsg-2
2014-10-10 09:30:09 install gperf:amd64 <none> 3.0.4-1
2014-10-10 09:35:05 install libexpat1-dev:amd64 <none> 2.1.0-4ubuntu1
2014-10-10 09:35:05 install zlib1g-dev:amd64 <none> 1:1.2.8.dfsg-1ubuntu1
2014-10-10 09:35:05 install libpng12-dev:amd64 <none> 1.2.50-1ubuntu2
2014-10-10 09:35:05 install libfreetype6-dev:amd64 <none> 2.5.2-1ubuntu2.2
2014-10-10 09:35:05 install libfontconfig1-dev:amd64 <none> 2.11.0-0ubuntu4.1
2014-10-10 09:36:56 install libxi-dev:amd64 <none> 2:1.7.1.901-1ubuntu1
2014-10-10 09:38:27 install libxcb-shm0-dev:amd64 <none> 1.10-2ubuntu1
2014-10-10 09:38:27 install libxcb-icccm4-dev:amd64 <none> 0.4.1-1ubuntu1
2014-10-10 09:38:27 install libxcb-image0-dev:amd64 <none> 0.3.9-1ubuntu2
2014-10-10 09:38:27 install libxcb-keysyms1-dev:amd64 <none> 0.3.9-1ubuntu1
2014-10-10 09:38:27 install libxcb-render-util0-dev:amd64 <none> 0.3.8-1.1ubuntu1
2014-10-10 17:18:14 install libxcursor-dev:amd64 <none> 1:1.1.14-1
2014-10-10 17:28:40 install libpcrecpp0:amd64 <none> 1:8.31-2ubuntu2
2014-10-10 17:28:41 install libavahi-common-dev:amd64 <none> 0.6.31-4ubuntu1
2014-10-10 17:28:41 install libdbus-1-dev:amd64 <none> 1.6.18-0ubuntu4.2
2014-10-10 17:28:41 install libavahi-client-dev:amd64 <none> 0.6.31-4ubuntu1
2014-10-10 17:28:41 install libpcre3-dev:amd64 <none> 1:8.31-2ubuntu2
2014-10-10 17:28:41 install libglib2.0-dev:amd64 <none> 2.40.0-2
2014-10-10 17:28:41 install libpulse-dev:amd64 <none> 1:4.0-0ubuntu11
2014-10-10 17:32:42 install x11proto-composite-dev:all <none> 1:0.4.2-2
2014-10-10 17:32:42 install libxcomposite-dev:amd64 <none> 1:0.4.4-1
2014-10-10 17:35:14 install x11proto-randr-dev:all <none> 1.4.0+git20120101.is.really.1.4.0-0ubuntu1
2014-10-10 17:35:14 install libxrandr-dev:amd64 <none> 2:1.4.2-1
2014-10-10 17:37:02 install x11proto-record-dev:all <none> 1.14.2-1
2014-10-10 17:37:02 install libxtst-dev:amd64 <none> 2:1.2.2-1
2014-10-10 17:38:39 install libpci-dev:amd64 <none> 1:3.2.1-1ubuntu5
2014-10-10 17:40:42 install pinentry-curses:amd64 <none> 0.8.3-1ubuntu1
2014-10-10 17:40:42 install nss-passwords:amd64 <none> 0.1.1-1
2014-10-10 17:43:13 install libnspr4-dev:amd64 <none> 2:4.10.7-0ubuntu0.14.04.1
2014-10-10 17:43:14 install libnss3-dev:amd64 <none> 2:3.17.1-0ubuntu0.14.04.1
2014-10-10 17:45:09 install libudev-dev:amd64 <none> 204-5ubuntu20.7
2014-10-10 18:14:52 install libcap-dev:amd64 <none> 1:2.24-0ubuntu2libasound2-dev
libssl-dev
@I need to start all over with a clean Ubuntu 14.04 LTS VM and carefully document the build environment.
Anyway, I can build Linux version of Qt 5.4.0. Still working on building Android ARM version of Qt 5.4.0.
-Ed
-
What problems do you have with the android version ?