SUMMARY I faced Win32 resource compilation issue while building Trojita git-version. Used toolchanin: Qt 5.9.7 LTS MinGW32 5.3.0 32-bit x86 compiler CMake version 3.12.4 STEPS TO REPRODUCE 1. Try to build Trojita using toolchain listed above OBSERVED RESULT windres.exe resource compilation error: Usage: D:\Qt\Tools\mingw530_32\bin\windres.exe [option(s)] [input-file] [output-file] The options are: -i --input=<file> Name input file -o --output=<file> Name output file -J --input-format=<format> Specify input format -O --output-format=<format> Specify output format -F --target=<target> Specify COFF target --preprocessor=<program> Program to use to preprocess rc file --preprocessor-arg=<arg> Additional preprocessor argument -I --include-dir=<dir> Include directory when preprocessing rc file -D --define <sym>[=<val>] Define SYM when preprocessing rc file -U --undefine <sym> Undefine SYM when preprocessing rc file -v --verbose Verbose - tells you what it's doing -c --codepage=<codepage> Specify default codepage -l --language=<val> Set language when reading rc file --use-temp-file Use a temporary file instead of popen to read the preprocessor output --no-use-temp-file Use popen (default) -r Ignored for compatibility with rc @<file> Read options from <file> -h --help Print this help message -V --version Print version information FORMAT is one of rc, res, or coff, and is deduced from the file name extension if not specified. A single file name is an input file. No input-file is stdin, default rc. No output-file is stdout, default rc. D:\Qt\Tools\mingw530_32\bin\windres.exe: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex CMakeFiles\trojita.dir\build.make:88: recipe for target 'CMakeFiles/trojita.dir/src/trojita_win32.rc.obj' failed CMakeFiles\Makefile2:1087: recipe for target 'CMakeFiles/trojita.dir/all' failed Makefile:139: recipe for target 'all' failed mingw32-make.exe[2]: *** [CMakeFiles/trojita.dir/src/trojita_win32.rc.obj] Error 1 mingw32-make.exe[1]: *** [CMakeFiles/trojita.dir/all] Error 2 mingw32-make.exe: *** [all] Error 2 EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: Microsoft Windows [Version 6.1.7601] (Windows 7) MacOS: Linux/KDE Plasma: Not applicable (available in About System) KDE Plasma Version: Not applicable KDE Frameworks Version: Not applicable Qt Version: 5.9.7 ADDITIONAL INFORMATION I'm really stucked, alas!
Line that caused this issue in my opinion set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -I${CMAKE_CURRENT_BINARY_DIR} -i <SOURCE> -o <OBJECT>")
Hi Twissel, this will be a typical "patches welcome" response. I have no clue how native builds with mingw work. If you can contribute a patch which makes this, er, "semi-native build" happen without breaking cross-compilation from Linux, I'll be happy to merge it.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!