[cmake-developers] [CMake 0012049]: Problem with cmake module FindGTK2.cmake in Ubuntu >= 11.04 (Natty Narwhal)
Mantis Bug Tracker
mantis at public.kitware.com
Wed Apr 6 03:46:03 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=12049
======================================================================
Reported By: Boris Pek
Assigned To:
======================================================================
Project: CMake
Issue ID: 12049
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-04-06 03:46 EDT
Last Modified: 2011-04-06 03:46 EDT
======================================================================
Summary: Problem with cmake module FindGTK2.cmake in Ubuntu
>= 11.04 (Natty Narwhal)
Description:
Hi,
Some Ubuntu maintainers have a dissenting opinion where the header files should
be placed in the system...
So you need to take into account some features of Ubuntu Natty:
they moved file /usr/lib/glib-2.0/include/glibconfig.h
to directories:
/usr/lib/i386-linux-gnu/glib-2.0/include/
/usr/lib/x86_64-linux-gnu/glib-2.0/include/
Temporary I solved this problem in our project with following patch:
--- a/cmake/FindGTK2.cmake
+++ b/cmake/FindGTK2.cmake
@@ -185,6 +185,10 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr)
find_path(${_var} ${_hdr}
PATHS
+ # fix for Ubuntu >= 11.04 (Natty Narwhal)
+ /usr/lib/i386-linux-gnu/
+ /usr/lib/x86_64-linux-gnu/
+ # end fix for Ubuntu >= 11.04 (Natty Narwhal)
/usr/local/lib64
/usr/local/lib
/usr/lib64
The Ubuntu maintainer proposed to use pkg-config.
I don't agree with him, but this problem must be fixed in cmake project in any
way.
Or maybe you will be able to convince ubuntu developers undo this change.
For more details please read:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/751940
Thank you for convenient and useful project.
Regards,
Boris
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-04-06 03:46 Boris Pek New Issue
======================================================================
More information about the cmake-developers
mailing list