On 16 April 2024, at 12:19, "'Albrecht Schlosser' via fltk.general" <fltkgeneral@googlegroups.com> wrote:
>On 4/16/24 05:52 TwoTrees Innerworld wrote:
>
>That's what `fltk-config` is good for: a "simple" approach is to build a working FLTK test program with fltk-config, like this:
>$ flltk-config --use-images --use-forms --compile /path/to/fltk/test/hello.cxx
>Replace /path/to/fltk with the path to your FLTK source files. Note that I added '--use-images --use-forms' so you link with the same FLTK libs as your Netbeans project.
>This command outputs the full compile and linker command to build the hello demo. Look for any libs that are missing from your Netbeans linker command, and add them as well, maybe step by step, until your build works.
>Another - shorter - command would have been:
>$ flltk-config --use-images --use-forms --ldstaticflags
>which outputs only the required linker flags. On my Raspi I get, for instance (but please use your output!):
>-lfltk_images -lpng -lz -lfltk_jpeg -lfltk_forms -lfltk -lXrender -lXft -lfontconfig -pthread -lpthread -ldl -lm -lX11
>Once you added all required libs to your Netbeans project this should work as well.
>
What I found useful was to add
`fltk-config --use-images --ldstaticflags`
as part of my build command using an archaic makefile flow.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.