1.qt-everywhere-opensource-src-4.8.5è¿ä¸ªå
å«qt createå
2.CentOS安装qt4.8
qt-everywhere-opensource-src-4.8.5è¿ä¸ªå å«qt createå
ä¸é¢æ¯ç¼è¯é项,源码èªå·±å¯ä»¥ä¿®ä¿®æ¹æ¹./configure-opensource-embeddedarm-xplatformqws/linux-arm-gnueabi-g++-no-webkit-qt-libtiff-qt-libmng-qt-libjpeg-qt-libpng-no-qt3support-nomakedemos-nomakedocs-nomakeexamples-little-endian-host-little-endian-no-xcursor-no-mouse-linuxtp-qt-mouse-tslib-I/usr/local/tslib/include-L/usr/local/tslib/lib-fast-lrt-confirm-licensePS:å¨è§£åå çmkspecs/linux-arm-gnueabi-g++ç®å½ä¸éè¦é ç½®ä¸ä¸ä½ çlinux-arm-gnueabi-g++è·¯å¾,æ好æ¯è®¾ç½®æç»å¯¹è·¯å¾,å¦åå¯è½ä½ é ç½®ç交åç¼è¯å¨æ²¡ææ·»å å°ç¯å¢åééé¢ä¸å¥½~(å¦æé ç½®äºç¯å¢åéçè¯,é£å°±æ²¡å¿ è¦è®¾ç½®äº)æçç»ä½ åèä¸ä¸,å°±æ¯åé äº~##qmakeconfigurationforbuildingwitharm-linux-gnueabi-g++#MAKEFILE_GENERATOR=UNIXTARGET_PLATFORM=unixTEMPLATE=appCONFIG+=qtwarn_onreleaseincrementallink_prlgdb_dwarf_indexQT+=coreguiQMAKE_INCREMENTAL_STYLE=sublibinclude(../common/linux.conf)include(../common/gcc-base-unix.conf)include(../common/g++-unix.conf)#modificationstog++.confQMAKE_CC=arm-linux-gnueabi-gccQMAKE_CXX=arm-linux-gnueabi-g++QMAKE_LINK=arm-linux-gnueabi-g++QMAKE_LINK_SHLIB=arm-linux-gnueabi-g++#modificationstolinux.confQMAKE_AR=arm-linux-gnueabi-arcqsQMAKE_OBJCOPY=arm-linux-gnueabi-objcopyQMAKE_STRIP=arm-linux-gnueabi-stripload(qt_config)æ¥ä¸æ¥æ¯QTCREATEé ç½®å·¥å ·-->é项--->æ建åè¿è¡1.ç¼è¯å¨:ç¹å»æ·»å :"å称"éæ"ç¼è¯å¨è·¯å¾"**/arm-none-linux-gnueabi-g++æ¾å°ä½ çç¼è¯å¨,æè¿éæ¯ç¨ARMçå ¶ä»ä¸å¡«ä¹è¡.2.QtVersions:ç¹å»æ·»å :æ¾å°éè¿æºç ç¼è¯å¥½çqmakeæ件.ä¾å¦:/usr/local/Qt-4.8.6/bin/qmake3.æ建å¥ä»¶:ç¹å»æ·»å :"å称"éæ,éç¹æ¯"ç¼è¯å¨"è·"QTçæ¬",åå«éæ©ååæ·»å ç两项.è°è¯å¨:å¦ææ¯æ¡é¢ç¯å¢é£å°±éæ¡é¢ç,å¦ææ¯å¨åµå ¥å¼ä¸ç,é£ä¸è¦ä¹å¯ä»¥..
CentOS安装qt4.8
记录下在CentOS下安装qt4.8的过程:
(最好是在英文系统语言环境下安装,中文可能会出现无法正确中文字体)
1. 安装必需的编译分时上涨动量副图指标源码环境
安装gcc和g++:
[root@localhost local]# yum install gcc
[root@localhost local]# yum install gcc-c++
安装Xlib:[root@localhost local]# yum install libX-devel libXext-devel libXtst-devel
2. 下载qt
官网下载地址:http://qt-project.org/downloads。
CentOS安装选择
Qt libraries 4.8.5 for Linux/X ( MB) (Info) 3. 将下载的源码建站宝源码qt进行解压[root@localhost local]# tar zxvf qt-everywhere-opensource-src-4.8.5.tar.gz
4. 进行配置[root@localhost local]# ./configure --prefix=/usr/local
我选择安装在/usr/local下,最后配置环境的编译柠檬视频源码时候要记得更换成自己安装的目录。
5. 编译、源码delphi 源码全集运行
这步可能会花费比较长的编译mfc源码分析时间,需要耐心等大
[root@localhost local]# gmake
[root@localhost local]# gmake install
6. 安装成功,源码配置环境变量
将安装路径写到环境变量中
[root@localhost local]# vim /etc/profile
加入以下内容:#ADD QT4.8.5 PATH
PATH=/usr/local/bin:$PATH
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTTRC
使配置生效[root@localhost bin]# source /etc/profile
7. 配置成功!打开qt界面进行编程吧!
进入qt安装目录/bin文件夹下,编译执行
源码[root@localhost bin]# ./designer
源码2024-12-22 11:47
2024-12-22 11:36
2024-12-22 11:14
2024-12-22 10:47
2024-12-22 10:35
2024-12-22 09:50