QT5.0.1 from GIT configure fails for Window8



  • Here is my build.bat:
    REM start of batch file…
    PATH=%PATH%;C:\QT5\qtbase\gnuwin32\bin;C:\QT5\qtbase\bin
    REM This is for OpenGL (The openGL version 2.1 and above required )
    c:\qt5\configure -prefix C:\QT5\qtbase -opensource -make-tool jom -platform win32-msvc2010 -icu -I C:\icu\include -L C:\icu\lib64 -nomake examples -nomake tests
    REM Next to call jom command…
    REM end of Batch file…

    Here is the output of configure:

    QMAKESPEC...................win32-msvc2010 (commandline)
    Architecture................x86_64, features: sse sse2
    Host Architecture...........x86_64, features: sse sse2
    Maketool....................jom
    Debug build.................yes (combined)
    Default build...............debug
    Force debug info............no
    C++11 support...............auto
    Link Time Code Generation...no
    Accessibility support.......yes
    RTTI support................yes
    SSE2 support................yes
    SSE3 support................yes
    SSSE3 support...............yes
    SSE4.1 support..............yes
    SSE4.2 support..............yes
    AVX support.................yes
    AVX2 support................no
    NEON support................no
    IWMMXT support..............no
    OpenGL support..............yes
    Large File support..........yes
    NIS support.................no
    Iconv support...............no
    Inotify support.............no
    Glib support................no
    CUPS support................no
    OpenVG support..............no
    OpenSSL support.............no
    Qt D-Bus support............no
    Qt Widgets module support...yes
    QML debugging...............yes
    DirectWrite support.........no
    Use system proxies..........no

    Third Party Libraries:
    ZLIB support............qt
    GIF support.............plugin
    JPEG support............plugin
    PNG support.............yes
    FreeType support........yes

    PCRE support............qt
    ICU support.............yes
    ANGLE...................yes
    

    Styles:
    Windows.................yes
    Windows XP..............yes
    Windows Vista...........yes
    Fusion..................yes
    Windows CE..............no
    Windows Mobile..........no

    Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................plugin (qt)
    SQLite2.................no
    InterBase...............no

    Sources are in..............C:\qt5\qtbase
    Build is done in............C:\qt5\qtbase
    Install prefix..............C:\QT5\qtbase
    Headers installed to........C:\QT5\qtbase\include
    Libraries installed to......C:\QT5\qtbase\lib
    Arch-dep. data to...........C:\QT5\qtbase
    Plugins installed to........C:\QT5\qtbase\plugins
    Library execs installed to..C:\QT5\qtbase\lib
    QML1 imports installed to...C:\QT5\qtbase\imports
    QML2 imports installed to...C:\QT5\qtbase\qml
    Binaries installed to.......C:\QT5\qtbase\bin
    Arch-indep. data to.........C:\QT5\qtbase
    Docs installed to...........C:\QT5\qtbase\doc
    Translations installed to...C:\QT5\qtbase\translations
    Examples installed to.......C:\QT5\qtbase\examples
    Tests installed to..........C:\QT5\qtbase\tests
    Include paths...............C:\icu\include
    Additional libraries........-LC:\icu\lib64

    Generating Visual Studio project files...
    Project WARNING: You should probably load(qt_build_config) first in bootstrap.p
    o for QtBootstrap, as the latter also load()s qt_module.
    Project MESSAGE: Not doing so may lead to qt_module.prf overriding compiler/lin
    er options in your .pro file.
    Project MESSAGE: Ignore this warning with CONFIG+=no_qt_module_warning if you k
    ow what you are doing.
    Project ERROR: Project has no top-level .qmake.conf file.
    Qmake failed, return code 3

    Generating Makefiles...
    *** qtbase/configure exited with non-zero status.


  • Moderators

    Use configure.exe on Windows. Also, if you want to run with OpenGL, pass -opengl desktop to configure.


  • Moderators

    Actually you don't have to add ".exe". Windows has a bad reputation but it's not THAT stupid ;)

    Where is the script run from? Maybe it's a working directory problem? I'm guessing based on the "has no top level .qmake.conf file" message.
    Instead of calling c:\Qt5\configure try to cd to C:\Qt5 and then call configure.

    btw. It's Qt, QT is Apple QuickTime ;)



  • I'm facing the same problem.
    After I successfully build Qt using

    configure -release -opensource -opengl desktop -nomake tests

    then configure always failed with these errors ( I tried serveral configure options):

    Project WARNING: You should probably load(qt_build_config) first in bootstrap.p
    o for QtBootstrap, as the latter also load()s qt_module.
    Project MESSAGE: Not doing so may lead to qt_module.prf overriding compiler/lin
    er options in your .pro file.
    Project MESSAGE: Ignore this warning with CONFIG+=no_qt_module_warning if you k
    ow what you are doing.
    Project ERROR: Project has no top-level .qmake.conf file.
    Qmake failed, return code 3

    Even though I run
    configure -release -opensource -opengl desktop -nomake tests
    again, it also fails.

    My working directory should be correct. I cd to D:\Qt5 then call configure.



  • I found that D:\Qt5.qmake.conf doesn't exists, so I copy one from D:\Qt5\qtbae.qmake.conf
    Then still the same error



  • Add -no-vcproj option,

    configure -debug-and-release -opensource -opengl desktop -nomake tests -no-vcproj

    configure success, but build failed:

    mt.exe : general error c101008d: Failed to write the updated manifest to the res
    ource of file "D:\qt5\qtbase\lib\Qt5V8.dll". R]?n
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\m
    t.exe"' : return code '0x1f'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
    N\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.



  • Finally, I successfully build it using jom.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.