ubuntu14.04 源码安装Qt 5.4

最近需要移植Qt5.4,这里做下记录:

qt-everywhere-opensource-src-5.4.0-rc.tar.gz

arm-linux-gcc :4.5.1

1. 安装必要的依赖:

apt-get install libtool autoconf automake git

(tslib使用)

git clone https://github.com/kergoth/tslib

(下载tslib)


apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev  libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev


首先编译 x11

./configure --prefix=/home/G470/Qt5.4_install/x11

然后make && make install

编译过程中遇到问题:

Warning: Disabling Linux Accessibility Bridge: DBus is missing.
 apt-get install dbus-*dev

No package 'libpci' found
 apt-get install libnss3-dev libgconf2-dev libgtk2.0-dev libpci-dev libudev-dev libpulse-dev libc6-dev:i386 build-essential gcc-multilib g++-multilib gperf
ERROR sys\capability.h  apt-get install libcap
apt-get install texinfo gawk bison flex

error: alsa/asoundlib.h: 没有那个文件或目录
apt-get install libasound2-dev

error: cannot find -lcrypto
collect2: error: ld returned 1 exit status
用新立德搜索为安装的包  搜索“libcrypto”
按后标记 libssl-dev libssl1.0.0 以及 1.0.0libssl-deb
可能后两个不需要。
编译完成; 、

Qt5.3 for arm的编译

安装中 待续


你可能感兴趣的:(Qt学习)