wiki:FuntooLinux

Version 3 (modified by Nikos Alexandris, 7 years ago) ( diff )

WikiProcessor: s/bash/sh/

Compiling under Funtoo-Linux

The Generic Compilation & installation procedure is valid also for the Funtoo-Linux meta-distribution. The following example scripts are provided as a mean to get started.

Installing dependencies

Following likely needs to be updated!

# # Searching for missing packages, e.g. wxwidgets
# e-file wx-config

# emerge dependecies -- This will take quite some time! Hint: net-libs/webkit-gtk
USE="curl xls fftw gmath motif  wxwidgets gml hdf5 jpeg2k mdb netcdf odbc ogdi opencl postgres spatialite sqlite szip" \
emerge -av proj geos gdal \
           xerces \
           mesa motif libGLw  \
           tcl tk clang llvm byacc opencl \
           unixODBC postgresql-base ogdi spatialite \
           libgeotiff hdf5 netcdf \
           eselect-postgresql eselect-opencl eselect-wxwidgets \
           wxpython pyopengl \
           fftw

# before compiling
eselect python set 1 # probably #1 is python 2.7

Example Scripts

A simple configuration and compilation

# clean previous configuration
make distclean

# update source code
svn up

# renice! source: <http://lists.osgeo.org/pipermail/grass-user/2013-May/068229.html>
renice +17 -p $$

# configure
./configure \
--with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
2>&1 | tee config_log.txt

# compile
time make -j13

An attempt for a complete configuration and compilation checking. In addition, this script times each of the executed commands (need for scrolling back!).

# clean previous configuration
time make distclean

# update
time svn up

# renice! source: <http://lists.osgeo.org/pipermail/grass-user/2013-May/068229.html>
renice +17 -p $$

# configure
CFLAGS="-ggdb -march=native -Wall -Werror-implicit-function-declaration" \
./configure \
--with-cxx \
--with-includes=/usr/include/ --with-libs=/usr/lib64/ \
--with-proj \
--with-proj-includes=/usr/include/ \
--with-proj-libs=/usr/lib64/ \
--with-proj-share=/usr/share/proj/ \
--with-geos \
--with-geos=/usr/bin/geos-config \
--with-gdal=/usr/bin/gdal-config \
--with-x \
--with-motif \
--with-cairo \
--with-opengl-libs=/usr/include/GL \
--without-ffmpeg \
--with-python=yes --with-python=/usr/bin/python2.7-config \
--with-wxwidgets \
--with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
--with-odbc=yes \
--with-sqlite=yes \
--with-mysql=yes --with-mysql-includes="/usr/include/mysql" --with-mysql-libs=/usr/lib/mysql \
--with-postgres=yes --with-postgresql=yes --with-postgres-includes="/usr/include/postgresql" \
--with-opencl --with-openmp --with-pthread \
--with-lapack \
--with-fftw \
--with-readline \
--with-regex \
--with-nls \
--with-jpeg \
--with-tiff \
--with-png \
--with-netcdf \
--without-opendwg \
--enable-largefile=yes \
2>&1 | tee config_log.txt

# check "make"
time make check
Note: See TracWiki for help on using the wiki.