= Compiling under Funtoo-Linux = The [http://grasswiki.osgeo.org/wiki/Compile_and_Install#Generic_Compilation_and_installation_procedure Generic Compilation & installation procedure] is valid also for the [http://www.funtoo.org/ Funtoo]-Linux meta-distribution. The following example scripts are provided as a mean to get started. == Installing dependencies == ''Following likely needs to be updated! '' {{{ #!div style="font-size:85%" {{{ #!sh # # 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 {{{ #!div style="font-size:85%" {{{ #!sh # clean previous configuration make distclean # update source code svn up # renice! source: 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!). {{{ #!div style="font-size:85%" {{{ #!sh # clean previous configuration time make distclean # update time svn up # renice! source: 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 }}} }}}