ubuntu配置安装Qt4.8.4 同时配置openssl和QtWebkit
来源:互联网 发布:淘宝评价多久过期 编辑:程序博客网 时间:2024/05/18 00:11
ubuntu配置安装Qt4.8.4
这里要说明的几点,首先项目中要用到openssl支持的在配置Qt环境时首先要安装配置openssl;其次如果要用到Qt的QtWebkit的一定要主要在配置中一定要有配置这个模块。Qt安装配置里很多遍这里很头疼的是openssl和QtWebkit。
Openssl属于第三方库,Qt默认是不支持的,但是可以安装配置openssl使Qt支持其openssl,这要的配置Qt前进行openssl的安装。
Step 1:
下载openssl-1.0.1i.tar.gz,这个可以在openssl官网或者CSDN上有人上传的下载
对其解压:tar –xzvf openssl-1.0.1i.tar.gz,
解压后会出现openssl-1.0.1i,
cd openssl-1.0.1i进入这个文件夹。
执行下列命令配置安装openssl
./config
./config -t
make depend
make
make test
make install 到这个命令完成就完成了openssl的配置
到这里我以为就可以通过Qt配置增加openssl的支持了但是经过尝试还是不行
经过百度,最后发现缺少依赖的包,再执行以下命令。
apt-get install openssl
apt-get install libssl-dev
这样openssl的配置安装算是结束了。
Step 2:
这里还要安装Qt所需要的包
# apt-getinstall libX11-dev
# apt-getinstall libXext-dev
# apt-getinstall libXtst-dev
# apt-getinstall libxrandr-dev
这几个库必须安装,要是不安转Qt运行时会报错。
Step 3:
现在下载qt-everywhere-opensource-src-4.8.1.tar.gz,这个可以在网上下载到。
对其进行解压:
tar –xzvf qt-everywhere-opensource-src-4.8.1.tar.gz
一解压就会产生qt-everywhere-opensource-src-4.8.1,进入文件夹
cdqt-everywhere-opensource-src-4.8.1
这时你要进入include文件夹,你会看到Qt自带的所有模块,其中就有Qtwebkit模块,但是没有openssl模块的,因为openssl是第三方插件。这时执行下面命令
./configure–h
这个命令你可以让你看到Qt配置的相关参数怎样配置,比如说
-no-openssl ........ Do not compile support for OpenSSL.
+ -openssl ........... Enable run-timeOpenSSL support.
-openssl-linked .... Enabled linked OpenSSL support.
所以在配置时添加-penssl,命令如下:
./configure–openssl,还有你可以编译静态连接库命令如下
./configure -static -release -qt-zlib-qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -nomake demos -nomake examples-qt-sql-sqlite-openssl,但是这样有一个不好处就是Webkit不能模块不能加载进去。所以我采用第一种configure
若有出现Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the OpenSource Edition.则选择o,第一个是商业版,不要选。好了以后再选择yes,就开始编译生成makefire。在makefile过程中你会看到如下显示说明openssl和QtWebkit已经被编译进来。这样就ok就慢慢等待吧要好几个小时。
Build .................. libs toolsexamples demos docs translations
Configuration .......... release shared dll largefile stlprecompile_header mmx 3dnow sse sse2 sse3 ssse3 sse4_1 sse4_2 avx minimal-config small-config medium-config large-config full-config qt3supportaccessibility reduce_exports ipv6 clock-gettime clock-monotonic mremapgetaddrinfo ipv6ifname getifaddrs inotify png freetype system-zlib nis iconvdbus openssl xshape xsync xrender mitshm xkb concurrent xmlpatterns multimediaaudio-backend svg script scripttools declarative release
Debug .................. no
Qt 3 compatibility ..... yes
QtDBus module .......... yes (run-time)
QtConcurrent code ...... yes
QtGui module ........... yes
QtScript module ........ yes
QtScriptTools module ... yes
QtXmlPatterns module ... yes
Phonon module .......... no
Multimedia module ...... auto
SVG module ............. yes
WebKit module .......... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
Declarative module ..... yes
Declarative debugging ...yes
Support for S60 ........ no
Symbian DEF files ...... no
STL support ............ yes
PCH support ............ yes
MMX/3DNOW/SSE/SSE2/SSE3. yes/yes/yes/yes/yes
SSSE3/SSE4.1/SSE4.2..... yes/yes/yes
AVX..................... yes
Graphics System ........ default
IPv6 support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
TIFF support ........... plugin (qt)
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
MNG support ............ plugin (qt)
zlib support ........... system
Session management ..... no
OpenGL support ......... no
OpenVG support ......... no
NAS sound support ...... no
XShape support ......... yes
XVideo support ......... no
XSync support .......... yes
Xinerama support ....... no
Xcursor support ........ no
Xfixes support ......... no
Xrandr support ......... no
Xrender support ........ yes
Xi support ............. runtime
MIT-SHM support ........ yes
FontConfig support ..... no
XKB Support ............ yes
immodule support ....... yes
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ yes (run-time)
Alsa support ........... no
ICD support ............ no
libICU support ......... no
Step 4:
在configure完成后执行如下命令
#make
这也要很长时间
Step 5:
在完成step4之后,执行如下命令:
# makeinstall
等待完成后这样Qt的环境配置完成了,这样下载qt-creator-linux-32-x86-opensource-2.6.2.bin
直接执行如下命令:
./ qt-creator-linux-32-x86-opensource-2.6.2.bin,按照提示即可安装完成Qt。到这里就完成了Qt的整个安装。
- ubuntu配置安装Qt4.8.4 同时配置openssl和QtWebkit
- 安装openssl 和配置munge
- QT4 初学者软件安装和配置
- Ubuntu arm-qt4.8.5 的安装与配置
- Ubuntu 安装和配置
- openssl安装配置
- Visual Studio 2015编译安装配置QT5.5.1(含QTWEBKIT)
- QT4.6.2 + VS2008安装配置
- 配置Apache和OpenSSL
- ubuntu下100%成功安装torch,同时配置cuda和cudnn(不成功,则成仁)
- ubuntu 安装QT4和cgal
- ubuntu安装Kdevelop和qt4
- Ubuntu 12.04LTS下配置OpenSSL和gmp环境
- Ubuntu安装和配置SVN
- ubuntu 安装和配置 JDK
- Ubuntu mysql安装和配置
- ubuntu安装和配置SVN
- ubuntu 安装和配置mysql
- cmd命令 拷贝某目录及其子目录文件到其他目录
- 各种 cast dynamic,static ,const,reinterpret
- 将一个n元一维向量向左旋转i个位置。例如,当n = 8且i = 3时,向量abcdefgh旋转为defghabc
- PAUL VIOLA 鲁棒的实时人脸检测:Robust Real-Time Face Detection
- dom4j读写xml文件
- ubuntu配置安装Qt4.8.4 同时配置openssl和QtWebkit
- 最长回文串
- 三阶矩阵的特征值一般求解
- 程序员必须要注意的代码规范
- 模块"jscript.dll"已加载,但对DllRegisterServer的调用失败,错误代码为0x8000。。。
- 国内大型网站提供的 IP API接口调用方法
- jquery 动态生成的元素的事件无法绑定
- WEB程序设计之CSS(三)
- 怎么解决非法关机导致mysql数据表损坏