DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L1943 Version: 1.1.9 NOTE: Also applies to 1.3.x, and possibly to 2.x. The configure script sets up fltk-config such that the image-libs string is hard coded as: IMAGELIBS="-lfltk_png -lfltk_z -lfltk_jpeg " or, if you are using the system libs, as IMAGELIBS="-lpng -lz -ljpeg " Now, the problem with this is that it will *always* prefer the dynamic libs over the static libs, if both are present. By default, fltk-config does "static" compiles, and I think that "static-ness" should be extended to cover the image libs also. So, we'd need to generate something like: IMAGELIBSTATIC="$libdir/libfltk_png.a $libdir/libfltk_z.a $libdir/libfltk_jpeg.a " (or systme-lib equivalent) for use in that case... In a related issue (maybe this should be another STR?) which I think is specific to mingw/Msys builds on Windows... The default paths used by the compiler/linker don't necessarily include /usr/local/lib, so a command like: $ fltk-config --use-images --compile test.cxx g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows -DWIN32 -mno-cygwin -o test test.cxx -mwindows -mno-cygwin /usr/local/lib/libfltk_images.a -lfltk_png -lfltk_z -lfltk_jpeg /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32 -lwsock32 d:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lfltk_png collect2: ld returned 1 exit status Fails as shown. Specifically, the problem in this case is that IMAGELIBS does not include a -L path to the local image libs, and none of the other libs do either, since they are all static "full paths". In this case, changing IMAGELIBS from this: IMAGELIBS="-lfltk_png -lfltk_z -lfltk_jpeg " to this: IMAGELIBS="-L$libdir -lfltk_png -lfltk_z -lfltk_jpeg " fixes things up nicely (although the static-ness mod suggested above would also work, of course...) -- Ian Link: http://www.fltk.org/str.php?L1943 Version: 1.1.9 _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
