Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72585

Building 5.12.0 from source: Fatal Error - no such file or directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.0
    • Build System
    • None
    • Windows 10, mingw-w64
    • Windows

      Similar behavior to previously discussed issue Qt / QTBUG-68502.  At conclusion of that thread, community was challenged:  "i'll make it 'easy' for you: this isn't a qt bug. prove the opposite".  I won't go there - I'll just report the behavior, which happened more than once for my build.  FWIW, after making changes like reported below, version 5.12.0 (as with version 5.11.0 before it) works just fine.

      Here is snip from the build process using mingw-w64 (x86_64-7.2.0-posix-seh-rt_v5-rev1)

       
      ********************************************
      Summary make actions, from make output below
      ********************************************

      working in directory:
      $SRC$/qtbase/src/plugins/platforms/windows
      
      compiling file:
      qwindowsintegration.cpp
      
      include file:
      <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h>
      
      Looking in directory:
      $SRC$/qtbase/include/QtEventDispatcherSupport/5.12.0
      
      found file:
      $SRC$/qtbase/include/QtEventDispatcherSupport/5.12.0/QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h
      
      tries to include:
      #include "../../../../../src/platformsupport/eventdispatchers/qwindowsguieventdispatcher_p.h"
      
      which doesn't exist with starting point:
      $SRC$/qtbase/src/plugins/platforms/windows
      
      However, deleting one "parent" level, this file *does* exist:
      #include "../../../../src/platformsupport/eventdispatchers/qwindowsguieventdispatcher_p.h"
      

      ************************************************
      The following is from the output of mingw32-make
      ************************************************

      mingw32-make[6]: Entering directory '$SRC$/qtbase/src/plugins/platforms/windows'
      
      g++ -c -fno-keep-inline-dllexport -g -Og -std=c++1z -fno-exceptions
      -Wall
      -W
      -Wextra
      -Wvla
      -Wdate-time
      -Wshift-overflow=2
      -Wduplicated-cond
      -Wno-stringop-overflow
      -DUNICODE
      -D_UNICODE
      -DWIN32
      -DMINGW_HAS_SECURE_API=1
      -DWINVER=0x0601
      -D_WIN32_WINNT=0x0601
      -DQT_NO_CAST_FROM_ASCII
      -DQT_NO_FOREACH
      -DLIBEGL_NAME=libEGL
      -DLIBGLESV2_NAME=libGLESv2
      -DQT_DEPRECATED_WARNINGS
      -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
      -DQT_NO_EXCEPTIONS
      -DQT_PLUGIN
      -DQT_EVENTDISPATCHER_SUPPORT_LIB
      -DQT_FONTDATABASE_SUPPORT_LIB
      -DQT_THEME_SUPPORT_LIB
      -DQT_ACCESSIBILITY_SUPPORT_LIB
      -DQT_WINDOWSUIAUTOMATION_SUPPORT_LIB
      -DQT_GUI_LIB
      -DQT_CORE_LIB
      -I.
      -I.
      -I..\..\..\3rdparty\wintab
      -I..\..\..\..\include
      -I..\..\..\..\include\QtEventDispatcherSupport
      -I..\..\..\..\include\QtEventDispatcherSupport\5.12.0
      -I..\..\..\..\include\QtEventDispatcherSupport\5.12.0\QtEventDispatcherSupport
      -I..\..\..\..\include\QtFontDatabaseSupport
      -I..\..\..\..\include\QtFontDatabaseSupport\5.12.0
      -I..\..\..\..\include\QtFontDatabaseSupport\5.12.0\QtFontDatabaseSupport
      -I..\..\..\..\include\QtThemeSupport
      -I..\..\..\..\include\QtThemeSupport\5.12.0
      -I..\..\..\..\include\QtThemeSupport\5.12.0\QtThemeSupport
      -I..\..\..\..\include\QtAccessibilitySupport
      -I..\..\..\..\include\QtAccessibilitySupport\5.12.0
      -I..\..\..\..\include\QtAccessibilitySupport\5.12.0\QtAccessibilitySupport
      -I..\..\..\..\include\QtWindowsUIAutomationSupport
      -I..\..\..\..\include\QtWindowsUIAutomationSupport\5.12.0
      -I..\..\..\..\include\QtWindowsUIAutomationSupport\5.12.0\QtWindowsUIAutomationSupport
      -I..\..\..\..\include\QtGui\5.12.0
      -I..\..\..\..\include\QtGui\5.12.0\QtGui
      -I..\..\..\..\include\QtGui
      -I..\..\..\..\include\QtCore\5.12.0
      -I..\..\..\..\include\QtCore\5.12.0\QtCore
      -I..\..\..\..\include\QtCore
      -I.moc\debug
      -I..\..\..\..\mkspecs\win32-g++
       -o .obj\debug\qwindowsintegration.o qwindowsintegration.cpp
      
      
      In file included from qwindowsintegration.cpp:77:0:
      ..\..\..\..\include\QtEventDispatcherSupport\5.12.0/QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h:1:10: fatal error: ../../../../../src/platformsupport/eventdispatchers/qwindowsguieventdispatcher_p.h: No such file or directory
       #include "../../../../../src/platformsupport/eventdispatchers/qwindowsguieventdispatcher_p.h"
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            mhkelley2017 Michael Kelley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes