From: Tatsuro M. <tma...@ya...> - 2018-03-11 05:04:32
|
Sorry I forgot to reply to beta-list ----- Original Message ----- > From: Dima Kogan > To: gnuplot-beta > Cc: > Date: 2018/3/11, Sun 10:55 > Subject: Re: Link fails on Ubuntu 16.04 (on WSL) due to undefined reference to symbol 'FcUcs4ToUtf8' > >T atsuro MATSUOKA <tma...@ya...> writes: > >> I pull the recent git repository and tried to build on Ubuntu 16.04 on >> WSL. >> >> In linking gnuplot executable I see >> >> undefined reference to symbol 'FcUcs4ToUtf8' > > You're either not linking with the libfontconfig library, or you have > the wrong library, or something. Send over the full build log if you > want help debugging. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot You are right. In link stage, -lfontconfig is missing. c++ -g -O2 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/opt/fontconfig-2.12.93/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng12 -DWXT_MONOTHREADED -fPIC -lcerf -o gnuplot alloc.o axis.o breaders.o boundary.o color.o command.o contour.o datablock.o datafile.o dynarray.o eval.o external.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o jitter.o libcerf.o matrix.o misc.o mouse.o multiplot.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stats.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o wxterminal/wxt_gui.o wxterminal/gp_cairo.o wxterminal/gp_cairo_helpers.o qtterminal/qt_term.o -lreadline -lncurses -lz -lgd -lgd -llua5.3 -lcaca -L/usr/lib/x86_64-linux-gnu -pthread -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lX11 -lQt5Network -lQt5Svg -lQt5PrintSupport -lQt5Widgets -lQt5Gui -lQt5Core -lcaca -ldl -lm -lcerf -lz -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lcairo -lglib-2.0 Adding manually -lfontcondig to the above, link is successful. Compressed config.log.bz2 is attached. Workaround is to add LIBS='-lfontconfig' to configure flag. I think that gnuplot so far uses fontconfig via external libraries (e.g. cairo, pango). Is this Commit [7ecbe3] first event to use fontconfig directory. Gnuplot check libfontconfig add -lfontconfig in library flag. Tatsuro If it is in the case, libconfig Tatsuro |