Installing FreeImage
Procedure
- Use PuTTY to log in to the server as the root user.
- Download the FreeImage installation package.
wget http://downloads.sourceforge.net/freeimage/FreeImage3180.zip
- Decompress the FreeImage installation package.
unzip FreeImage3180.zip
- Go to the directory generated after the decompression.
cd FreeImage
- Edit the Makefile.gnu configuration file.
sed -i '26s/privacy/privacy -Wno-narrowing/g' Makefile.gnu
- Configure the environment variables.
export CC=gcc CXX=g++ FC=gfortran
- Perform the compilation and installation.
make -j64 make DESTDIR=/path/to/FREEIMGE install
- Copy the include and lib directories to the parent directory.
cd /path/to/FREEIMGE/usr cp -r /path/to/FREEIMGE/usr/* /path/to/FREEIMGE/
Parent topic: Configuring the Compilation Environment