Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build Qt 5.4 from source failed
Qt 6.12 LTS is out! See what's new in the release blog

Build Qt 5.4 from source failed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 378 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ElenaSuh
    wrote on last edited by
    #1

    Hello,
    Can I ask some questions about build Qt from source?

    What I want to do now is build Qt from source (ver 5.4.1) with 'shared' option.
    Under windows 10, visual studio 2013 condition, and want to build Qt as 32 bit.
    I know it is quite an old version, but while upgrading Qt, I still need 5.4.1

    First I wrote qt5vars.cmd as below

    CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
    SET _ROOT=C:\Qt\Qt5.4.1\5.4\Src
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
    SET _ROOT=

    and I changed options below in the Src\qtbase\mkspecs\win32-msvc2013\qmake.conf as MD and MDd

    QMAKE_CFLAGS_RELEASE = -O2 -MD -Zc:strictStrings
    QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi -Zc:strictStrings
    QMAKE_CFLAGS_DEBUG = -Zi -MDd

    after that,

    I ran VS2013 x86 Native Tools Command Prompt as an administrator.

    I ran qt5vars.cmd,

    and then did configuration as below.

    configure.bat -top-level -shared -debug-and-release -platform win32-msvc2013 -nomake examples -nomake tests -mp -opengl desktop -prefix D:\JESuh\Work\SW\Qt\build\test

    And then it shows me the following sentences and stop the configuration.

    Qt: Untested Windows version 10.0 detected!
    This is the Qt

    then it just finished without any information.

    I installed
    ActivePerl 5.26.3
    python 3.7.6 32bit, add environmental variables.
    Also added path of gnuwin32 to environmental variables.

    Do I need something else? or did I used wrong option?

    Thank you in advance!

    Best wishes,
    JESuh

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved