QtCreator Bug: No valid Qt versions found / Failed to detect the ABI (only Static compile)

在Windows上使用MinGW或MSVC 2008/2010编译的Qt 4.7.4静态版本在Qt Creator中出现“无法检测到ABI”警告。当尝试打开.pro文件时,显示'没有找到有效的Qt版本'。修复了此问题,使得Qt Creator能够正确识别静态编译的MingW库。

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: P2: Important P2: Important
  • Resolution: Done
  • Affects Version/s: Qt Creator 2.2.0-rc1 (3)
    , Qt Creator 2.2.0 , Qt Creator 2.3.0 (current master) , Qt Creator 2.4.0
  • Component/s: Other
  • Labels:
    None
  • Environment:

    Win XP/7 (win32/Win64) MinGW or MSVC 2008/2010

  • Changes:
    fcf82b74b650238e4bdcda19fe45833e7a2b0e74

Description

Qt4.7.4/4.8(static version only) compiled by different compilers minGW and VC++ successfully.
but after I tried to add in QtCreator (2.1(SDK) or later compiled from Git Repository, All of them shows warning: "Failed to detect the ABI(s) used by the Qt version."
When opening a .pro file, Creator shows: "No valid Qt versions found"
####
QMake -query
QT_INSTALL_PREFIX:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static
QT_INSTALL_DATA:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static
QT_INSTALL_DOCS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/doc
QT_INSTALL_HEADERS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/include
QT_INSTALL_LIBS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/lib
QT_INSTALL_BINS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/bin
QT_INSTALL_PLUGINS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/plugins
QT_INSTALL_IMPORTS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/imports
QT_INSTALL_TRANSLATIONS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/translations
QT_INSTALL_CONFIGURATION:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static
QT_INSTALL_EXAMPLES:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/examples
QT_INSTALL_DEMOS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/demos
QMAKE_MKSPECS:C:/QtSDK/Desktop/Qt/4.7.4/msvc2008-static/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.7.4
#######################################################
Sample detail of How I configured Static Build:
– Modified MKSPECS/win32-msvc2008/qmake.conf
DEFINES += UNICODE WIN32 QT_LARGEFILE_SUPPORT QT_STATIC_BUILD
QMAKE_CFLAGS_RELEASE = -O1 -GL -MD
QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO /LTCG
– Modfied /src/3rdparty/webkit/WebKit.pri
CONFIG += staticlib
– Modfied qmake/Makefile.win32
LFLAGS = -static

using Visual Studio Command Prompt + JOM + OpenSSL Paths added to Command Prompt
configure.exe -static -release -opensource -confirm-license -platform win32-msvc2008 -no-qt3support -webkit -qt-sql-sqlite -qt-zlib -qt-libpng -qt-libjpeg -qt-libtiff

bin/qmake.exe projects.pro QT_BUILD_PARTS="libs" JAVASCRIPTCORE_JIT="yes"

../jom/jom.exe -j 4
#######################################################
Also I attached files listing of QT_INSTALL_LIBS and QT_INSTALL_BINS (as shown in Qmake query == same as the path I configured to installed )

all QtCore files are available except QtCore4D!!!! ?
Thanks in advance

  1. 4.7.2.rar
    05/May/11 6:21 PM
    992 kB
    Majid Hatami
  2. 4.7.4.rar
    05/May/11 6:21 PM
    874 kB
    Majid Hatami
  3. QtStaticDirectoryListing.txt
    04/May/11 6:59 PM
    6 kB
    Majid Hatami
  1. BinDirectoryListing.png
    177 kB
    04/May/11 5:44 PM
  2. Qt 4.7.4-Creator2.2.81.png
    192 kB
    04/May/11 2:14 PM
  3. Qt 4.7.4-Creator2.2.png
    147 kB
    04/May/11 2:14 PM

Activity

Hide
Tobias Hunger submitted changeset f90a4d2ee1632c106ee6f19dd3f5e2c7dd550bcd to QtCreator (1 file) - 06/May/11 5:56 PM

Fix ABI detection of static mingw libraries on windows
Task-number: QTCREATORBUG-4771
(cherry picked from commit fcf82b74b650238e4bdcda19fe45833e7a2b0e74)

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4771

 

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4212

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值