Qt5 Alpha Complie in XP with Mingw/vs2008


根据 http://qt-project.org/wiki/Qt-5-Alpha-building-instructions 提示,下载
Perl: http://www.perl.org/get.html
python http://python.org/
Openssl http://slproweb.com/products/Win32OpenSSL.html
Mingw(g++ 4.6.2) http://sourceforge.net/projects/mingw/files/Installer/ 的 mingw-get-inst 来配置下载,坐等。

记得配置系统变量PATH

---------------------------------------------Mingw--------------------------------------------

1. 运行 mingw-build.bat

:注意系统变量INCLUDEPATH 不要有VS的头文件
:设置QTDIR, perl, python, mingw, QMAKESECE
set QTDIR=F:\beyond\qt-everywhere-opensource-src-5.0.0\qtbase
set PATH=F:\beyond\qt-everywhere-opensource-src-5.0.0\qtbase\bin
set PATH=%PATH%;C:\strawberry\perl\bin
set PATH=%PATH%;C:\Python27
set PATH=%PATH%;C:\MinGW\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++

g++ --version

./configure -release -opensource -nomake examples -nomake tests


Error:
mingw32-make[6]: Entering directory `F:/beyond/qt-everywhere-opensource-src-5.0.0/qtdeclarative/src/plugins/qmltooling/qmldbg_qtquick2'
g++ -c -fno-keep-inline-dllexport -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQDeclarativeAbstractAnimation=QQuickAbstractAnimation -DQDeclarativeAbstractBinding=QQmlAbstractBinding -DQDeclarativeAbstractBoundSignal=QQmlAbstractBoundSignal -DQDeclarativeAccessible=QQmlAccessible -DQDeclarativeAccessibleAttached=QQmlAccessibleAttached -DQDeclarativeAccessorProperties=QQmlAccessorProperties -DQDeclarativeAction=QQuickAction -DQDeclarativeActionEvent=QQuickActionEvent -DQDeclarativeAnimationGroup=QQuickAnimationGroup -DQDeclarativeAnimationPropertyUpdater=QQuickAnimationPropertyUpdater -DQDeclarativeApplication=QQuickApplication -DQDeclarativeBehavior=QQuickBehavior -DQDeclarativeBind=QQuickBind -DQDeclarativeBinding=QQmlBinding -DQDeclarativeBindingProfiler=QQmlBindingProfiler -DQDeclarativeBoundSignal=QQmlBoundSignal -DQDeclarativeBuiltinFunctions=QQmlBuiltinFunctions -DQDeclarativeBulkValueAnimator=QQuickBulkValueAnimator -DQDeclarativeChangeSet=QQuickChangeSet -DQDeclarativeCleanup=QQmlCleanup -DQDeclarativeColorAnimation=QQuickColorAnimation -DQDeclarativeColorValueType=QQmlColorValueType -DQDeclarativeCompiledData=QQmlCompiledData -DQDeclarativeCompiler=QQmlCompiler -DQDeclarativeCompilerTypes=QQmlCompilerTypes -DQDeclarativeComponent=QQmlComponent -DQDeclarativeComponentAttached=QQmlComponentAttached -DQDeclarativeComponentPrivate=QQmlComponentPrivate -DQDeclarativeConnections=QQuickConnections -DQDeclarativeContext=QQmlContext -DQDeclarativeContextData=QQmlContextData -DQDeclarativeCurve=QQuickCurve -DQDeclarativeCustomParser=QQmlCustomParser -DQDeclarativeCustomParserNode=QQmlCustomParserNode -DQDeclarativeCustomParserProperty=QQmlCustomParserProperty -DQDeclarativeData=QQmlData -DQDeclarativeDataBlob=QQmlDataBlob -DQDeclarativeDataLoader=QQmlDataLoader -DQDeclarativeDebug=QQmlDebug -DQDeclarativeDebugClient=QQmlDebugClient -DQDeclarativeDebugConnection=QQmlDebugConnection -DQDeclarativeDebugContextReference=QQmlDebugContextReference -DQDeclarativeDebugData=QQmlDebugData -DQDeclarativeDebugEngineReference=QQmlDebugEngineReference -DQDeclarativeDebugEnginesQuery=QQmlDebugEnginesQuery -DQDeclarativeDebugExpressionQuery=QQmlDebugExpressionQuery -DQDeclarativeDebugFileReference=QQmlDebugFileReference -DQDeclarativeDebuggingEnabler=QQmlDebuggingEnabler -DQDeclarativeDebugHelper=QQmlDebugHelper -DQDeclarativeDebugObjectExpressionWatch=QQmlDebugObjectExpressionWatch -DQDeclarativeDebugObjectQuery=QQmlDebugObjectQuery -DQDeclarativeDebugObjectReference=QQmlDebugObjectReference -DQDeclarativeDebugPropertyReference=QQ
mlDebugPropertyReference -DQDeclarativeDebugPropertyWatch=QQmlDebugPropertyWatch -DQDeclarativeDebugQuery=QQmlDebugQuery -DQDeclarativeDebugRootContextQuery=QQmlDebugRootContextQuery -DQDeclarativeDebugServer=QQmlDebugServer -DQDeclarativeDebugServerConnection=QQmlDebugServerConnection -DQDeclarativeDebugService=QQmlDebugService -DQDeclarativeDebugTrace=QQmlDebugTrace -DQDeclarativeDebugWatch=QQmlDebugWatch -DQDeclarativeEasingValueType=QQmlEasingValueType -DQDeclarativeEngine=QQmlEngine -DQDeclarativeEngineDebug=QQmlEngineDebug -DQDeclarativeEngineDebugService=QQmlEngineDebugService -DQDeclarativeEnginePrivate=QQmlEnginePrivate -DQDeclarativeError=QQmlError -DQDeclarativeExpression=QQmlExpression -DQDeclarativeExpressionPrivate=QQmlExpressionPrivate -DQDeclarativeExtensionInterface=QQmlExtensionInterface -DQDeclarativeExtensionPlugin=QQmlExtensionPlugin -DQDeclarativeFontLoader=QQuickFontLoader -DQDeclarativeFontValueType=QQmlFontValueType -DQDeclarativeGuard=QQmlGuard -DQDeclarativeImageProvider=QQmlImageProvider -DQDeclarativeImports=QQmlImports -DQDeclarativeIncubationController=QQmlIncubationController -DQDeclarativeIncubator=QQmlIncubator -DQDeclarativeInfo=QQmlInfo -DQDeclarativeInspector=QQmlInspector -DQDeclarativeInspectorInterface=QQmlInspectorInterface -DQDeclarativeInspectorService=QQmlInspectorService -DQDeclarativeInstruction=QQmlInstruction -DQDeclarativeJS=QQmlJS -DQDeclarativeListAccessor=QQuickListAccessor -DQDeclarativeListCompositor=QQuickListCompositor -DQDeclarativeListModel=QQuickListModel -DQDeclarativeListModelWorkerAgent=QQuickListModelWorkerAgent -DQDeclarativeListProperty=QQmlListProperty -DQDeclarativeListReference=QQmlListReference -DQDeclarativeLocale=QQmlLocale -DQDeclarativeMatrix4x4ValueType=QQmlMatrix4x4ValueType -DQDeclarativeMetaType=QQmlMetaType -DQDeclarativeNetworkAccessManagerFactory=QQmlNetworkAccessManagerFactory -DQDeclarativeNotifier=QQmlNotifier -DQDeclarativeNullableValue=QQmlNullableValue -DQDeclarativeNumberAnimation=QQuickNumberAnimation -DQDeclarativeOpenMetaObject=QQmlOpenMetaObject -DQDeclarativeOpenMetaObjectType=QQmlOpenMetaObjectType -DQDeclarativePackage=QQuickPackage -DQDeclarativeParser=QQmlParser -DQDeclarativeParserStatus=QQmlParserStatus -DQDeclarativePath=QQuickPath -DQDeclarativePathArc=QQuickPathArc -DQDeclarativePathAttribute=QQuickPathAttribute -DQDeclarativePathCatmullRomCurve=QQuickPathCatmullRomCurve -DQDeclarativePathCubic=QQuickPathCubic -DQDeclarativePathElement=QQuickPathElement -DQDeclarativePathInterpolator=QQuickPathInterpolator -DQDeclarativePathLine=QQuickPathLine -DQDeclarativePathPercent=QQuickPathPercent -DQDecl
arativePathQuad=QQuickPathQuad -DQDeclarativePathSvg=QQuickPathSvg -DQDeclarativePauseAnimation=QQuickPauseAnimation -DQDeclarativePixmap=QQuickPixmap -DQDeclarativePointFValueType=QQmlPointFValueType -DQDeclarativePointValueType=QQmlPointValueType -DQDeclarativePool=QQmlPool -DQDeclarativePrivate=QQmlPrivate -DQDeclarativeProperty=QQmlProperty -DQDeclarativePropertyAnimation=QQuickPropertyAnimation -DQDeclarativePropertyCache=QQmlPropertyCache -DQDeclarativePropertyChanges=QQuickPropertyChanges -DQDeclarativePropertyMap=QQmlPropertyMap -DQDeclarativePropertyPrivate=QQmlPropertyPrivate -DQDeclarativePropertyValueInterceptor=QQmlPropertyValueInterceptor -DQDeclarativePropertyValueSource=QQmlPropertyValueSource -DQDeclarativeQmldirData=QQmlQmldirData -DQDeclarativeQtQuick1Module=QQmlQtQuick1Module -DQDeclarativeQtQuick2Module=QQmlQtQuick2Module -DQDeclarativeQuaternionValueType=QQmlQuaternionValueType -DQDeclarativeRectFValueType=QQmlRectFValueType -DQDeclarativeRectValueType=QQmlRectValueType -DQDeclarativeRewrite=QQmlRewrite -DQDeclarativeRotationAnimation=QQuickRotationAnimation -DQDeclarativeScript=QQmlScript -DQDeclarativeScriptAction=QQuickScriptAction -DQDeclarativeScriptBlob=QQmlScriptBlob -DQDeclarativeStringConverters=QQmlStringConverters -DQDeclarativeScriptData=QQmlScriptData -DQDeclarativeScriptString=QQmlScriptString -DQDeclarativeSizeFValueType=QQmlSizeFValueType -DQDeclarativeSizeValueType=QQmlSizeValueType -DQDeclarativeSmoothedAnimation=QQuickSmoothedAnimation -DQDeclarativeSpringAnimation=QQuickSpringAnimation -DQDeclarativeState=QQuickState -DQDeclarativeStateChangeScript=QQuickStateChangeScript -DQDeclarativeStateGroup=QQuickStateGroup -DQDeclarativeStateOperation=QQuickStateOperation -DQDeclarativeStyledText=QQuickStyledText -DQDeclarativeStyledTextImgTag=QQuickStyledTextImgTag -DQDeclarativeSvgParser=QQmlSvgParser -DQDeclarativeSystemPalette=QQuickSystemPalette -DQDeclarativeTextureFactory=QQuickTextureFactory -DQDeclarativeTimeLine=QQuickTimeLine -DQDeclarativeTimeLineCallback=QQuickTimeLineCallback -DQDeclarativeTimeLineObject=QQuickTimeLineObject -DQDeclarativeTimeLineValue=QQuickTimeLineValue -DQDeclarativeTimer=QQuickTimer -DQDeclarativeTransition=QQuickTransition -DQDeclarativeTransitionManager=QQuickTransitionManager -DQDeclarativeType=QQmlType -DQDeclarativeTypeData=QQmlTypeData -DQDeclarativeTypeLoader=QQmlTypeLoader -DQDeclarativeTypesExtensionInterface=QQmlTypesExtensionInterface -DQDeclarativeV8Function=QQmlV8Function -DQDeclarativeValueType=QQmlValueType -DQDeclarativeValueTypeFactory=QQmlValueTypeFactory -DQDeclarativeVector2DValueType=QQmlVector2DValueType -
DQDeclarativeVector3dAnimation=QQuickVector3dAnimation -DQDeclarativeVector3DValueType=QQmlVector3DValueType -DQDeclarativeVector4DValueType=QQmlVector4DValueType -DQDeclarativeVME=QQmlVME -DQDeclarativeVMEMetaObject=QQmlVMEMetaObject -DQDeclarativeVMETypes=QQmlVMETypes -DQDeclarativeWorkerScript=QQuickWorkerScript -DQDeclarativeXmlListModel=QQuickXmlListModel -DQT_QML_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DV8_SHARED -DUSING_V8_SHARED -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\..\..\..\qtbase\include\QtCore\5.0.0" -I"..\..\..\..\..\qtbase\include\QtCore\5.0.0\QtCore" -I"..\..\..\..\..\qtbase\include\QtCore" -I"..\..\..\..\..\qtjsbackend\include\QtV8\5.0.0" -I"..\..\..\..\..\qtjsbackend\include\QtV8\5.0.0\QtV8" -I"..\..\..\..\..\qtjsbackend\include\QtV8" -I"..\..\..\..\..\qtbase\include\QtGui\5.0.0" -I"..\..\..\..\..\qtbase\include\QtGui\5.0.0\QtGui" -I"..\..\..\..\..\qtbase\include\QtGui" -I"..\..\..\..\..\qtbase\include\QtNetwork" -I"..\..\..\..\..\qtxmlpatterns\include" -I"..\..\..\..\..\qtxmlpatterns\include\QtXmlPatterns" -I"..\..\..\..\include\QtQml\5.0.0" -I"..\..\..\..\include\QtQml\5.0.0\QtQml" -I"..\..\..\..\include" -I"..\..\..\..\include\QtQml" -I"..\..\..\..\include\QtDeclarative\5.0.0" -I"..\..\..\..\include\QtDeclarative\5.0.0\QtDeclarative" -I"..\..\..\..\include\QtDeclarative" -I"..\..\..\..\include\QtQuick\5.0.0" -I"..\..\..\..\include\QtQuick\5.0.0\QtQuick" -I"..\..\..\..\include\QtQuick" -I"..\..\..\..\..\qtbase\include" -I"." -I"..\shared" -I"tmp\moc\release_shared" -I"..\..\..\..\..\qtbase\mkspecs\win32-g++" -o tmp\obj\release_shared\qtquick2plugin.o qtquick2plugin.cpp
输入行太长。


(http://topic.csdn.net/t/20060526/08/4779750.html 换目录f:\qt-mingw解决不了)

-----------------------------------------------------Mingw 完-------------------------------------------


Vs 一个半小时

----------------------------------------------------vs 2008----------------------------------------------

F:\beyond\qt-everywhere-opensource-src-5.0.0-alpha-vs> SET PATH=%PATH%;c:\Python27

# 打开VS命令行

F:\beyond\qt-everywhere-opensource-src-5.0.0-alpha-vs> configure -opensource -confirm-license -nomake tests -prefix %CD%\qtbase

F:\beyond\qt-everywhere-opensource-src-5.0.0-alpha-vs> perl build

睡觉等结果(%CD%\qtbase\bin And lib)

---------------------------------------------------vs 2008 END--------------------------------------


感概商用的vs 还是要比g++舒服点..


QtWebkit build http://topic.csdn.net/u/20111127/22/a401603b-388f-42aa-9332-d159b67e998f.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值