Rate This Document
Findability
Accuracy
Completeness
Readability

Installing FreeImage

Procedure

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