sudo apt-get install libfreeimage-dev
sudo apt-get install libfreeimage
编译安装地址
https://github.com/Kanma/FreeImage
This distribution use zlib and XMake as GIT submodules. To download them, do:
$ git submodule init
$ git submodule update
It is recommended to compile the library in a separate folder. Here's how I do it:
$ mkdir build
$ cd build
$ cmake ..
$ make