Ubuntu install libgdiplus error how to do?

  

Linux libgdiplus is a Mone library that can be used to display the color of web pages. However, many people complain when installing libgdiplus on Ubuntu system, which causes the installation to be impossible. What should I do if I encounter this problem? The following small series will introduce you to the Ubuntu failure to install libgdiplus. When installed in libgdiplus2.10.9 Ubuntu 14.04 LTS 64-bit system

error occurred.

First download the libgdiplus2.10.9 installation package

Enter the directory and start the configure compilation

. /configure --prefix=/usrmake

Install libgdiplus in the /usr directory

Found an error in the operating system:

gdiplus-private.h:33 :31: fatal error: freetype/tttables.h: No such file or directory #include ^compilation terminated.make[2]: *** [adjustablearrowcap.lo] Error 1make[2]: Leaving directory `/root/libgdiplus- 2.10/src‘make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/libgdiplus-2.10’make: *** [all] Error 2root@ubuntu:~/libgdiplus -2.10# sudo ln -s /usr/X11/include/freetype2/freetype//usr/X11/include/freetypeln: failed to create symbolic link ‘/usr/X11/include/freetype’: No such file or directory< Br>

This error means that the /usr/X11/include/freetype link failed to be created, because freetype

could not be found. We open /usr/include to see if there is a freetype directory, no, but We found freetype2 so we can make a link

Ln -s /usr/include/freetype2 /usr/include/freetype

Then continue to make the error found as follows:

/usr/lib64/libglib-2.0.so.0: could not read Symbols: Invalid operationcollect2: error: ld returned 1 exit statusmake[2]: *** [testgdi] Error 1make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests‘make[1] : *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9’make: *** [all] Error 2

Solution:

Execute first. /configure command, then edit the test/Makefile file; change 130 lines of LIBS = -lpthread -lfontconfig to LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11; execute the make command again.

Make again, is it very successful, ok, make install

The above is the solution to the error when Ubuntu installs libgdiplus, if you get an error when installing, the system can try The method described in this article is addressed.

Copyright © Windows knowledge All Rights Reserved