Greg Ercolano wrote:
> imm wrote:
>> I just built this test for fltk-1.1 and fltk-2 on my Mac(10.4.10) and
>> linux(FC7) using fltk-2-r5940 and in both cases it works just fine.
>
> Ya, I tested with r5940 (I think).
> Probably isn't the latest SVN, which is maybe what gga is using.
Ya, I confirmed I tested with the latest svn (r5940).
I even blew away my old fltk2 svn, and re-downloaded it, rebuilt.
Works with both Fl_Native versions, the original and the IMGLIB fix.
> If you are using r5940, fltk2_images should never appear in your link line.
gga, I think you must have a stale fltk2-config.in file.
I just diffed yours against the current svn; the file you sent
seems to have the LIBS lines missing which is why it works for us:
LDSTATIC="$libdir/libfltk2.a $LDLIBS"
LDLIBS="$libs -lfltk2$SHAREDSUFFIX $LDLIBS"
-LIBS="$LIBS $libdir/libfltk2.a"
if test x$use_forms = xyes; then
LDLIBS="-lfltk2_forms$SHAREDSUFFIX $LDLIBS"
LDSTATIC="$libdir/libfltk2_forms.a $LDSTATIC"
- LIBS="$LIBS $libdir/libfltk2_forms.a"
fi
if test x$use_gl = xyes; then
LDLIBS="-lfltk2_gl$SHAREDSUFFIX @GLLIB@ $LDLIBS"
LDSTATIC="$libdir/libfltk2_gl.a @GLLIB@ $LDSTATIC"
- LIBS="$LIBS $libdir/libfltk2_gl.a"
fi
if test "$echo_libs" = "yes"; then
- echo $LIBS
+ echo $LDLIBS
fi
When I run fltk2-config from my svn update, I get normal output:
% pwd
/usr/local/src/fltk-2.0-svn
% ./fltk2-config --use-images --ldstaticflags
-L./lib ./lib/libfltk2_images.a ./lib/libfltk2.a -L/usr/X11R6/lib -lX11 -lXi
-lXinerama -lXft -lpthread -lm -lXext -lsupc++ -lpng -lfltk2_images -ljpeg -lz
^^^^^^^^^^^^^^^^^^^^^^^
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk