build qt-everywhere-opensource-src-4.8.0

2 篇文章 0 订阅

Use the following batch file to build qt-everywhere-opensource-src-4.8.0 on Windows Xp via VC++ 2010

@ECHO OFF
 
set DEV=D:\src
set QTDIR=%DEV%\qt-everywhere-opensource-src-4.8.0
set PATH=%SystemRoot%;%SystemRoot%\system32;%QTDIR%\bin
 
echo Setting OpenSSL Env.
set OPENSSL=D:\src\openssl-1.0.0d
set PATH=%OPENSSL%\out32dll;%PATH%
set LIB=%OPENSSL%\out32dll
set INCLUDE=%OPENSSL%\inc32
 
echo Setting NASM Env - http://www.nasm.us/pub/nasm/releasebuilds/2.09.07/win32/.
set PATH=D:\apps\nasm-2.09.07;%PATH%
 
echo Setting DirectX Env.
set LIB=D:\apps\Microsoft DirectX SDK (June 2010)\Lib\x86;%LIB%
set INCLUDE=D:\apps\Microsoft DirectX SDK (June 2010)\Include;%INCLUDE%
 
echo Setting Windows SDK Env.
set WindowsSdkDir=D:\apps\Microsoft SDKs\Windows\v7.1
set PATH=%WindowsSdkDir%\Bin;%PATH%
set LIB=%WindowsSdkDir%\Lib;%LIB%
set INCLUDE=%WindowsSdkDir%\Include;%INCLUDE%
set TARGET_CPU=x86
 
echo Setting MSVC2010 Env.
set VSINSTALLDIR=D:\apps\VS10.0
set VCINSTALLDIR=D:\apps\VS10.0\VC
set DevEnvDir=%VSINSTALLDIR%\Common7\IDE
set PATH=%VCINSTALLDIR%\bin;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\IDE;%VCINSTALLDIR%\VCPackages;%PATH%
set INCLUDE=%VCINSTALLDIR%\include;%INCLUDE%
set LIB=%VCINSTALLDIR%\lib;%LIB%
set LIBPATH=%VCINSTALLDIR%\lib
 
echo Setting Framework Env.
set FrameworkVersion=v4.0.30319
set Framework35Version=v3.5
set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework
set LIBPATH=%FrameworkDir%\%FrameworkVersion%;%FrameworkDir%\%Framework35Version%;%LIBPATH%
set PATH=%LIBPATH%;%PATH%;C:\Perl\bin
 
echo Env. ready.
 
title Qt Framework qt-everywhere-opensource-src-4.8.0 Development Kit.
 
cd /d %DEV%


cd /d %QTDIR%


call "%VS100COMNTOOLS%/../../vc/bin/vcvars32.bat"
cd /d D:\src\qt-everywhere-opensource-src-4.8.0
configure.exe -debug-and-release -qt-sql-odbc -opensource -confirm-license -shared -ltcg -no-fast -exceptions -accessibility -stl -qt-sql-sqlite -no-qt3support -no-openvg -platform win32-msvc2010 -graphicssystem raster -qt-zlib -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -no-dsp -no-vcproj -incredibuild-xge -plugin-manifests -qmake -process -rtti -mmx -3dnow -sse -sse2 -openssl -no-dbus -phonon -phonon-backend -multimedia -audio-backend -webkit -script -scripttools -declarative -arch windows -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -native-gestures
"D:\apps\Windows Resource Kits\Tools\timeit.exe" nmake sub-src
"D:\apps\Windows Resource Kits\Tools\diskuse.exe" D:\src\qt-everywhere-opensource-src-4.8.0 /s




The following are my logs to build QT on ubuntu.

onega@6930p:~/qt-everywhere-opensource-src-4.8.0$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"


qmake.conf needs some update in order to fix the following error:

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/onega/qt-everywhere-opensource-src-4.8.0/mkspecs/linux-g++-64.


change mkspecs/linux-g++-64/qmake.conf to

#QMAKE_LIBDIR_X11      = /usr/X11R6/lib64
#QMAKE_LIBDIR_OPENGL   = /usr/X11R6/lib64
QMAKE_LIBDIR_X11        = /usr/lib/X11
QMAKE_LIBDIR_OPENGL     = /usr/lib/X11
QMAKE_INCDIR_X11        = /usr/include/X11

sudo apt-get install libpulse-dev libxext-dev
sudo apt-get install libssl-dev

./configure -debug-and-release  -opensource -confirm-license -shared  -no-fast -exceptions -accessibility -stl -qt-sql-sqlite -no-qt3support -no-openvg -graphicssystem raster -qt-zlib -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -process -openssl -no-dbus  -multimedia -audio-backend -webkit -script -scripttools -declarative -arch linux -no-style-s60 -nomake demos -nomake examples -platform linux-g++-64


make

sudo make install

...

cp -f -r /home/onega/qt-everywhere-opensource-src-4.8.0/mkspecs/wincewm65professional-msvc2008 /usr/local/Trolltech/Qt-4.8.0/mkspecs/


onega@6930p:~/qt-everywhere-opensource-src-4.8.0$ du -sh
1.4G



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值