View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012049 | CMake | Modules | public | 2011-04-06 03:46 | 2013-03-04 08:38 | ||||
Reporter | Boris Pek | ||||||||
Assigned To | Philip Lowman | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-8 | ||||||||
Target Version | CMake 2.8.10 | Fixed in Version | CMake 2.8.10 | ||||||
Summary | 0012049: 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 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0026113) Michael Wild (reporter) 2011-04-06 04:43 |
This is not GTK specific, it is a consequence of multi-arch support that is being implemented in Debian and Ubuntu (https://wiki.ubuntu.com/MultiarchSpec [^]). CMake needs those paths to be added to the default search paths. Now, this won't solve this particular issue, because the header is located in a library-directory, and hard-coding all possible triplets (on Debian there will be many more than just those two) also isn't a solution, because you'll need to take into account the target architecture you are compiling for. It is very well possible that /usrl/lib/i386-linux-gnu is present on a system where you are compiling for x86_64. After all, this is the very purpose of multi-arch. Simply asking pkg-config for a hint is perfectly acceptable, but doesn't help in the case of cross-compiling. But that (AFAIK) isn't supported at the moment, so that should be fine. |
(0026114) Eric NOULARD (developer) 2011-04-06 07:44 |
Just adding the relationship with the MultiArch feature request 0012049 |
(0026115) Michael Wild (reporter) 2011-04-06 07:59 edited on: 2011-04-06 08:00 |
You mean 0012037... |
(0026117) Eric NOULARD (developer) 2011-04-06 08:01 |
Yes right off course, thanks Michael. |
(0026847) Brad King (manager) 2011-06-13 11:31 |
Assigned to Philip Lowman, the current module maintainer for FindGTK2.cmake. |
(0026848) Brad King (manager) 2011-06-13 11:32 |
Re 0012049:0026113: The problem is somewhat specific to FindGTK2 because it uses find_path to look for a header in the *lib* directory. According to a link posted in 0012037:0026834: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/751940/comments/1 [^] the proper way to find the header path and other parts of GTK2 is to use pkgconfig. |
(0030690) Brad King (manager) 2012-08-17 10:23 |
Debian applies the following fix: http://anonscm.debian.org/gitweb/?p=collab-maint/cmake.git;a=blob;f=debian/patches/multiarch_findgtk2_fix.diff;hb=82fce4fc [^] --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -187,6 +187,7 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hd PATHS /usr/local/lib64 /usr/local/lib + /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE} /usr/lib64 /usr/lib /opt/gnome/include |
(0031158) Philip Lowman (developer) 2012-10-03 00:56 |
Definitely need to fix this for 2.8.10. Need to tweak Debian's patch slightly given recent changes to FindGTK2 also. |
(0031279) Philip Lowman (developer) 2012-10-18 16:02 |
Fixed the issue |
(0032478) Robert Maynard (manager) 2013-03-04 08:38 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-04-06 03:46 | Boris Pek | New Issue | |
2011-04-06 04:43 | Michael Wild | Note Added: 0026113 | |
2011-04-06 07:42 | Eric NOULARD | Relationship added | related to 0012037 |
2011-04-06 07:44 | Eric NOULARD | Note Added: 0026114 | |
2011-04-06 07:59 | Michael Wild | Note Added: 0026115 | |
2011-04-06 08:00 | Michael Wild | Note Edited: 0026115 | |
2011-04-06 08:00 | Michael Wild | Note Edited: 0026115 | |
2011-04-06 08:00 | Michael Wild | Note Edited: 0026115 | |
2011-04-06 08:01 | Eric NOULARD | Note Added: 0026117 | |
2011-06-13 11:31 | Brad King | Assigned To | => Philip Lowman |
2011-06-13 11:31 | Brad King | Status | new => assigned |
2011-06-13 11:31 | Brad King | Note Added: 0026847 | |
2011-06-13 11:32 | Brad King | Note Added: 0026848 | |
2012-08-17 10:23 | Brad King | Note Added: 0030690 | |
2012-10-03 00:56 | Philip Lowman | Note Added: 0031158 | |
2012-10-03 00:56 | Philip Lowman | Target Version | => CMake 2.8.10 |
2012-10-18 16:02 | Philip Lowman | Note Added: 0031279 | |
2012-10-18 16:02 | Philip Lowman | Status | assigned => resolved |
2012-10-18 16:02 | Philip Lowman | Resolution | open => fixed |
2012-10-18 16:02 | Philip Lowman | Fixed in Version | => CMake 2.8.10 |
2013-03-04 08:38 | Robert Maynard | Note Added: 0032478 | |
2013-03-04 08:38 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |