Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problems Building a static Qt for Windows using MinGW

Problems Building a static Qt for Windows using MinGW

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 490 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.
  • F Offline
    F Offline
    flowgeek
    wrote on last edited by
    #1

    hi all,

    i'm trying to build a static Qt for Windows using MinGW following the wiki here: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW

    it fails with the following message:

    CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:475 (message):
      Unable to build syncqt: Change Dir:
      D:/Qt/Static/src/qt-everywhere-src-6.5.1/qtbase/src/tools/syncqt/configure_time_bins
    
    Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe && [1/1] Linking CXX
      executable D:\Qt\Static\src\qt-everywhere-src-6.5.1\qtbase\bin\syncqt.exe
    
      FAILED: D:/Qt/Static/src/qt-everywhere-src-6.5.1/qtbase/bin/syncqt.exe
    
      cmd.exe /C "cd .  && C:\Strawberry\c\bin\c++.exe -O2 -g -DNDEBUG
      CMakeFiles/syncqt.dir/main.cpp.obj -o
      D:\Qt\Static\src\qt-everywhere-src-6.5.1\qtbase\bin\syncqt.exe
      -Wl,--out-implib,libsyncqt.dll.a
      -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32
      -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
      -ladvapi32 && cd ."
    

    followed by tons of error messages on undefined references (which is probably due to the failure of synchqt?)

    what am i doing wrong here?!?

    thanks
    alex

    F 1 Reply Last reply
    0
    • F flowgeek

      hi all,

      i'm trying to build a static Qt for Windows using MinGW following the wiki here: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW

      it fails with the following message:

      CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:475 (message):
        Unable to build syncqt: Change Dir:
        D:/Qt/Static/src/qt-everywhere-src-6.5.1/qtbase/src/tools/syncqt/configure_time_bins
      
      Run Build Command(s):C:/Qt/Tools/Ninja/ninja.exe && [1/1] Linking CXX
        executable D:\Qt\Static\src\qt-everywhere-src-6.5.1\qtbase\bin\syncqt.exe
      
        FAILED: D:/Qt/Static/src/qt-everywhere-src-6.5.1/qtbase/bin/syncqt.exe
      
        cmd.exe /C "cd .  && C:\Strawberry\c\bin\c++.exe -O2 -g -DNDEBUG
        CMakeFiles/syncqt.dir/main.cpp.obj -o
        D:\Qt\Static\src\qt-everywhere-src-6.5.1\qtbase\bin\syncqt.exe
        -Wl,--out-implib,libsyncqt.dll.a
        -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32
        -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
        -ladvapi32 && cd ."
      

      followed by tons of error messages on undefined references (which is probably due to the failure of synchqt?)

      what am i doing wrong here?!?

      thanks
      alex

      F Offline
      F Offline
      flowgeek
      wrote on last edited by
      #2

      @flowgeek ...getting some slow progress - step by step ;-)
      problem was a PATH variable set in windows: C:\Strawberry\c\bin

      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 Extensions
      • Unsolved