On 16 Jan 2010, at 10:38, marco wrote:

> Hi,
> I'm trying to install FLTK library on my computer.
> I use Visual C++ 2008 and Cmake 2.6. I donwloaded the fltk-1.1.10  
> source code and tried to run it with  cmake and cmakelists.txt.
> When i click on 'configure' button, that lines appear:
>
> Could NOT find ZLIB  (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
> Could NOT find ZLIB  (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
> Could NOT find PNG  (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
> Could NOT find JPEG  (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
>
> anyway, i'm able to generate the project, but then, Visual C++  
> fails because it can't find zlib.lib ecc.
>
> Do you know a solution for my problem?


Hmm, that sounds like the cmake files expect you to have the image  
libs installed, rather than using the fltk built-in image libs.
I do not know cmake, so can not help directly with that, but a couple  
of options exist, I guess:

- if you are working on a MS VC system, simply use the VC IDE project  
files in the tarball - they *ought* to do the Right Thing.

- if you know cmake well enough, you can probably edit its makefiles  
to make it use the built-in image libs rather than looking for the  
system wide ones (which are often not present on Windows systems, as  
seems to be the case here.)
If you do this and it works, it would be very useful if you could  
post your patches back here for others to find.

- you could simply install libpng, zlib and libjpeg, so that the  
existing cmake files will work.



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

Reply via email to