[Cmake] FindFLTK.cache error for fltk v1.1
Luis Ibanez
luis.ibanez at kitware.com
Fri Aug 2 14:21:04 EDT 2002
Hi Hans,
Thanks for pointing this out.
The FLTK libraries are named:
In Windows:
- fltkgl
- fltkforms
and in Linux (Unix)
- fltk_gl
- fltk_forms
So actualy the names not wrong but incomplete.
The FindFLTK.cmake file in /Modules is now modified
to look for both names (not only the Windows ones).
It should catch the right ones depending on the system.
The lines that you indicated now look like:
FIND_LIBRARY(FLTK_GL_LIBRARY NAMES fltk_gl fltkgl
FIND_LIBRARY(FLTK_FORMS_LIBRARY NAMES fltk_forms fltkforms
A question: What version of FLTK is doing the Images library ?
Thanks
Luis
====================================================
Hans J. Johnson wrote:
> Hello,
>
> There is an error in the FindFLTK.cache file. The library names are
> wrong.
>
> FIND_LIBRARY(FLTK_GL_LIBRARY fltkgl
> FIND_LIBRARY(FLTK_FORMS_LIBRARY fltkforms
>
> should be
> FIND_LIBRARY(FLTK_GL_LIBRARY fltk_gl
> FIND_LIBRARY(FLTK_FORMS_LIBRARY fltk_forms
>
> In addition, you may want to add the following lines
> line 11 # FLTK_IMAGES_LIBRARY, the full path to fltk_images.lib
> 56-59 FIND_LIBRARY(FLTK_IMAGES_LIBRARY fltk_images
> PATHS /usr/lib
> /usr/robin/people/hjohnson/src/buildhome/athlon/DEBUG/lib
> /usr/robin/people/hjohnson/src/buildhome/athlon/DEBUG/
> fltk/lib
> H:/usr/robin/people/hjohnson/src/buildhome/athlon/DEBUG/fltk/lib
> /usr/X11R6/lib
> ${FLTK_INCLUDE_PATH}/lib
> )
> line 62
> SET( FLTK_LIBRARY ${FLTK_BASE_LIBRARY} ${FLTK_GL_LIBRARY}
> ${FLTK_FORMS_LIBRARY} ${FLTK_IMAGES_LIBRARY} )
>
>
> I don't know that the FLTK_IMAGES_LIBRARY is strictly necessary, but it
> would make this cache more complete.
>
More information about the CMake
mailing list