qt 4.8.5 vs 2012编译

  1. Download Qt 4.8.3 source code from http://qt-project.org/downloads

  2. Go to mkspecs\win32-msvc2010. Open qmake.conf and change:

    QMAKE_COMPILER_DEFINES  += _MSC_VER=1600 WIN32

    to:

    QMAKE_COMPILER_DEFINES  += _MSC_VER=1700 WIN32
  3. Replace qt-everywhere-opensource-src-4.8.3-x64\src\3rdparty\webkit\Source\JavaScriptCore\wtf\HashSet.h by this HashSet.h.

  4. Start "VS2012 x64 or X86 Native Tools Command Prompt"

  5. Switch to Qt 4.8.3 source directory (the directory that contains configure.exe) Configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2012

  6. nmake
  7.   platform\DefaultLocalizationStrategy.cpp(327) : error C2001: newline in constant
         platform\DefaultLocalizationStrategy.cpp(327) : fatal error C1057: unexpected end of file in macro expansion    
  8. go to line 327 change "return WEB_UI_STRING("Look Up “<ion>”", "Look Up context menu item with ed word").replace("<ion>", dStringForLookupMenuItem(edString));"  to "return WEB_UI_STRING("Look Up \"<selection>\"", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));"
  9. nmake

转载于:https://www.cnblogs.com/cloudseawang/p/3483156.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值