FLTK logo

Re: [fltk.general] Re: Font problem with new build

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Font problem with new build Mohammed 00:43 Apr 16  
 
It seems to missing libfontconfig symbols. You might try adding -lfontconfig to your build invocation. 

Sent from my iPhone

On 16 Apr 2024, at 06:52, TwoTrees Innerworld <twotreesinnerworld@gmail.com> wrote:


Hi Everyone,

OK, partial joy.
I installed all the updates and fltk-1.4.x
The test program runs and displays fonts correctly and with different point sizes.
The new problem is that now my Netbeans project won't successfully build anymore.
The modules seem to compile fine, but I get a ton of what I believe are linker errors.

It starts like this...
g++ -I/usr/local/include -L/usr/local/lib -lwiringPi    -o dist/Debug/GNU-Linux/fltk build/Debug/GNU-Linux/a_to_d.o build/Debug/GNU-Linux/distance.o build/Debug/GNU-Linux/getdisljump.o build/Debug/GNU-Linux/getdisnew.o build/Debug/GNU-Linux/kbhit.o build/Debug/GNU-Linux/main.o build/Debug/GNU-Linux/menu.o build/Debug/GNU-Linux/parallel.o build/Debug/GNU-Linux/serial.o -L/usr/local/lib -Wl,-rpath,'/usr/local/lib' -lfltk -lfltk_forms -lfltk_images -lpthread -ldl -lm -lX11 -lwiringPi -lXext -lstdc++
/usr/bin/ld: /usr/local/lib/libfltk.a(Fl_Xlib_Graphics_Driver_font_xft.o): in function `utf8extents(Fl_Xlib_Font_Descriptor*, char const*, int, _XGlyphInfo*)':
Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZL11utf8extentsP23Fl_Xlib_Font_DescriptorPKciP11_XGlyphInfo+0x48): undefined reference to `XftTextExtents32'
/usr/bin/ld: /usr/local/lib/libfltk.a(Fl_Xlib_Graphics_Driver_font_xft.o): in function `Fl_Xlib_Graphics_Driver::set_fonts(char const*)':
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'
/usr/bin/ld: Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x60): undefined reference to `FcPatternDestroy'
/usr/bin/ld: Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x68): undefined reference to `FcObjectSetDestroy'
/usr/bin/ld: Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x9c): undefined reference to `FcNameUnparse'
/usr/bin/ld: Fl_Xlib_Graphics_Driver_font_xft.cxx:(.text._ZN23Fl_Xlib_Graphics_Driver9set_fontsEPKc+0x134): undefined reference to `FcFontSetDestroy'
/usr/bin/ld: /usr/local/lib/libfltk.a(Fl_Xlib_Graphics_Driver_font_xft.o): in function `Fl_Xlib_Font_Descriptor::Fl_Xlib_Font_Descriptor(char const*, int, int)':

Do you know what happened? Did something move?

Thanks again for all the help!

- al


On Monday, April 15, 2024 at 8:29:25 AM UTC-5 Albrecht-S wrote:
On 4/15/24 14:25 'Albrecht Schlosser' wrote:
On 4/15/24 08:13 TwoTrees Innerworld wrote:
I installed 1.4.x without issue but still no joy.
The fonts demo does not change when I select different fonts.
The log file is attached.

Sorry, this is not what I meant - although it may contain all info, but it's way too verbose to be helpful.

Meanwhile I found at least one important info in your log:
configure:8835: result: no
configure:8835: checking for X11/Xft/Xft.h
configure:8835: result: no
configure:8893: WARNING: could not find the required Xft headers and/or libraries.
configure:8895: please install Xft headers and libraries or use 'configure --disable-xft'.
configure:9146: checking for X11/extensions/Xfixes.h
configure:9146: gcc -c -I/usr/include/freetype2 -I/usr/include/libpng16   -I/usr/include/freetype2 -I/usr/include/libpng16  conftest.c >&5
conftest.c:57:10: fatal error: X11/extensions/Xfixes.h: No such file or directory
   57 | #include <X11/extensions/Xfixes.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

This means that you did NOT (successfully) install all prerequisites, at least Xft is missing. We would have seen this in the original configure output because it would have issued this message:

WARNING: could not find the required Xft headers and/or libraries.
please install Xft headers and libraries or use 'configure --disable-xft'.

Having Xft development headers (and libs) installed is essential for correct font handling!

Maybe you missed updating your apt sources, or something else went awry when you tried to install the prerequisites as you told us.

Please run the following commands to correct this. Take care if there are any obvious error messages (except progress output):

sudo apt-get update # this is important before you install anything!

Then install (or reinstall) everything that's listed in README.Unix.txt, except maybe (a) git and (b) cmake which are optional if you (a) use a downloaded tarball/snapshot and (b) use configure/make rather than CMake to build - as I wrote in my basic instructions earlier:
sudo apt-get install g++
sudo apt-get install gdb
sudo apt-get install git        # OPTIONAL: to download FLTK from Git
sudo apt-get install make
sudo apt-get install cmake      # OPTIONAL: install CMake...
sudo apt-get install autoconf   # ...or autoconf (or both)
sudo apt-get install libx11-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install libxft-dev
sudo apt-get install libxcursor-dev

Please check that there are no error messages. If you are not sure, please capture the output in a text file and post it here.

After that, please rerun autoconf, ./configure and build (make), save the output, post it here, etc..

Hopefully this will enable correct font handling.

FYI: I tested on my own RPi 3 with a much older Raspbian version successfully:
$ cat /etc/issue.net; uname -a; g++ --version
Raspbian GNU/Linux 10
Linux raspi3 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
g++ (Raspbian 8.3.0-6+rpi1) 8.3.0


--
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/5625637f-b188-4fde-a13a-38b1de3ee3dcn%40googlegroups.com.

--
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/C15DB1E2-0E3C-4DC7-A37A-0964889A9CFF%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.