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. MSYS2 Compile QT with makepkg-mingw "No such file or directory" for several files
Forum Updated to NodeBB v4.3 + New Features

MSYS2 Compile QT with makepkg-mingw "No such file or directory" for several files

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 565 Views 2 Watching
  • 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.
  • R Offline
    R Offline
    rXpSwiss
    wrote on last edited by rXpSwiss
    #1

    Hi,

    I am trying to make QT work with mingw64 (through msys2) and I followed this guide : https://wiki.qt.io/MSYS2
    Everything is working fine until I compile it with makepkg-mingw -fsiL I get a No such file or directory after a long while.
    Of course not only this file has this error :

    g++ -c -fno-keep-inline-dllexport -O2 -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_NO_DEBUG -DQT_PLUGIN -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB -DQT_THEME_SUPPORT_LIB -DQT_ACCESSIBILITY_SUPPORT_LIB -DQT_VULKAN_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.4 -I../../../../include/QtEventDispatcherSupport/5.12.4/QtEventDispatcherSupport -I../../../../include/QtFontDatabaseSupport -I../../../../include/QtFontDatabaseSupport/5.12.4 -I../../../../include/QtFontDatabaseSupport/5.12.4/QtFontDatabaseSupport -I../../../../include/QtThemeSupport -I../../../../include/QtThemeSupport/5.12.4 -I../../../../include/QtThemeSupport/5.12.4/QtThemeSupport -I../../../../include/QtAccessibilitySupport -I../../../../include/QtAccessibilitySupport/5.12.4 -I../../../../include/QtAccessibilitySupport/5.12.4/QtAccessibilitySupport -I../../../../include/QtVulkanSupport -I../../../../include/QtVulkanSupport/5.12.4 -I../../../../include/QtVulkanSupport/5.12.4/QtVulkanSupport -I../../../../include/QtWindowsUIAutomationSupport -I../../../../include/QtWindowsUIAutomationSupport/5.12.4 -I../../../../include/QtWindowsUIAutomationSupport/5.12.4/QtWindowsUIAutomationSupport -I../../../../include/QtGui/5.12.4 -I../../../../include/QtGui/5.12.4/QtGui -I../../../../include/QtGui -I../../../../include/QtCore/5.12.4 -I../../../../include/QtCore/5.12.4/QtCore -I../../../../include/QtCore -I.moc/release -isystem D:/msys64/mingw64/include/mariadb -I../../../../mkspecs/win32-g++  -o .obj/release/qwindowscontext.o qwindowscontext.cpp
    In file included from qwindowsintegration.cpp:77:
    ../../../../include/QtEventDispatcherSupport/5.12.4/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"
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[6]: *** [Makefile.Debug:3269: .obj/debug/qwindowsintegration.o] Error 1
    

    I put the log (as much as the msys console can show) in this file :
    https://raw.githubusercontent.com/rXp/Pastbin/master/QT_COMPILE_ERROR_MSYS2_64.txt

    Since I just copied pasted it all, it was too big for website like pastebin.

    Did I do something wrong ? Do I need to change something ?

    Thanks for the help,

    rXp

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Just in case, if it's only a question of MinGW 64, the latest pre-built release of Qt provides it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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