Note: above is your buld /linker commandline. You are obviously
linking in three FLTK libs: '-lfltk -lfltk_forms -lfltk_images'. See
below...
[...]
Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x1c):
undefined reference to `FcInit'
/usr/bin/ld:
Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x2c):
undefined reference to `FcPatternCreate'
/usr/bin/ld:
Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x40):
undefined reference to `FcObjectSetBuild'
/usr/bin/ld:
Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x54):
undefined reference to `FcFontList'
[...]
The lines above show undefined references, i.e. a missing library.
As Mohammed wrote: you need to add the fontconfig library to your
linker commandline or any linker options in netbeans. Either the
full string "-lfontconfig" or only the library name 'fontconfig' -
wherever you added the FLTK libs and maybe other libs in Netbeans. I
don't know where this may be, something like linker options or
additional link libraries etc.
Do you know what happened? Did something move?
Not sure, we need some more info.
Most important: did you run `sudo make install` after your FLTK
build completed? The default would be to *install* the built
libraries and header files in '/usr/local' where your Netbeans
project expects them: '-I/usr/local/include -L/usr/local/lib' etc..
If you did not, then please do it now - otherwise your Netbeans
project would have to be changed to refer to the FLTK build
directory which is possible but more complicated for now. If you did
run `sudo make install` then you can skip this.
Next step: adding the fontconfig library to your build command may
or may not resolve all issues, there may well be more libs required.
If it works you're done, if not, continue:
That's what `fltk-config` is good for: a "simple" approach is to
build a working FLTK test program with fltk-config, like this:
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.
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'.