Fabien Costantini wrote:
> As I understand auto mode, it should select the local libs if the system libs
> are not found and nothing was explicitly specified.
> But here, it _still_ selects the system jpeg and png libs.
I don't know about the real intention of "auto" mode, but I think that this can
be very "tricky". There can be existing runtime libraries, but the
(development)
header files are missing and so on...
> Please confirm if you have the same results.
> What I start to suspect is that at least under cygwin, this never worked well
> ?
You may be right here. I'm using cygwin for (Windows) development for a long
time
now, and it works very well, once you know the tricks.
With using image libs, there is another problem included in the cygwin build
system, why auto detection {may|does|can} not work reliably:
If you want to build native Windows applications, then you must configure FLTK
without --enable-cygwin (that's the default). But there may be cygwin versions
of
the image libraries on your system, and you _want_ to have them available, and
maybe you do also have the development packages (header files) installed,
because
you may develop cygwin applications too (these are applications that depend on
cygwin1.dll). If you would configure in automatic mode, ./configure would find
the system (cygwin) dlls, and your build would be broken, because it would
depend
on the cygwin image libraries (dlls) and cygwin1.dll. Here comes
--enable-local*
into the game: this lets you link FLTK and your application with the FLTK image
libraries.
Another approach I used is to build non-cygwin libs, install them on another
path
and include this path in the build environment. This works, if you use special
CXXFLAGS and LDFLAGS definitions when running ./configure, something like:
CFLAGS="-mno-cygwin -I/usr/local/hs/include" \
CXXFLAGS="-mno-cygwin -I/usr/local/hs/include" \
CPPFLAGS="-mno-cygwin -I/usr/local/hs/include" \
LDFLAGS="-mno-cygwin -L/usr/local/hs/lib" \
./configure \
--enable-localjpeg \
--enable-localpng \
--enable-localzlib \
--prefix=/usr/local/fltk-1.3
This is used to get the non-cygwin version of libtiff. Tricky, but works.
Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev