• 16057阅读
  • 12回复

[讨论]fedora 12下搭建qt/qt embedded环境移植到mini2440开发板上 [复制链接]

上一主题 下一主题
离线落寞海
 
只看楼主 倒序阅读 楼主  发表于: 2011-04-16
关键词: qt-embedded
在fedora 12下搭建qt/qt embedded环境移植到开发板上,我用的开发板是mini2440,想在开发板上建立一个QT界面通信,但搭建环境是老是安装不了qt/qt embedded,我装的是qt-x11-opensource-src-4.5.1.tar.gz、qt-embedded-linux-opensource-src-4.5.1.tar.gz,但安装的过程中出错,求指教,最好能具体每一步怎么做,因为环境变量和安装时的一些选项很重要,还有一个问题,之前问过很多同学,是不是搭建这样一个环境从操作系统、交叉编译环境、qt 、qt embedded都要一致的阿
离线wxj120bw

只看该作者 1楼 发表于: 2011-04-17
引用楼主落寞海于2011-04-16 09:24发表的 fedora 12下搭建qt/qt embedded环境移植到mini2440开发板上 :
在fedora 12下搭建qt/qt embedded环境移植到开发板上,我用的开发板是mini2440,想在开发板上建立一个QT界面通信,但搭建环境是老是安装不了qt/qt embedded,我装的是qt-x11-opensource-src-4.5.1.tar.gz、qt-embedded-linux-opensource-src-4.5.1.tar.gz,但安装的过程中出错,求指教,最好能具体每一步怎么做,因为环境变量和安装时的一些选项很重要,还有一个问题,之前问过很多同学,是不是搭建这样一个环境从操作系统、交叉编译环境、qt 、qt embedded都要一致的阿

把遇到具体问题给贴出来 好分析
离线落寞海
只看该作者 2楼 发表于: 2011-04-17
我是在安装时出现以下的错误信息:
socket/qnativesocketengine_unix.cpp:542: 警告:dereferencing pointer ‘storagePtrIPv6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:541: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:547: 警告:dereferencing pointer ‘storagePtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:546: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:550: 警告:dereferencing pointer ‘storagePtrIPv4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:549: 附注:initialized from here
socket/qnativesocketengine_unix.cpp: In member function ‘qint64 QNativeSocketEnginePrivate::nativeReceiveDatagram(char*, qint64, QHostAddress*, quint16*)’:
socket/qnativesocketengine_unix.cpp:120: 警告:dereferencing pointer ‘aa.303’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:620: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:130: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:134: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:137: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:121: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:143: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:146: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:141: 附注:initialized from here
socket/qnativesocketengine_unix.cpp: In member function ‘bool QNativeSocketEnginePrivate::fetchConnectionParameters()’:
socket/qnativesocketengine_unix.cpp:714: 警告:dereferencing pointer ‘sockAddrPtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:120: 警告:dereferencing pointer ‘sockAddrPtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:120: 警告:dereferencing pointer ‘sockAddrPtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:705: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:130: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:134: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:137: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:121: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:143: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:146: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:141: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:130: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:134: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:137: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:121: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:143: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:146: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:141: 附注:initialized from here
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qlocalsocket_unix.o socket/qlocalsocket_unix.cpp
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qlocalserver_unix.o socket/qlocalserver_unix.cpp
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qssl.o ssl/qssl.cpp
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qsslcertificate.o ssl/qsslcertificate.cpp
In file included from ssl/qsslcertificate.cpp:109:
ssl/qsslsocket_openssl_symbols_p.h:257: 错误:变量或字段‘q_sk_free’声明为 void
ssl/qsslsocket_openssl_symbols_p.h:257: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:257: 错误:‘a’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:258: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:258: 错误:‘a’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:‘a’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:expected primary-expression before ‘int’
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:initializer 表达式列表被看作复合表达式
ssl/qsslcertificate.cpp: In member function ‘QMultiMap<QSsl::AlternateNameEntryType, QString> QSslCertificate::alternateSubjectNames() const’:
ssl/qsslcertificate.cpp:365: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslcertificate.cpp:365: 错误:‘altNames’在此作用域中尚未声明
ssl/qsslcertificate.cpp:365: 错误:expected primary-expression before ‘)’ token
ssl/qsslcertificate.cpp:365: 错误:expected ‘;’ before ‘q_X509_get_ext_d2i’
ssl/qsslcertificate.cpp:386: 错误:‘q_sk_free’在此作用域中尚未声明
gmake[1]: *** [.obj/release-shared/qsslcertificate.o] 错误 1
gmake[1]: Leaving directory `/opt/qt-x11-opensource-src-4.5.1/src/network'
gmake: *** [sub-network-install_subtargets-ordered] 错误 2

非常感谢
离线落寞海
只看该作者 3楼 发表于: 2011-04-17
回 1楼(wxj120bw) 的帖子

我是在安装时出现以下的错误信息:
socket/qnativesocketengine_unix.cpp:542: 警告:dereferencing pointer ‘storagePtrIPv6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:541: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:547: 警告:dereferencing pointer ‘storagePtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:546: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:550: 警告:dereferencing pointer ‘storagePtrIPv4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:549: 附注:initialized from here
socket/qnativesocketengine_unix.cpp: In member function ‘qint64 QNativeSocketEnginePrivate::nativeReceiveDatagram(char*, qint64, QHostAddress*, quint16*)’:
socket/qnativesocketengine_unix.cpp:120: 警告:dereferencing pointer ‘aa.303’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:620: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:130: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:134: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:137: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:121: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:143: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:146: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:141: 附注:initialized from here
socket/qnativesocketengine_unix.cpp: In member function ‘bool QNativeSocketEnginePrivate::fetchConnectionParameters()’:
socket/qnativesocketengine_unix.cpp:714: 警告:dereferencing pointer ‘sockAddrPtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:120: 警告:dereferencing pointer ‘sockAddrPtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:120: 警告:dereferencing pointer ‘sockAddrPtr’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:705: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:130: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:134: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:137: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:121: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:143: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:146: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:141: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:130: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:134: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:137: 警告:dereferencing pointer ‘sa6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:121: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:143: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:146: 警告:dereferencing pointer ‘sa4’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:141: 附注:initialized from here
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qlocalsocket_unix.o socket/qlocalsocket_unix.cpp
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qlocalserver_unix.o socket/qlocalserver_unix.cpp
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qssl.o ssl/qssl.cpp
g++ -c -include .pch/release-shared/QtNetwork -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I/opt/qt-x11-opensource-src-4.5.1/src/network/.uic/release-shared -o .obj/release-shared/qsslcertificate.o ssl/qsslcertificate.cpp
In file included from ssl/qsslcertificate.cpp:109:
ssl/qsslsocket_openssl_symbols_p.h:257: 错误:变量或字段‘q_sk_free’声明为 void
ssl/qsslsocket_openssl_symbols_p.h:257: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:257: 错误:‘a’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:258: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:258: 错误:‘a’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:‘a’在此作用域中尚未声明
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:expected primary-expression before ‘int’
ssl/qsslsocket_openssl_symbols_p.h:259: 错误:initializer 表达式列表被看作复合表达式
ssl/qsslcertificate.cpp: In member function ‘QMultiMap<QSsl::AlternateNameEntryType, QString> QSslCertificate::alternateSubjectNames() const’:
ssl/qsslcertificate.cpp:365: 错误:‘STACK’在此作用域中尚未声明
ssl/qsslcertificate.cpp:365: 错误:‘altNames’在此作用域中尚未声明
ssl/qsslcertificate.cpp:365: 错误:expected primary-expression before ‘)’ token
ssl/qsslcertificate.cpp:365: 错误:expected ‘;’ before ‘q_X509_get_ext_d2i’
ssl/qsslcertificate.cpp:386: 错误:‘q_sk_free’在此作用域中尚未声明
gmake[1]: *** [.obj/release-shared/qsslcertificate.o] 错误 1
gmake[1]: Leaving directory `/opt/qt-x11-opensource-src-4.5.1/src/network'
gmake: *** [sub-network-install_subtargets-ordered] 错误 2

非常感谢
离线wlzxlc
只看该作者 4楼 发表于: 2011-04-17
我5分钟前在redhat 上交叉编译了qt/qt embedded4.5.2  准备移植到mini2410上
离线wxj120bw

只看该作者 5楼 发表于: 2011-04-17
Re:回 1楼(wxj120bw) 的帖子
引用第3楼落寞海于2011-04-17 10:46发表的 回 1楼(wxj120bw) 的帖子 :
我是在安装时出现以下的错误信息:
socket/qnativesocketengine_unix.cpp:542: 警告:dereferencing pointer ‘storagePtrIPv6’ does break strict-aliasing rules
socket/qnativesocketengine_unix.cpp:541: 附注:initialized from here
socket/qnativesocketengine_unix.cpp:547: 警告:dereferencing pointer ‘storagePtr’ does break strict-aliasing rules
.......

少了些东西 你把install文件或者readme文件上传下
离线落寞海
只看该作者 6楼 发表于: 2011-04-17
回 4楼(wlzxlc) 的帖子
想请教一下你装的是那个版本的qt/qt embedded具体点的?交叉编译后能成功运行到板子上吗?在安装是./configure生成的makefile时参数该怎么设计呢?很急的,希望能尽快回复
离线落寞海
只看该作者 7楼 发表于: 2011-04-17
回 5楼(wxj120bw) 的帖子
我在安装目录下用find 指令找了,没有找到你说的 install或者readme文件
离线wxj120bw

只看该作者 8楼 发表于: 2011-04-17
Re:回 5楼(wxj120bw) 的帖子
引用第7楼落寞海于2011-04-17 15:34发表的 回 5楼(wxj120bw) 的帖子 :
我在安装目录下用find 指令找了,没有找到你说的 install或者readme文件

一般这样的文件都是在解压后的文件夹根目录下 你看下 一般都会有的
离线wlzxlc
只看该作者 9楼 发表于: 2011-04-18
回 6楼(落寞海) 的帖子
成功移植,qt-embedded-linux-opensource-src-4.5.2.tar.gz,arm-linux-gcc version 3.4.6
配置参数如下:
./configure -release -shared -fast -no-largefile -qt-sql-sqlite -no-qt3support -no-xmlpatterns -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -qt-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libjpeg -make libs -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -no-openssl -xplatform qws/linux-arm-g++ -embedded arm -webkit  -little-endian -qt-freetype -depths 16 -qt-mouse-linuxtp -qt-mouse-tslib -I/home/sprife/qt4/for_arm/tslib1.4-install/include -L/home/sprife/qt4/for_arm/tslib1.4-install/lib

我在其中加入了QWebkit支持
离线落寞海
只看该作者 10楼 发表于: 2011-04-19
回 8楼(wxj120bw) 的帖子
找到了这两个文件,不知道是不是
install文件
                          INSTALLING Qt/X11 Version 4.5.1.

1.  If you have the commercial edition of Qt, install your license
    file as $HOME/.qt-license.

    For the open source version you do not need a license file.

2.  Unpack the archive if you have not done so already:

        cd /tmp
        gunzip %DISTNAME%.tar.gz        # uncompress the archive
        tar xvf %DISTNAME%.tar          # unpack it

    This creates the directory /tmp/%DISTNAME% containing the files
    from the archive. We only support the GNU version of the tar
    archiving utility. Note that on some systems it is called gtar.

3.  Building

    To configure the Qt library for your machine type, run the
    ./configure script in the package directory.

    By default, Qt is configured for installation in the
    /usr/local/Trolltech/Qt-4.5.1 directory, but this can be
    changed by using the -prefix option. Alternatively, the
    -prefix-install option can be used to specify a "local"
    installation within the source directory.

        cd /tmp/%DISTNAME%
        ./configure

    Type "./configure -help" to get a list of all available options.

    To create the library and compile all the demos, examples, tools,
    and tutorials, type:

        make

    If you did not configure Qt using the -prefix-install option,
    you need to install the library, demos, examples, tools, and
    tutorials in the appropriate place. To do this, type:

        su -c "make install"

    and enter the root password.

    Note that on some systems the make utility is named differently,
    e.g. gmake. The configure script tells you which make utility to
    use.

    If you need to reconfigure and rebuild Qt from the same location,
    ensure that all traces of the previous configuration are removed
    by entering the build directory and typing

        make confclean

    before running the configure script again.

4.  Environment variables

    In order to use Qt, some environment variables needs to be
    extended.

        PATH               - to locate qmake, moc and other Qt tools

    This is done like this:

    In .profile (if your shell is bash, ksh, zsh or sh), add the
    following lines:

        PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH
        export PATH

    In .login (in case your shell is csh or tcsh), add the following line:

        setenv PATH /usr/local/Trolltech/Qt-4.5.1/bin:$PATH

    If you use a different shell, please modify your environment
    variables accordingly.

    For compilers that do not support rpath you must also extended the
    LD_LIBRARY_PATH environment variable to include
    /usr/local/Trolltech/Qt-4.5.1/lib. On Linux with GCC this step
    is not needed.

5.  That's all. Qt is now installed.

    If you are new to Qt, we suggest that you take a look at the demos
    and examples to see Qt in action. Run the Qt Examples and Demos
    either by typing 'qtdemo' on the command line or through the
    desktop's Start menu.

    You might also want to try the following links:

        http://doc.trolltech.com/4.5.1/how-to-learn-qt.html
        http://doc.trolltech.com/4.5.1/tutorial.html
        http://qtsoftware.com/developer

    We hope you will enjoy using Qt. Good luck!
下面的是readme文件
This is Qt version 4.5.1.

Qt is a comprehensive cross-platform C++ application framework. Qt 4
introduces new features and many improvements over the 3.x series. See
http://doc.trolltech.com/latest/qt4-intro.html for details.

The Qt 4.x series is not binary compatible or source compatible with
the 3.x series. For more information on porting from Qt 3 to Qt 4, see
http://doc.trolltech.com/latest/porting4.html.


INSTALLING Qt

On Windows and Mac OS X, if you want to install the precompiled binary
packages, simply launch the package and follow the instructions in the
installation wizard.

On Mac OS X, the binary package requires Mac OS X 10.4.x (Tiger) or
later and GCC 4.0.1 to develop applications. Its applications will run
on Mac OS X 10.3.9 and above.

If you have a source package (a .tar.gz, .tar.bz2, or .zip file),
follow the instructions in the INSTALL file.


DEMOS AND EXAMPLES

Once Qt is installed, we suggest that you take a look at the demos and
examples to see Qt in action. Run the Qt Examples and Demos either by
typing 'qtdemo' on the command line or through the desktop's Start
menu. On Mac OS X, you can find it in /Developers/Applications/Qt.


REFERENCE DOCUMENTATION

The Qt reference documentation is available locally in Qt's doc/html
directory. You can use Qt Assistant to view it; to launch Assistant,
type 'assistant' on the command line or use the Start menu. On Mac OS
X, you can find it in /Developer/Applications/Qt.  The latest
documentation is available at http://doc.trolltech.com/.


SUPPORTED PLATFORMS

For this release, the following platforms have been tested:

  win32-g++        (mingw)
  win32-msvc
  win32-msvc2003
  win32-msvc2005
  win32-msvc2008

  aix-xlc
  aix-xlc-64
  hpux-acc
  hpux-acc-64
  hpux-acc-o64
  hpux-g++
  hpux-g++-64
  hpuxi-acc-32
  hpuxi-acc-64
  linux-g++
  linux-icc
  linux-icc-32
  linux-icc-64
  solaris-cc
  solaris-cc-64
  solaris-g++
  solaris-g++-64

  macx-g++
  macx-g++42

  qws/linux-x86-g++
  qws/linux-arm-g++

  wince50standard-armv4i-msvc2005
  wince50standard-armv4i-msvc2008
  wince50standard-mipsii-msvc2005
  wince50standard-mipsii-msvc2008
  wince50standard-x86-msvc2005
  wince50standard-x86-msvc2008
  wincewm50pocket-msvc2005
  wincewm50pocket-msvc2008
  wincewm50smart-msvc2005
  wincewm50smart-msvc2008
  wincewm60professional-msvc2005
  wincewm60professional-msvc2008
  wincewm60standard-msvc2005
  wincewm60standard-msvc2008

For a complete list of supported platforms, see
http://www.qtsoftware.com/developer/supported-platforms/supported-platforms/

For a description of Qt's platform support policy, see
http://www.qtsoftware.com/support-services/support/platform-support-policy


COMMERCIAL EDITIONS

Desktop Edition licensees can use all the modules provided with their
Qt package.

GUI Framework licensees may only use the classes contained in
the QtCore, QtGui (except QGraphicsView), QtTest, QtDBus and
Qt3Support modules.

For a full listing of the contents of each module, please refer to
http://doc.trolltech.com/4.4/modules.html.


HOW TO REPORT A BUG

If you think you have found a bug in Qt, we would like to hear about
it so that we can fix it. Before reporting a bug, please check
http://qtsoftware.com/developer/faqs/ and
http://qtsoftware.com/products/appdev/platform/platforms/ to see if
the issue is already known.

Always include the following information in your bug report: the name
and version number of your compiler; the name and version number of
your operating system; the version of Qt you are using, and what
configure options it was compiled with.

If the problem you are reporting is only visible at run-time, try to
create a small test program that shows the problem when run. Often,
such a program can be created with some minor changes to one of the
many example programs in Qt's examples directory. Please submit the
bug report using the Task Tracker on the Trolltech website:

http://qtsoftware.com/developer/task-tracker


Qt is a trademark of Nokia Corporation and/or its subsidiary(-ies).
离线落寞海
只看该作者 11楼 发表于: 2011-04-19
回 9楼(wlzxlc) 的帖子
好的,我试一下,能加我QQ么?522143383,不过加的时候麻烦添加验证信息
离线echang
只看该作者 12楼 发表于: 2012-10-15
./configure需要加上-no-openssl的选项。
C++编写Windows/Linux桌面客户端、嵌入式软件;JSP/PHP网站开发
QQ:2431278352
手机:18012945516
邮件:zhisheng.cn@gmail.com
快速回复
限100 字节
 
上一个 下一个