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
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
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
--
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