On 30 Sep 2007, at 16:39, Gonzalo Garramuño wrote: > More than likely you still are using some different fltk2-config, > as r5940 is definitively broken. And greg's makefile is also > broken as does not include libfltk2_images.so which is the one that > contains load_system_icons().
No - more than likely you are using something different. And Greg's makefile uses fltk2-config to get the libs, so his makefile inherently uses whatever fltk2-config uses. I did all my testing, statically linked, using the fltk[1|2]-config files called directly from their respective svn checkout folders. And I have checked the linkage on the created apps and they are indeed linked against the specific versions of fltk that I intended. Further - I do not even have fltk2 installed to the default system locations on *any* of my systems, so the version that is picked *must* be the version I am explicitly setting the path to. > If you are picking that is something due to your OS. It is picking the right things, from the right places. I have checked this. It works. > On windows, dlls pick other dlls automatically, so it is not much > of a check. Statically linked. No fltk dll's involved. Also, it is trivial to check what dll's your app actualy loads at runtime - and they are exactly what I expected. > Mac, I have no clue. It's a unix box. It behaves exactly like a unix box would - albeit with a very odd window manager. > FC7 also no clue, albeit if it is picking stuff automatically, it > is incorrect behavior. I can't imagine it is all that different from an ubuntu system. But it is picking the right things, no incorrect behaviour is observed. > Run your makefile with verbose or -n to see why it works for you. > If you are using r5940, fltk2_images should never appear in your > link line. Here's what I get. Things of particular note are; - The calling of fltk2-config and the fltk libs explicitly from /home/ Shared/fltk/, which on that particular box is where the svn checkout goes. - The explicit inclusion of /home/Shared/fltk/lib/libfltk2_images.a in the link line. - The success of the build. *** *** FLTK2 BUILD *** ( make -f Makefile-fltk2 all "FLTK2CONFIG=/home/Shared/fltk/fltk2- config --use-images") make[1]: Entering directory `/home/devuser/src/ Fl_Native_File_Chooser-0.84' gcc -Wall -O3 -I. -I/home/Shared/fltk -I/usr/include/freetype2 -Wno- non-virtual-dtor -DFLTK2 test-browser-fltk2.cxx -c gcc -Wall -O3 -I. -I/home/Shared/fltk -I/usr/include/freetype2 -Wno- non-virtual-dtor -DFLTK2 Fl_Native_File_Chooser.cxx -c -o NativeFileChooser.o gcc test-browser-fltk2.o NativeFileChooser.o -L/home/Shared/fltk/lib / home/Shared/fltk/lib/libfltk2_images.a /home/Shared/fltk/lib/ libfltk2.a -lX11 -lXi -lXinerama -lXft -lpthread -lm -lXext -lsupc++ - lpng -lfltk2_images -ljpeg -lz -lm -o test-browser-fltk2 strip test-browser-fltk2 /home/Shared/fltk/fltk2-config --use-images --post test-browser-fltk2 gcc -Wall -O3 -I. -I/home/Shared/fltk -I/usr/include/freetype2 -Wno- non-virtual-dtor -DFLTK2 simple-app-fltk2.cxx -c gcc simple-app-fltk2.o NativeFileChooser.o -L/home/Shared/fltk/lib / home/Shared/fltk/lib/libfltk2_images.a /home/Shared/fltk/lib/ libfltk2.a -lX11 -lXi -lXinerama -lXft -lpthread -lm -lXext -lsupc++ - lpng -lfltk2_images -ljpeg -lz -lm -o simple-app-fltk2 strip simple-app-fltk2 /home/Shared/fltk/fltk2-config --use-images --post simple-app-fltk2 make[1]: Leaving directory `/home/devuser/src/ Fl_Native_File_Chooser-0.84' [EMAIL PROTECTED] Fl_Native_File_Chooser-0.84]$ I see no errors. All is well with the world. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

