Ubuntu 10.04.02 編譯 Qt 4.7.1

首先安裝編譯環境(sudo apt-get install build-essential)

./configure -fast -silent > ./qtlog.txt
c
XXXXX-XXX-XXX-XXX-XXXXX-XXXXX-XXXX
yes

!!
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/cuterhei/qt-everywhere-src-4.7.1/mkspecs/linux-g++.
??
sudo apt-get install libXext-dev

!!
QtDBus module .......... no
??
sudo apt-get install libdbus-1-dev

!!
Phonon module .......... no
??
sudo apt-get install libaudio-dev libmng-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev

!!
CUPS support ........... no
??
sudo apt-get install libcups2-dev

!!
PulseAudio support ..... no
??
sudo apt-get install libpulse-dev

!!
OpenGL support ......... no
??
sudo apt-get install xlibmesa-glu-dev

!!
OpenVG support ......... no
??
{{{{
Compile QT 4.7.1 on Ubuntu 10.10 for OpenVG
14. Nov, 2010

I am working on a new project that involves determining the available options for fast and smooth user interface implementation on an embedded, linux-based platform. The target platform supports OpenVG, so I went to check the OpenVG support in QT. It turns out that OpenVG is supported by QT, however you have to compile QT with OpenVG support yourself, as it is not enabled by default in the official binaries.

In order to quickly start testing, I looked for a way to compile and execute QT apps with OpenVG support on the desktop. (desktop means my Ubuntu 10.10 running in a parallels VM). After some time googling around I concluded that I needed to install ShivaVG first, then build QT with OpenVG support.

ShivaVG is an open source OpenVG implementation built on top of OpenGL. Installing it was as easy the usual configure/make/make install. After that it was the time to build and install QT with OpenVG support. Calling up configure did automatically find ShivaVG and recognized it as the OpenVG implementation. Unfortunately, during the actual build process, compilation stopped with different compiler and linker errors.

After some search, I could boil down the source of the errors I got to two things: missing variables for ShivaVG include directories and missing patch in QT regarding VGFont usage. Let’s see what these mean.

The first problem was that qmake was not finding the ShivaVG include and lib directories. In order to inform qmake about these settings, you need to find the right configuration file and manually add a couple of variables to it. QT stores platform specific configuration files in the mkspecs directory. I was building for an x86 linux system with a 64bit processor (remember, Ubuntu 10.10 running on virtual machine on Macbook Pro), so my configuration file is called mkspecs/linux-g++-64/qmake.conf. I added the following variables to that file before the load(qt_config) directive:

QMAKE_LIBDIR_OPENVG   = /usr/local/lib
QMAKE_INCDIR_OPENVG   = /usr/local/include
This solved the first bunch of compilation issues. However, I was still receiving strange error messages about VGFont not being found by the compiler. After another google session I learned that ShivaVG does not support VGFont. Fortunately, after yet another, much lengthier searching episode I found this patch on gitorious. What it does is to comment out the VGFont stuff from some files in the QT distribution. To my surprise, I was able to finish building QT from source with OpenVG support using ShivaVG after applying this patch.

What I experienced when actually running some QT examples and also my own demos with ShivaVG will be the subject of a future post. I’ll keep you posted
}}}}

!!
NAS sound support ...... no
??
sudo apt-get install nas
./configure -system-nas-sound

!!
XVideo support ......... no
Xinerama support ....... no
Xcursor support ........ no
Xfixes support ......... no
Xrandr support ......... no
Xrender support ........ no
Xi support ............. no
FontConfig support ..... no
??
sudo apt-get install xorg-dev

!!
GTK theme support ...... no
sudo apt-get install libgtk2.0-dev
??

!!
OpenSSL support ........ no
??
sudo apt-get install libssl-dev

!!
Alsa support ........... no
??
sudo apt-get install libasound2-dev

ICD support ............ no
??

發佈了28 篇原創文章 · 獲贊 2 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章