View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013519CMakeModulespublic2012-09-05 23:022016-06-10 14:31
ReporterJtappin 
Assigned ToPhilip Lowman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
Platformx86OSPC BSDOS Version9.0
Product VersionCMake 2.8.6 
Target VersionFixed in Version 
Summary0013519: FindGTK2 fails to include libgmodule
DescriptionWhen building a package that uses cmake as its build system and includes GTK2, the libgmodule library of glib is not included in the linking list.

The specific example is one of the test codes for gtk-fortran.
Steps To ReproduceOn a system with PC-BSD installed. Needs the gtk+ 2 libraries & gfortran.

1) Download gtk-fortran (branch gtk2-old) from github.com:
    git pull https://github.com/jerryd/gtk-fortran.git [^] gtk2-old

2) Build it:
    mkdir build
    cd build
    cmake -D CMAKE_Fortran_COMPILER=gfortran46 ..
    make

3) Run the gtkbuilder2 example:
    ./examples/gtkbuilder2

   The callback routines are not found, c.f. gtkbuilder which does not need libgmodule where they are found.
Additional InformationI have only seen the problem on BSD, not Linux.

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0031157)
Philip Lowman (developer)
2012-10-03 00:19

Are you linking against GTK2_LIBRARIES (see the top of FindGTK2.cmake for examples of how to use it)?

project(Foo)
find_package(GTK2 REQUIRED gtk)
message(STATUS "GTK2_LIBRARIES = ${GTK2_LIBRARIES}")

should output a list of libraries that includes:
  libfreetype, libglib, libgobject, libgdk_pixbuf, libgdk-x11 (on *nix), libgtk-x11 (on *nix), libcairo, libpango, and libatk.

It's possible that you are doing this correctly and gobject library detection is simply not working on your platform. I did notice that it's not listed as a mandatory requirement for the FIND_PACKAGE_HANDLE_STANDARD_ARGS call at the bottom, but it should be. So it wouldn't be flagged as an error if it were not detected.

If that's the case, please provide details on where the gobject.h & libgobject*.so files are stored on your platform.

Thanks
(0031168)
Philip Lowman (developer)
2012-10-03 20:49

Putting this issue into feedback state for now. Not clear if it's an issue or not (can't reproduce).
(0042115)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2012-09-05 23:02 Jtappin New Issue
2012-09-06 12:55 Philip Lowman Assigned To => Philip Lowman
2012-09-06 12:55 Philip Lowman Status new => assigned
2012-10-03 00:19 Philip Lowman Note Added: 0031157
2012-10-03 20:49 Philip Lowman Note Added: 0031168
2012-10-03 20:49 Philip Lowman Status assigned => feedback
2016-06-10 14:28 Kitware Robot Note Added: 0042115
2016-06-10 14:28 Kitware Robot Status feedback => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team