Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems Building Qt from source

Problems Building Qt from source

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 405 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.
  • MDCatoM Offline
    MDCatoM Offline
    MDCato
    wrote on last edited by
    #1

    I am trying to build Qt 5.12.9 from source using MinGW (7.3.0) on Windows 10 and I keep getting the same error over and over again. I was wondering if someone could tell me why I might be getting this error:

    configure.bat -release -no-pch -optimize-size -opengl desktop -platform win32-g++ -prefix "C:\Qt\Static\5.12.9"  -skip qtactiveqt -skip qtdeclarative -skip qtwebglplugin -skip qtspeech -skip webengine -skip location  -nomake tools -nomake tests -nomake examples
    
    
    /qtbase/src/corelib/global/qlogging.cpp:1902:43: error: 'STATUS_FATAL_APP_EXIT' was not declared in this scope
         TerminateProcess(GetCurrentProcess(), STATUS_FATAL_APP_EXIT);
                                               ^
    Makefile:517: recipe for target 'qlogging.o' failed
    mingw32-make: *** [qlogging.o] Error 1
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      STATUS_FATAL_APP_EXIT is a windows define. Looks like your WinAPI headers are out of date. Make sure MinGW is fetching the correct ones. The define is in ntstatus.h

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      4
      • MDCatoM Offline
        MDCatoM Offline
        MDCato
        wrote on last edited by
        #3

        Okay so that got me going in the correct direction, My headers were actually okay, but I was not running the commands the right way. I was using a standard old cmd.exe, which appeared to have gcc.exe configured in the path, alone with g++.exe and mingw32-make.exe, except for some reason the "\bin" directory was not in the PATH variable somehow. I assumed that it was because it found gcc.exe, and I was wrong (still not sure how I was wrong with that logic).

        TL;DR there is a "mingw-w64.bat" in the PROGFIL~1 directory that you need to execute (which sets the PATH) and then run the configure.bat command inside that window that pops up.

        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