Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: mingw-cmake error when compiling .rc
https://bugzilla.redhat.com/show_bug.cgi?id=807561
Summary: mingw-cmake error when compiling .rc
Product: Fedora
Version: 15
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: unspecified
Priority: unspecified
Component: mingw32-filesystem
AssignedTo: rjones(a)redhat.com
ReportedBy: drizt(a)land.ru
QAContact: extras-qa(a)fedoraproject.org
CC: lfarkas(a)lfarkas.org, rjones(a)redhat.com,
kalevlember(a)gmail.com, erik-fedora(a)vanpienbroek.nl,
fedora-mingw(a)lists.fedoraproject.org, drizt(a)land.ru
Classification: Fedora
Story Points: ---
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Created attachment 573252
--> https://bugzilla.redhat.com/attachment.cgi?id=573252
rc test project
I am compiling my cmake project but am geting the error with
i686-pc-mingw32-windres. The project has a integrated icon.
I wrote a test project to check compiling with integrated icon. Below output of
compiling this project.
[taurus@lix rctest]$ mingw32-cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/i686-pc-mingw32-gcc
-- Check for working C compiler: /usr/bin/i686-pc-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/i686-pc-mingw32-g++
-- Check for working CXX compiler: /usr/bin/i686-pc-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
CMake Warning: The variable, 'BUILD_SHARED_LIBS', specified manually, was not
used during the generation.
CMake Warning: The variable, 'CMAKE_INSTALL_LIBDIR', specified manually, was
not used during the generation.
CMake Warning: The variable, 'INCLUDE_INSTALL_DIR', specified manually, was not
used during the generation.
CMake Warning: The variable, 'LIB_INSTALL_DIR', specified manually, was not
used during the generation.
CMake Warning: The variable, 'SHARE_INSTALL_PREFIX', specified manually, was
not used during the generation.
CMake Warning: The variable, 'SYSCONF_INSTALL_DIR', specified manually, was not
used during the generation.
-- Build files have been written to: /home/taurus/devel/rctest
[taurus@lix rctest]$ make
/usr/bin/cmake -H/home/taurus/devel/rctest -B/home/taurus/devel/rctest
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/taurus/devel/rctest/CMakeFiles
/home/taurus/devel/rctest/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/taurus/devel/rctest'
make -f CMakeFiles/rctest.dir/build.make CMakeFiles/rctest.dir/depend
make[2]: Entering directory `/home/taurus/devel/rctest'
cd /home/taurus/devel/rctest && /usr/bin/cmake -E cmake_depends "Unix
Makefiles" /home/taurus/devel/rctest /home/taurus/devel/rctest
/home/taurus/devel/rctest /home/taurus/devel/rctest
/home/taurus/devel/rctest/CMakeFiles/rctest.dir/DependInfo.cmake --color=
Scanning dependencies of target rctest
make[2]: Leaving directory `/home/taurus/devel/rctest'
make -f CMakeFiles/rctest.dir/build.make CMakeFiles/rctest.dir/build
make[2]: Entering directory `/home/taurus/devel/rctest'
/usr/bin/cmake -E cmake_progress_report /home/taurus/devel/rctest/CMakeFiles 1
[ 50%] Building CXX object CMakeFiles/rctest.dir/main.cpp.obj
/usr/bin/i686-pc-mingw32-g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions --param=ssp-buffer-size=4 -mms-bitfields -o
CMakeFiles/rctest.dir/main.cpp.obj -c /home/taurus/devel/rctest/main.cpp
/usr/bin/cmake -E cmake_progress_report /home/taurus/devel/rctest/CMakeFiles 2
[100%] Building RC object CMakeFiles/rctest.dir/rctest.rc.res
/usr/bin/i686-pc-mingw32-windres /foCMakeFiles/rctest.dir/rctest.rc.res
/home/taurus/devel/rctest/rctest.rc
/usr/bin/i686-pc-mingw32-windres: '/foCMakeFiles/rctest.dir/rctest.rc.res': No
such file
/usr/bin/i686-pc-mingw32-windres: can't open
`/foCMakeFiles/rctest.dir/rctest.rc.res' for input
make[2]: *** [CMakeFiles/rctest.dir/rctest.rc.res] Error 1
make[2]: Leaving directory `/home/taurus/devel/rctest'
make[1]: *** [CMakeFiles/rctest.dir/all] Error 2
make[1]: Leaving directory `/home/taurus/devel/rctest'
make: *** [all] Error 2
I get this on F15. F16 hasn't such error. On F16 compiling works nice.
I've attached test project.
I've applied deciding for F15 package from
https://bugzilla.redhat.com/show_bug.cgi?id=652435#c5. Also I've applied this
patch to F16 branch. It should be reverted.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Hi,
Earlier today I updated the mingw-w64 based packaging guidelines to
reflect the current state. The result of this can be found at
https://fedoraproject.org/wiki/PackagingDrafts/MinGWCrossCompiler
The changes between the original MinGW_Future guidelines and these
updated ones are:
* The RPM overrides at the beginning of each .spec file are now
replaced by a single %?mingw_package_header macro
* The %global mingw_build_win32 and %global mingw_build_win64 are
enabled by default and therefore don't need to be set explicitly
any more unless your package only supports either win32 or win64
* The %global mingw_pkg_name doesn't need to be used any more
* The macro %mingw_default_requires doesn't exist any more
* Added mingw_cmake_kde4 macro which calls cmake with KDE4 specific
parameters set
* The CFLAGS -mms-bitfields isn't set by the MinGW macros any more
as it has become default as of gcc 4.7
* Specifying build dir suffixes has changed. If you want to build
libraries multiple times (for example a static and shared copy
using individual build dirs) you can now use the environment
variable MINGW_BUILDDIR_SUFFIX to achieve this
* The RPM macro mingw_make_install is obsolete now
* Removed references to a mingw-filesystem binary RPM package
as it isn't build as binary package any more. Packagers are
expected to BuildRequires: mingw32-filesystem and mingw64-filesystem
* Libtool files don't need to be bundled any more
Before I propose this draft to the Fedora Packaging Committee (FPC) I am
asking for your feedback. If there are any parts unclear feel free to
let me know (either through IRC or through this mailing list) so we can
improve it before proposing it to the FPC.
Tomorrow evening I'm going to send the draft to FPC so they can discuss
it in their meeting on Wednesday. Please provide any feedback before
tomorrow evening
Kind regards,
Erik
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=812573
--- Comment #3 from Erik van Pienbroek <erik-fedora(a)vanpienbroek.nl> 2012-04-15 13:44:01 EDT ---
(In reply to comment #2)
> Could you also update the Fedora wiki for MinGW packaging? You change the
> packaging requirements every time I submit a package for review. The wiki is
> highly out of date.
I was already aware of that. It was still on my TODO list for some time.
Earlier today I updated the packaging guidelines to reflect the current state
and announced it in our IRC channel (but apparently you didn't read that yet).
The new draft can be found at
https://fedoraproject.org/wiki/PackagingDrafts/MinGWCrossCompiler and will be
put up for approval by the FPC so they be discussed in their next meeting
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.