Bug 401285 - Resource compilation issue using MinGW
Summary: Resource compilation issue using MinGW
Status: RESOLVED WORKSFORME
Alias: None
Product: trojita
Classification: Applications
Component: Desktop GUI (show other bugs)
Version: git
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-21 18:23 UTC by Twissell
Modified: 2023-02-17 03:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Twissell 2018-11-21 18:23:27 UTC
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!
Comment 1 Twissell 2018-11-21 18:26:36 UTC
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>")
Comment 2 Jan Kundrát 2018-11-26 12:44:36 UTC
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.
Comment 3 Justin Zobel 2023-01-18 02:41:00 UTC
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!
Comment 4 Bug Janitor Service 2023-02-02 05:01:26 UTC
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!
Comment 5 Bug Janitor Service 2023-02-17 03:48:57 UTC
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!