[Insight-developers] ccmake
Luis Ibanez
luis.ibanez@kitware.com
Mon, 23 Sep 2002 18:17:55 -0400
Hi Mark,
One easy way to set up FLTK is to provide first the Include directory.
Then let ccmake perform one configure step.
In that way, if you have fltk installed not in /usr/local but in your
home directory, the paths below will be able to find the libraries in
${FLTK_INCLUDE_DIR}/lib.
The alternative will be to add an option like the one used for VTK:
use BUILT or INSTALLED fltk. The problem with this option is that
it will probably take longer for users to figure out how to set up
these extra options than just locate the paths for the specific
libraries.
I still think that the definite solution for the FLTK pain is to take
some time and write a CMakeLists.txt files for FLTK and build it using
CMake.
In that way a UseFLTK.cmake file will be generated and using fltk from
other project will be much easier. This will also get rid of the name
conflicts between UNIX and Windows (e.g. fltkgl.lib versus fltk-gl.a),
and the arbitrary naming of fltkd.lib for debugging versus fltk.lib for
release.
Luis
================================
Bill Hoffman wrote:
> FLTK is very hard to find, because it does not have install targets,
> so where do you look for it???
>
> Here is where we are looking now:
> FIND_LIBRARY(FLTK_GL_LIBRARY NAMES fltkgl fltkgld fltk_gl
> PATHS /usr/lib /usr/local/lib /usr/local/fltk/lib
> /usr/X11R6/lib ${FLTK_INCLUDE_DIR}/lib
> )
>
> FIND_LIBRARY(FLTK_FORMS_LIBRARY NAMES fltkforms fltkformsd fltk_forms
> PATHS /usr/lib /usr/local/lib /usr/local/fltk/lib
> /usr/X11R6/lib ${FLTK_INCLUDE_DIR}/lib
> )
> Where were they installed on your system?
>
>
> At 04:58 PM 9/23/2002 -0400, Mark Foskey wrote:
>
>>Today I am building Insight under Linux for the first time in over a month, and I'm building it from scratch since CMake and Insight have evolved enough to make that sensible. When I ran ccmake, FLTK_FORMS_LIBRARY and FLTK_GL_LIBRARY were "NOTFOUND". It was easy enough to insert the entries manually, but I thought they should have been found.
>>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>
>