Menu

#12 undefined reference to `gdImageStringFT`

closed
None
5
2014-08-27
2002-12-12
Brent Bryan
No

Hey there,
I am trying to compile gnuplot-3.8i (from the
distribution on SF) with using the gd libs. However, I
get the error:

term.o: In function `PNG_options':
/usr0/bryanba/gnuplot/gnuplot-3.8i.0/src/../term/gd.trm:606:
undefined reference to `gdImageStringFT'
/usr0/bryanba/gnuplot/gnuplot-3.8i.0/src/../term/gd.trm:532:
undefined reference to `gdImageStringFT'
term.o: In function `PNG_put_text':
/usr0/bryanba/gnuplot/gnuplot-3.8i.0/src/../term/gd.trm:1068:
undefined reference to `gdImageStringFT'
/usr0/bryanba/gnuplot/gnuplot-3.8i.0/src/../term/gd.trm:1090:
undefined reference to `gdImageStringFT'

I have gd-1.8.3-7 (libs and devel) installed on RedHat
7.2 and have tried installing with and without the
using the --with-gd=/usr/lib/ flag, but no luck.

Any ideas?

-Brent (brent@whitties.org)

Discussion

  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    Something went wrong with your ./configure run. It should
    have detected that you have the GD library, but not the
    freetype library that enables it to use more advanced fonts.

    The function it's complaining about it the interface between
    freetype and GD. For now, you may have to run ./configure
    using the "--without-freetype" option, or set up that
    library and retry the gnuplot from scratch (after a "make
    distclean").

     
  • Ethan Merritt

    Ethan Merritt - 2002-12-14

    Logged In: YES
    user_id=235620

    It appears that the gdImageStringFT() function had a different
    name prior to version 1.8.4 of libgd. I will look into
    autodetecting this version problem in ./configure and
    substituting the older call name instead.

    I will also add it to my growing list of libgd version problems.
    2.0.1 breaks area fill; 2.0.3 breaks text rotation....

    I haven't noticed any problems with 1.8.4 or 2.0.4 so I
    recommend
    switching to one of those for an immediate fix.

     
  • Lars Hecking

    Lars Hecking - 2003-01-22

    Logged In: YES
    user_id=28904

    This function is related to FreeType support in gd. Do you have
    FreeType rpms installed, and which version?
    What did configure say about the presence of gdImageStringFT
    or gdImageStringTTF?

     
  • Lars Hecking

    Lars Hecking - 2003-01-22
    • assigned_to: nobody --> lhecking
     
  • Lars Hecking

    Lars Hecking - 2003-02-13
    • status: open --> closed
     
  • Lars Hecking

    Lars Hecking - 2003-02-13

    Logged In: YES
    user_id=28904

    No further feedback - closing.

     

Log in to post a comment.