Duncan Gibson wrote:
>> With Cmake, and the include directory set to /usr/include, I get
>> zillions of errors of this sort:
>> <snip>
>> CMakeFiles/flP5.dir/gui/flP5.o: In function `cb_pb_calPrec':
>> /home/ehildum/src/flP5/current-1.1.8/src/gui/flP5.cxx:6532: undefined
>> reference to `Fl_Wizard::value()'
>>     
>
> Aha! Everyone who has replied so far has picked up on the #include
> and -I/directory issue, and we've all been chasing our own tails.
> You obviously understand the problem with -I / #include.
>
> What we've all missed is that you are trying to use the CMake files.
> Unfortunately the CMake configuration files are not complete, or no
> longer up to date, because the devs are all using autotools to build.
> The guy who said he c/would update the CMake files disappeared :-(
>
> So yes, you either have to stick to the autotools build, or you need
> to debug and update the CMake files, in order to install FLTK properly.
> Once installed, you can use 'fltk-config' to generate the -I and -L
> options consistent with your installation for use in building your app.
> The 'FLTK Basics' chapter at http://www.fltk.org/doc-1.3/index.html
> describes how to use 'fltk-config' to build your app, and the previous
> chapter describes how to build FLTK itself from source.
>
> If you are still having problems, you will need to post the complete
> compile line that you are using. Note that you need to have all of
> the libraries specified in the right order.
>
> Cheers
> Duncan
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
>
>   
Duncan,
    I think you're right about CMake files not being up to date, and 
CentOS 5 wants to use CMake 2.4 instead of the latest (2.6) release 
too.  The problem seems to be in the recipe CMake uses to find FLTK 
(FindFLTK.cmake).  It just doesn't work.  I actually prefer autotools, 
and I have a working build for the app of interest (flP5).  The primary 
author uses CMake though.  I'll play with fltk-config and autotools -- I 
had put a pkgconfig file together for FLTK, but fltk-config would be 
better.  I'll check out the 1.3 FLTK Basics.

Thanks for your help,
Ted Hildum

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to