|
|
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.
Phil.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/1we4kpf1egyukc8cqetu4vbf.1713268972158%40email.android.com.
[ Direct Link to Message ] | |
|
| |