Bug 430424 - make install seems broken for mingw on windows
Summary: make install seems broken for mingw on windows
Status: RESOLVED NOT A BUG
Alias: None
Product: extra-cmake-modules
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.77.0
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: ecm-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-15 12:20 UTC by Mark
Modified: 2020-12-15 17:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2020-12-15 12:20:23 UTC
SUMMARY
Trying to "make install" on windows with MinGW results in:
> Microsoft Windows [Version 10.0.18363.1256]
> (c) 2019 Microsoft Corporation. All rights reserved.

Aka, it does nothing.

Make install executes:
> install: preinstall
> 	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install > the project..."
> 	"C:\Program Files\CMake\bin\cmake.exe" -P cmake_install.cmake
> .PHONY : install

The preinstall executes:
> preinstall: all
>	$(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 preinstall
> .PHONY : preinstall

For whatever reason, that preinstall isn't working.
If i directly execute:
> "C:\Program Files\CMake\bin\cmake.exe" -P cmake_install.cmake

And thus manually do what make install should do then it works as expected.


STEPS TO REPRODUCE
1. Have a Windows 10 x64 with mingw installed (i had the one that came with Qt: mingw81_64)
2. Make sure that your environment variables are set correctly (make --version should show something)
3. Create a "c:\kderoot" folder. Or adjust below accordingly.
4. open a cmd window
5. git clone https://invent.kde.org/frameworks/extra-cmake-modules.git (somewhere)
6. In your extra-cmake-modules git clone dir type: mkdir build && cd build && cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\kderoot;
6. make install

OBSERVED RESULT
> Microsoft Windows [Version 10.0.18363.1256]
> (c) 2019 Microsoft Corporation. All rights reserved.

EXPECTED RESULT
List of files that are installed to the set CMAKE_INSTALL_PREFIX.

SOFTWARE/OS VERSIONS
Windows: 10 x64
Qt Version: 5.15.1 (for mingw)

ADDITIONAL INFORMATION
It would be super helpful if https://api.kde.org/ecm/manual/ecm.7.html would include installation instructions for windows. On linux this is easy, just install it using your package manager and you're done. Windows is.... much more primitive. Which is ironic :)
Comment 1 Hannah von Reth 2020-12-15 12:48:08 UTC
Can't reproduce:

*** Action: unpack for kde/frameworks/extra-cmake-modules ***
*** Action: compile for kde/frameworks/extra-cmake-modules ***
E:\crafts\mingw\dev-utils\bin\ccache.exe True E:\crafts\mingw\dev-utils\bin\ccache.exe
executing command: E:\crafts\mingw\dev-utils\bin\cmake.exe -G Ninja -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=E:/crafts/mingw -DCMAKE_PREFIX_PATH=E:/crafts/mingw -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -S E:\crafts\mingw\build\_\72ca7bf2\extra-cmake-modules
-- Could NOT find Sphinx (missing: Sphinx_BUILD_EXECUTABLE) (Required is at least version "1.2")
-- Found QCollectionGenerator: E:/crafts/mingw/bin/qcollectiongenerator.exe
-- The C compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: E:/crafts/mingw/dev-utils/ccache/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find ReuseTool (missing: REUSETOOL_EXECUTABLE)
-- Found Python3: E:/crafts/mingw/etc/virtualenv/3/Scripts/python.exe (found version "3.7.8") found components: Interpreter
CMake Warning at modules/ECMCheckOutboundLicense.cmake:78 (find_package):
  By not providing "FindReuseTool.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "ReuseTool", but CMake did not find one.

  Could not find a package configuration file provided by "ReuseTool" with
  any of the following names:

    ReuseToolConfig.cmake
    reusetool-config.cmake

  Add the installation prefix of "ReuseTool" to CMAKE_PREFIX_PATH or set
  "ReuseTool_DIR" to a directory containing one of the above files.  If
  "ReuseTool" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  tests/ECMCheckOutboundLicenseTest/CMakeLists.txt:3 (include)


CMake Warning at modules/ECMCheckOutboundLicense.cmake:86 (message):
  Reuse tool not found, skipping test generation
Call Stack (most recent call first):
  tests/ECMCheckOutboundLicenseTest/CMakeLists.txt:3 (include)


-- Skipping execution of outbound license tests.
-- WARNING: skipping tests that require PyQt
-- The following features have been enabled:

 * BUILD_TESTING, Build automated tests.

-- The following OPTIONAL packages have been found:

 * QCollectionGenerator, Qt help collection generator., <https://www.qt.io/>
   Required to build Extra CMake Modules documentation in Qt Help format.
 * Qt5LinguistTools, Qt5 linguist tools., <https://www.qt.io/>
   Required to run tests for the ECMPoQmTools module.
 * Qt5Core, Qt5 core library., <https://www.qt.io/>
   Required to run tests for the ECMQtDeclareLoggingCategory module, and for some tests of the KDEInstallDirs module.
 * Python3
   Required to run tests of module ECMCheckOutboundLicense
 * Qt5Network (required version >= 5.15.1)
 * Qt5Qml (required version >= 5.15.1)
 * Qt5QmlModels (required version >= 5.15.1)
 * Qt5Gui (required version >= 5.15.1)
 * Qt5Quick, Qt5 Quick library., <https://www.qt.io/>
   Required to run tests for the ECMQMLModules module.

-- The following features have been disabled:

 * BUILD_HTML_DOCS, Generate HTML documentation for installed modules.
 * BUILD_MAN_DOCS, Generate man page documentation for installed modules.
 * BUILD_QTHELP_DOCS, Generate QtHelp documentation for installed modules.
 * SPDX_LICENSE_TESTING, Automatic license testing based on SPDX definitions (requires reuse tool)

-- The following OPTIONAL packages have not been found:

 * Sphinx (required version >= 1.2), Tool to generate documentation., <https://www.sphinx-doc.org/>
   Required to build documentation for Extra CMake Modules.
 * ReuseTool
   Required to run tests of module ECMCheckOutboundLicense

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP
    KDE_INSTALL_USE_QT_SYS_PATHS


-- Build files have been written to: E:/crafts/mingw/build/_/fee3be0a/build
executing command: E:\crafts\mingw\dev-utils\bin\ninja.exe
ninja: no work to do.
*** Action: cleanimage for kde/frameworks/extra-cmake-modules ***
*** Action: install for kde/frameworks/extra-cmake-modules ***
executing command: "E:\crafts\mingw\dev-utils\bin\ninja.exe" install
[0/1] Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/CheckAtomic.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMAddAppIcon.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMAddQch.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMAddQtDesignerPlugin.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMAddTests.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMCheckOutboundLicense.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMConfiguredInstall.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMCoverageOption.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMCreateQmFromPoFiles.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMEnableSanitizers.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMFindModuleHelpers.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMFindQMLModule.cmake.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMGenerateDBusServiceFile.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMGenerateExportHeader.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMGenerateHeaders.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMGeneratePkgConfigFile.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMGeneratePriFile.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMGenerateQmlTypes.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMInstallIcons.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMMarkAsTest.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMMarkNonGuiExecutable.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMOptionalAddSubdirectory.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMPackageConfigHelpers.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMPoQmTools.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQMLModules.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQchDoxygen.config.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQchDoxygenLayout.xml
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQmLoader.cpp.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQtDeclareLoggingCategory.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQtDeclareLoggingCategory.cpp.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQtDeclareLoggingCategory.h.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMQueryQmake.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMSetupQtPluginMacroNames.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMSetupVersion.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMSourceVersionControl.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMUninstallTarget.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMUseFindModules.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMVersionHeader.h.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ECMWinResolveSymlinks.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/check-outbound-license.py
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/modules/ecm_uninstall.cmake.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/test-modules/test_execute_and_compare.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/KDECMakeSettings.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/KDEClangFormat.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/KDECompilerSettings.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/KDEFrameworkCompilerSettings.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/KDEInstallDirs.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/KDEPackageAppTemplates.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/appstreamtest.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/clang-format.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/kde-modules/prefix.sh.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/ECMFindModuleHelpersStub.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindCanberra.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindEGL.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindFontconfig.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindGLIB2.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindGperf.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindGradle.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindIcoTool.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindInotify.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindKF5.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindLibExiv2.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindLibGit2.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindOpenEXR.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindPhoneNumber.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindPoppler.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindPulseAudio.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindPythonModuleGeneration.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindQHelpGenerator.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindQtWaylandScanner.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindReuseTool.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindSasl2.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindSeccomp.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindSharedMimeInfo.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindTaglib.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindUDev.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindWayland.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindWaylandProtocols.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindWaylandScanner.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindX11_XCB.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/FindXCB.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/GeneratePythonBindingUmbrellaModule.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/Qt5Ruleset.py
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/local.properties.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/rules_engine.py
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/run-sip.py
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/settings.gradle.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/find-modules/sip_generator.py
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/Android.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/ECMAndroidDeployQt.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/deployment-file-qt514.json.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/deployment-file.json.in
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/generate-fastlane-metadata.py
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/hasMainSymbol.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/toolchain/specifydependencies.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/cmake/ECMConfig.cmake
-- Installing: E:/crafts/mingw/build/kde/frameworks/extra-cmake-modules/image-RelWithDebInfo-master/crafts/mingw/share/ECM/cmake/ECMConfigVersion.cmake
*** Action: post-install for kde/frameworks/extra-cmake-modules ***
*** Action: qmerge for kde/frameworks/extra-cmake-modules ***
*** Action: post-qmerge for kde/frameworks/extra-cmake-modules ***
*** Craft all succeeded: kde/frameworks/extra-cmake-modules after 8 seconds ***
Comment 2 Mark 2020-12-15 15:18:34 UTC
While you have it working (that's awesome!) you're not using my steps to reproduce at all!

You use ninja (i don't have ninja).
You add a bunch of defines, i didn't.

Now that might be fine! I just don't know.
Would you care explaining how it's "supposed" to work under mingw with windows?

Sadly the instructions don't exist for it (see https://api.kde.org/ecm/manual/ecm.7.html or the lack thereof)
Comment 3 Hannah von Reth 2020-12-15 15:52:44 UTC
In that case please provide you complete log, including your cmake call.
Comment 4 Mark 2020-12-15 16:03:04 UTC
C:\code\extra-cmake-modules>mkdir build && cd build && cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\kderoot;
-- Could NOT find Sphinx (missing: Sphinx_BUILD_EXECUTABLE) (Required is at least version "1.2")
-- Could NOT find QCollectionGenerator (missing: QCollectionGenerator_EXECUTABLE)
-- The C compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Qt/Tools/mingw810_64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find Qt5LinguistTools (missing: Qt5LinguistTools_DIR)
-- Could NOT find Qt5Core (missing: Qt5Core_DIR)
-- Could NOT find ReuseTool (missing: REUSETOOL_EXECUTABLE)
-- Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter)
CMake Warning at modules/ECMCheckOutboundLicense.cmake:78 (find_package):
  By not providing "FindReuseTool.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "ReuseTool", but CMake did not find one.

  Could not find a package configuration file provided by "ReuseTool" with
  any of the following names:

    ReuseToolConfig.cmake
    reusetool-config.cmake

  Add the installation prefix of "ReuseTool" to CMAKE_PREFIX_PATH or set
  "ReuseTool_DIR" to a directory containing one of the above files.  If
  "ReuseTool" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  tests/ECMCheckOutboundLicenseTest/CMakeLists.txt:3 (include)


CMake Warning at modules/ECMCheckOutboundLicense.cmake:86 (message):
  Reuse tool not found, skipping test generation
Call Stack (most recent call first):
  tests/ECMCheckOutboundLicenseTest/CMakeLists.txt:3 (include)


-- Skipping execution of outbound license tests.
-- WARNING: skipping tests that require PyQt
-- Could NOT find Qt5Quick (missing: Qt5Quick_DIR)
-- The following features have been enabled:

 * BUILD_TESTING, Build automated tests.

-- The following features have been disabled:

 * BUILD_HTML_DOCS, Generate HTML documentation for installed modules.
 * BUILD_MAN_DOCS, Generate man page documentation for installed modules.
 * BUILD_QTHELP_DOCS, Generate QtHelp documentation for installed modules.
 * SPDX_LICENSE_TESTING, Automatic license testing based on SPDX definitions (requires reuse tool)

-- The following OPTIONAL packages have not been found:

 * Sphinx (required version >= 1.2), Tool to generate documentation., <https://www.sphinx-doc.org/>
   Required to build documentation for Extra CMake Modules.
 * QCollectionGenerator, Qt help collection generator., <https://www.qt.io/>
   Required to build Extra CMake Modules documentation in Qt Help format.
 * Qt5LinguistTools, Qt5 linguist tools., <https://www.qt.io/>
   Required to run tests for the ECMPoQmTools module.
 * Qt5Core, Qt5 core library., <https://www.qt.io/>
   Required to run tests for the ECMQtDeclareLoggingCategory module, and for some tests of the KDEInstallDirs module.
 * Python3
   Required to run tests of module ECMCheckOutboundLicense
 * ReuseTool
   Required to run tests of module ECMCheckOutboundLicense
 * Qt5Quick, Qt5 Quick library., <https://www.qt.io/>
   Required to run tests for the ECMQMLModules module.

-- Configuring done
-- Generating done
-- Build files have been written to: C:/code/extra-cmake-modules/build

C:\code\extra-cmake-modules\build>make install
Microsoft Windows [Version 10.0.18363.1256]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\code\extra-cmake-modules\build>




And to be more verbose in terms of applications.

make --version output:
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-msys


g++ --version output:
g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cmake --version
cmake version 3.18.4


Make seems super old.. Note that this does come from the "msys" package: http://www.mingw.org/wiki/MSYS which is also in my PATH environment variable.
Comment 5 Hannah von Reth 2020-12-15 17:36:25 UTC
Try msys2 or the make provided by your mingw package
Comment 6 Mark 2020-12-15 17:49:22 UTC
(In reply to Hannah von Reth from comment #5)
> Try msys2 or the make provided by your mingw package

Interesting!

mingw32-make.exe install

It actually works! I thought it was bad practice to do that?
Oh well, that works.

Apparently this isn't a bug then.
Thank you for your help!