On 15.07.2010, at 08:30, Shane.Hill.dsto.defence.gov wrote: > With all the help about the wrong uuid library being linked, I managed to get > Fltk compiled under Cygwin (as well as my own Fltk apps). This is what I had > to do: > > Note that /usr/local/mingw below is where I keep my local versions of libpng > and libjpeg.
Great, and many thanks for the feedback ! > For FLTK 1.1.x > ================= > export CC=gcc-3 > export CXX=g++-3 > export CPPFLAGS="-I/usr/include/w32api -I/usr/local/mingw/include" This should probably be replaced or amended by export CFLAGS="-I/usr/include/w32api -I/usr/local/mingw/include" export CXXFLAGS="-I/usr/include/w32api -I/usr/local/mingw/include" CPPFLAGS is used for the C preprocessor, IIRC. > export LDFLAGS="-L/usr/lib/w32api -L/usr/local/mingw/lib" > ./configure --includedir=/usr/local/mingw/include > --libdir=/usr/local/mingw/lib This seems to be redundant. If you added the C*FLAGS exports, you could probably omit --includedir and --libdir here. > make > > This would then crash at the first use of fluid.exe when building the test > apps as it could not find the zlib1.dll file (I can't find it either). So I > edited the fluid Makefile to link with the "-static" switch. I don't know why it looks for zlib1.dll, but instead of editing the Makefile, you could use ./configure --enable-localzlib [ --enable-localpng --enable-localjpeg ] to avoid that configure finds (some of) the libs and dlls on your system, and use the local libs instead. They will be linked statically by default (i.e. if you don't use --enable-shared). > make (again to complete building of the test apps). > > > For FLTK 2.x the CPPFLAGS does not work as above. See note above. > =================================================== > export CC=gcc-3 > export CXX=g++-3 > export CFLAGS="-I/usr/include/w32api -I/usr/local/mingw/include" > export CXXFLAGS="-I/usr/include/w32api -I/usr/local/mingw/include" > export LDFLAGS="-L/usr/lib/w32api -L/usr/local/mingw/lib" > ./configure --includedir=/usr/local/mingw/include > --libdir=/usr/local/mingw/lib > make (crash at fluid first use. Fix Makefile) > make (again to complete test apps). > > > I hope this helps. I'm sure it will help, thanks very much. If we get more reports of Cygwin users having problems with this, we may perhaps try to circumvent the problem by doing something like you did with configure. Unfortunately FLTK 1.1 is not developed anymore, but the same applies to FLTK 1.3 (and 2.0 of course, but that's dormant anyway). Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

