mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.3k stars 117 forks source link

[CMake] build fails when kms_launch_fix.diff is applied / fatal error: private/qeglfsintegration_p.h: No such file or directory #911

Open SupervisedThinking opened 3 years ago

SupervisedThinking commented 3 years ago

The issue

To fix https://github.com/mmatyas/pegasus-frontend/issues/800 I still need this patch https://github.com/mmatyas/pegasus-frontend/issues/800#issuecomment-782184324 but although https://github.com/mmatyas/pegasus-frontend/commit/fff1a5b2390aaa195d644b651e54c27c2a9b8a1d builds fine when I switch to CMake the EGLFS bug occurs & I when I apply the patch the build fails, when I use make/qmake it builds & works fine.

Build log:

UNPACK      pegasus-frontend
    APPLY PATCH (common)      packages/supervisedthinking/emulation/frontends/Pegasus-Frontend/pegasus-frontend/patches/test.patch
patching file src/backend/ProcessLauncher.cpp
patching file src/backend/backend.pro
BUILD      pegasus-frontend (target)
    TOOLCHAIN      cmake (auto-detect)
Executing (target): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/etc/cmake-armv8a-libreelec-linux-gnueabihf.conf -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPEGASUS_USE_SDL2_POWER=off /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d
-- The CXX compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SDL2: /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include;/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/SDL2
╭──────────────────────────────────────── Backend Settings ╮
│ Power management: Linux                                  │
│ Battery info: Disabled                                   │
│ Gamepad implementation: SDL2                             │
│ Animated PNG support: OFF                                │
│ Third-party data sources:                                │
│   - EmulationStation                                     │
│   - Logiqx                                               │
│   - Skraper                                              │
╰──────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────── App Settings ╮
│ Build type: Release                                      │
│ Git revision: alpha15-85-gfff1a5b2-dirty                 │
│ Git date: 2021-10-04                                     │
│ Link to static stdc++: OFF                               │
│ Allow link-time optimizations: ON                        │
│ Deployment paths:                                        │
│   Binaries:          /usr/bin                            │
│   License/Readme:    /usr/share/doc/pegasus-frontend     │
│   X11 icons:         /usr/share/icons/hicolor            │
│   X11 desktop file:  /usr/share/applications             │
│   X11 AppStream:     /usr/share/metainfo                 │
╰──────────────────────────────────────────────────────────╯
-- Configuring done
-- Generating done
-- Build files have been written to: /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf
Executing (target): ninja 
[73/382] Generating pegasus_bs.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_bs.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[74/382] Generating pegasus_de.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_de.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[75/382] Generating pegasus_ar.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_ar.qm'...
    Generated 83 translation(s) (74 finished and 9 unfinished)
    Ignored 1 untranslated source text(s)
[76/382] Generating pegasus_en-GB.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_en-GB.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[77/382] Generating pegasus_es.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_es.qm'...
    Generated 47 translation(s) (19 finished and 28 unfinished)
    Ignored 37 untranslated source text(s)
[78/382] Generating pegasus_fr.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_fr.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[79/382] Generating pegasus_hu.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_hu.qm'...
    Generated 94 translation(s) (94 finished and 0 unfinished)
[80/382] Generating pegasus_ja.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_ja.qm'...
    Generated 84 translation(s) (84 finished and 0 unfinished)
[81/382] Generating pegasus_ko.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_ko.qm'...
    Generated 69 translation(s) (68 finished and 1 unfinished)
    Ignored 15 untranslated source text(s)
[82/382] Generating pegasus_lt.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_lt.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[84/382] Generating pegasus_nl.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_nl.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[87/382] Generating pegasus_pt-BR.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_pt-BR.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[88/382] Generating pegasus_ru.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_ru.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[89/382] Generating pegasus_zh-TW.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_zh-TW.qm'...
    Generated 83 translation(s) (83 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[90/382] Generating pegasus_zh.qm
Updating '/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/app/pegasus_zh.qm'...
    Generated 79 translation(s) (79 finished and 0 unfinished)
    Ignored 5 untranslated source text(s)
[178/382] Building CXX object thirdparty...ProxyModel.dir/filters/rangefilter.cpp.o
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp: In member function 'virtual bool qqsfpm::RangeFilter::filterRow(const QModelIndex&, const qqsfpm::QQmlSortFilterProxyModel&) const':
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:133:43: warning: 'bool QVariant::operator<(const QVariant&) const' is deprecated [-Wdeprecated-declarations]
  133 |             (m_minimumInclusive ? value < m_minimumValue : value <= m_minimumValue);
      |                                           ^~~~~~~~~~~~~~
In file included from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/QVariant:1,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.h:5,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:1:
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qvariant.h:467:31: note: declared here
  467 |     QT_DEPRECATED inline bool operator<(const QVariant &v) const
      |                               ^~~~~~~~
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:133:69: warning: 'bool QVariant::operator<=(const QVariant&) const' is deprecated [-Wdeprecated-declarations]
  133 |             (m_minimumInclusive ? value < m_minimumValue : value <= m_minimumValue);
      |                                                                     ^~~~~~~~~~~~~~
In file included from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/QVariant:1,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.h:5,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:1:
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qvariant.h:469:31: note: declared here
  469 |     QT_DEPRECATED inline bool operator<=(const QVariant &v) const
      |                               ^~~~~~~~
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:135:43: warning: 'bool QVariant::operator>(const QVariant&) const' is deprecated [-Wdeprecated-declarations]
  135 |             (m_maximumInclusive ? value > m_maximumValue : value >= m_maximumValue);
      |                                           ^~~~~~~~~~~~~~
In file included from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/QVariant:1,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.h:5,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:1:
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qvariant.h:471:31: note: declared here
  471 |     QT_DEPRECATED inline bool operator>(const QVariant &v) const
      |                               ^~~~~~~~
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:135:69: warning: 'bool QVariant::operator>=(const QVariant&) const' is deprecated [-Wdeprecated-declarations]
  135 |             (m_maximumInclusive ? value > m_maximumValue : value >= m_maximumValue);
      |                                                                     ^~~~~~~~~~~~~~
In file included from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/QVariant:1,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.h:5,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/filters/rangefilter.cpp:1:
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qvariant.h:473:31: note: declared here
  473 |     QT_DEPRECATED inline bool operator>=(const QVariant &v) const
      |                               ^~~~~~~~
[187/382] Building CXX object thirdparty...rProxyModel.dir/sorters/rolesorter.cpp.o
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/sorters/rolesorter.cpp: In member function 'virtual int qqsfpm::RoleSorter::compare(const QModelIndex&, const QModelIndex&, const qqsfpm::QQmlSortFilterProxyModel&) const':
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/sorters/rolesorter.cpp:62:21: warning: 'bool QVariant::operator<(const QVariant&) const' is deprecated [-Wdeprecated-declarations]
   62 |     if (leftValue < rightValue)
      |                     ^~~~~~~~~~
In file included from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qabstractitemmodel.h:43,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qabstractproxymodel.h:43,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qsortfilterproxymodel.h:43,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/QSortFilterProxyModel:1,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/qqmlsortfilterproxymodel.h:4,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/sorters/rolesorter.cpp:2:
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qvariant.h:467:31: note: declared here
  467 |     QT_DEPRECATED inline bool operator<(const QVariant &v) const
      |                               ^~~~~~~~
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/sorters/rolesorter.cpp:64:21: warning: 'bool QVariant::operator>(const QVariant&) const' is deprecated [-Wdeprecated-declarations]
   64 |     if (leftValue > rightValue)
      |                     ^~~~~~~~~~
In file included from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qabstractitemmodel.h:43,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qabstractproxymodel.h:43,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qsortfilterproxymodel.h:43,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/QSortFilterProxyModel:1,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/qqmlsortfilterproxymodel.h:4,
                 from /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel/sorters/rolesorter.cpp:2:
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore/qvariant.h:471:31: note: declared here
  471 |     QT_DEPRECATED inline bool operator>(const QVariant &v) const
      |                               ^~~~~~~~
[234/382] Building CXX object src/backen...egasus-backend.dir/ProcessLauncher.cpp.o
FAILED: src/backend/CMakeFiles/pegasus-backend.dir/ProcessLauncher.cpp.o 
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-g++ -DGIT_DATE=\"2021-10-04\" -DGIT_REVISION=\"alpha15-85-gfff1a5b2-dirty\" -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00 -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_PROCESS_COMBINED_ARGUMENT_START -DQT_NO_URL_CAST_FROM_STRING -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DSDL_MAIN_HANDLED -DWITH_COMPAT_ES2 -DWITH_COMPAT_LOGIQX -DWITH_COMPAT_SKRAPER -DWITH_SDL_GAMEPAD -I/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/backend -I/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/src/backend -I/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/.armv8a-libreelec-linux-gnueabihf/src/backend/pegasus-backend_autogen/include -I/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty -I/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/SDL2 -I/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/thirdparty/SortFilterProxyModel -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtQml -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtNetwork -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtCore -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/../../../mkspecs/devices/linux-libreelec-g++ -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtQuick -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtGui -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtQmlModels -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtMultimedia -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtSql -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtSvg -isystem /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/QtWidgets -march=armv8-a+crc -mtune=cortex-a73.cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mfloat-abi=hard -mfpu=neon-fp-armv8 -Wall -pipe  -O2 -fomit-frame-pointer -DNDEBUG -O3 -DNDEBUG -flto -fno-fat-lto-objects -Wall -Wextra -pedantic -fPIC -std=c++17 -MD -MT src/backend/CMakeFiles/pegasus-backend.dir/ProcessLauncher.cpp.o -MF src/backend/CMakeFiles/pegasus-backend.dir/ProcessLauncher.cpp.o.d -o src/backend/CMakeFiles/pegasus-backend.dir/ProcessLauncher.cpp.o -c /build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/src/backend/ProcessLauncher.cpp
/build/LibreELEC-RR/build.LibreELEC-AMLG12B.arm-11.0-devel/build/pegasus-frontend-fff1a5b2390aaa195d644b651e54c27c2a9b8a1d/src/backend/ProcessLauncher.cpp:37:10: fatal error: private/qeglfsintegration_p.h: No such file or directory
   37 | #include <private/qeglfsintegration_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[237/382] Building CXX object src/backen...s-backend.dir/platform/TerminalKbd.cpp.o
ninja: build stopped: subcommand failed.
FAILURE: scripts/build pegasus-frontend during make_target (default)
*********** FAILED COMMAND ***********
ninja ${NINJA_OPTS} ${PKG_MAKE_OPTS_TARGET}
**************************************

System info

History of packages:

https://github.com/SupervisedThinking/LibreELEC-RR/commits/master-rr/packages/supervisedthinking/emulation/frontends/Pegasus-Frontend/pegasus-frontend/package.mk

Pegasus version

https://github.com/mmatyas/pegasus-frontend/releases/tag/continuous

mmatyas commented 3 years ago

Yeah, CMake for the Pi 4 is not too well tested yet. In this case, private/qeglfsintegration_p.h is a Qt internal header, so you might need to explicitly tell its path to the compiler. You'll also need to link to some of the internal Qt libraries, like the QMake part of the Pi 4 patch does, though CMake might handle this for you.

SupervisedThinking commented 3 years ago

Well normally CMake should use the cmake conf files similiar to pkgconfig & pick up the headers needed for includes? Beside that your "RPi" patch isn't exactly a patch limited to the RPi 😃 I use (need) it for Rockchip & Amlogic devices too which use GBM/EGLFS + Qt so fixing this / adding this to your CMake build would help to use your frontend on plenty of boards.

I've google a bit & checked my toolchain has a file in (...)/sysroot/usr/lib/cmake/Qt5EglFSDeviceIntegration/Qt5EglFSDeviceIntegrationConfig.cmake & this one contains the include paths to private/qeglfsintegration_p.h or to be precise to the top dir of the headers. But fixing CMake is way out of my skills 🙈