Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#437967: cmake: fails to find FLTK

88 views
Skip to first unread message

Felipe Sateler

unread,
Aug 14, 2007, 11:30:09 PM8/14/07
to
Package: cmake
Version: 2.4.7-1
Severity: normal

FLTK is not found although libfltk1.1-dev is installed:

== CMakeLists.txt ==
# set( FLTK_INCLUDE_DIR /usr/include )
find_package( FLTK REQUIRED )

if( FLTK_FOUND )
include_directories( ${FLTK_INCLUDE_DIR} )
add_executable( cseditor cseditor.cxx )
target_link_libraries( cseditor ${FLTK_LIBRARIES} )
else( FLTK_FOUND )
message(FATAL_ERROR "Could not find FLTK")
endif( FLTK_FOUND )
==

$ cmake .
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so -
found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
CMake Error: Could not find FLTK
-- Configuring done


Uncommenting the first line in CMakeLists.txt finds FLTK, though. I see
that FindFLTK.cmake searches in that directory, so I don't know what is going
on.

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-felipe (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cmake depends on:
ii libc6 2.6.1-1 GNU C Library: Shared libraries
ii libgcc1 1:4.2.1-2 GCC support library
ii libncurses5 5.6+20070716-1 Shared libraries for terminal hand
ii libstdc++6 4.2.1-2 The GNU Standard C++ Library v3

cmake recommends no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Felipe Sateler

unread,
Mar 24, 2008, 1:10:14 AM3/24/08
to
package cmake
reassign 437967 libfltk1.1-dev 1.1.8~rc2-2
retitle 437967 libfltk1.1-dev: installs
thanks

The problem is that the FLTKConfig.cmake and FLTKUse.cmake are installed
into /usr/share/CMake/Modules instead of /usr/share/cmake-2.4, which is the
correct CMake root in Debian.

--
Felipe Sateler

signature.asc

Felipe Sateler

unread,
Mar 24, 2008, 2:10:19 PM3/24/08
to

Hmm, copying the files over makes cmake fail:

% cmake ..
CMake Error: Error in cmake code at
/usr/share/cmake-2.4/Modules/FindFLTK.cmake:136:
LOAD_CACHE Cannot load cache file
from /usr/share/cmake-2.4/Modules/CMakeCache.txt
Current CMake stack:
[2] /usr/share/cmake-2.4/Modules/FindFLTK.cmake
[1] /home/felipe/src/waf-1.3.2/demos/adv/CMakeLists.txt
-- Configuring done


I'm guessing these files aren't overly useful if fltk is not built using cmake
and the cache copied over somewhere cmake can find it.
By now I'm not really sure where this bug belongs.

--
Felipe Sateler

signature.asc

Aaron M. Ucko

unread,
Mar 24, 2008, 2:20:19 PM3/24/08
to
Thanks for the report. I've been looking into the matter, and put
together a kludgy but ultimately working (AFAICT) solution involving a
faked-out /usr/lib/fltk/CMakeCache.txt defining those variables that
FindFLTK.cmake expects to see; given that it gets their interpretation
backwards anyway(!), I don't actually lose anything by using FLTK's
autoconf-based build system in lieu of cmake.

--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu

0 new messages