On Monday 24 March 2008 01:51:20 Felipe Sateler wrote:
>
> On Tuesday 14 August 2007 23:21:50 you wrote:
> > 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.
>
> 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.

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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to