Gnuplot Error: undefined symbol: FT_Property_Set

烂漫一生 提交于 2020-01-06 07:19:54

问题


I'm having trouble running gnuplot 5.2 on my desktop (Ubuntu 18.04). I get the following error:

$ gnuplot

    G N U P L O T
    Version 5.2 patchlevel 2    last modified 2017-11-01 

    Copyright (C) 1986-1993, 1998, 2004, 2007-2017
    Thomas Williams, Colin Kelley and many others

    gnuplot home:     http://www.gnuplot.info
    faq, bugs, etc:   type "help FAQ"
    immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'qt'
gnuplot> test
/usr/lib/gnuplot/gnuplot_qt: symbol lookup error: /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: undefined symbol: FT_Property_Set

Warning: slow font initializationgnuplot> 
gnuplot>

I have tried upgrade-ing gnuplot using apt to no avail, and I'm not sure what else to try.

I found a similar question with no answers here: libQt5XcbQpa.so.5: undefined symbol: FT_Property_Set

Edit

My gnuplot depends on libfreetype6, which is installed but apparently incorrectly. The installed libfreetype is:

$ apt-file list libfreetype6
libfreetype6: /usr/lib/x86_64-linux-gnu/libfreetype.so.6
...

According to nm that library contains no symbols:

$ nm /usr/lib/x86_64-linux-gnu/libfreetype.so.6
nm: /usr/lib/x86_64-linux-gnu/libfreetype.so.6: no symbols

But using strings it does contain what's missing:

$ strings /usr/lib/x86_64-linux-gnu/libfreetype.so.6 | grep FT_Property_Set
FT_Property_Set

So it seems like I just need to point gnuplot to the correct location containing libfreetype? What is the best way to do that?


回答1:


Posting an answer here so others can find it in the future. The issue was a conflicting other version of libfreetype from a Tecplot installation.

That version was slightly different (does not include FT_Property_Set, at least) and was getting loaded first. Unloading Tecplot, or unsetting that portion of my $LD_LIBRARY_PATH, worked for me.



来源:https://stackoverflow.com/questions/57396756/gnuplot-error-undefined-symbol-ft-property-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!