French Forest Sector Model (FFSM++)

Laboratoire d'Economie Forestière - LEF - Nancy, France

User Tools

Site Tools


en:dev:development

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dev:development [2024/04/30 07:14] – [Ipopt] removed direct link to our server HSL libraries Antonello Lobiancoen:dev:development [2026/09/09 08:42] (current) – [Getting the source code] Antonello Lobianco
Line 16: Line 16:
 The following packages and their prerequisites should be installed: The following packages and their prerequisites should be installed:
 <code bash> <code bash>
-sudo apt-get install build-essential gfortran gcc g++ gcc-12  +sudo apt-get install build-essential gfortran gcc g++ 
-sudo apt-get install libtool git patch wget pkg-config +sudo apt-get install libtool libtool-bin git patch wget pkg-config 
-sudo apt-get install zlib1g-dev libboost-all-dev  libblas-dev liblapack-dev liblapack64-dev libmetis-dev libatlas-base-dev+sudo apt-get install zlib1g-dev libboost-all-dev  libblas-dev liblapack-dev liblapack64-dev libmetis-dev
 sudo apt-get install qtbase5-dev qtbase5-dev-tools qtchooser qt5-qmake qtcreator sudo apt-get install qtbase5-dev qtbase5-dev-tools qtchooser qt5-qmake qtcreator
 </code> </code>
Line 41: Line 41:
 mkdir Ipopt mkdir Ipopt
 cd Ipopt cd Ipopt
-wget https://github.com/coin-or/Ipopt/archive/refs/tags/releases/3.14.16.tar.gz +wget https://github.com/coin-or/Ipopt/archive/refs/tags/releases/3.14.20.tar.gz 
-tar -xzf 3.14.16.tar.gz+tar -xzf 3.14.20.tar.gz
  
 cd ~/programs/Ipopt cd ~/programs/Ipopt
Line 48: Line 48:
 cd ThirdParty-ASL cd ThirdParty-ASL
 ./get.ASL ./get.ASL
-./configure+./configure --prefix="/usr" 'CXXFLAGS=-O3' 'CFLAGS=-O3'
 make make
 sudo make install sudo make install
Line 54: Line 54:
 git clone https://github.com/coin-or-tools/ThirdParty-HSL git clone https://github.com/coin-or-tools/ThirdParty-HSL
 cd ThirdParty-HSL cd ThirdParty-HSL
-[extract the HSL archive as `~/programs/Ipopt/ThirdParty/HSL/coinhsl`] +mkdir coinhsl 
-./configure+wget https://nc.beta-lorraine.fr/s/w5M9ESpFWafK5H7/download -O coinhsl/coinhsl.zip 
 +unzip coinhsl/coinhsl.zip 
 +./configure --prefix="/usr" 'CXXFLAGS=-O3' 'CFLAGS=-O3'
 make make
 sudo make install sudo make install
-cd ../Ipopt-releases-3.14.16/+cd ../Ipopt-releases-3.14.20/
 mkdir build mkdir build
 cd build cd build
Line 65: Line 67:
 sudo make install sudo make install
 cd ../../.. cd ../../..
-make 
-sudo make install 
 </code> </code>
  
Line 73: Line 73:
   * Needed ColPack >= 1.0.8   * Needed ColPack >= 1.0.8
   * Type:<code bash>   * Type:<code bash>
-sudo apt-get install libtool +git clone https://github.com/CSCsw/ColPack.git  # Download ColPack as ~/programs/ColPack 
-git clone https://github.com/CSCsw/ColPack.git  # Download ColPack +cd ColPack/build/automake/ 
-cd ColPack                                       # ColPack Root Directory +autoreconf -vif 
-git checkout 10b780b52a25c6ccef3d2abc12055ee85b7e8667 # checkout a version know to works +mkdir mybuilds 
-autoreconf -vif                                 +cd mybuilds 
-./configure --prefix=/usr 'CXXFLAGS=-O3' 'CFLAGS=-O3' +../configure --prefix=/usr 'CXXFLAGS=-O3' 'CFLAGS=-O3' 
-make+make -j 8
 sudo make install sudo make install
 +cd ../../../..
 </code> </code>
 +
  
  
 ==== ADOL-C ==== ==== ADOL-C ====
  
-  * Download ADOL-C (ADOL-C-2.X.X.tgz) from http://www.coin-or.org/download/source/ADOL-C/ 
   * Type:<code bash>   * Type:<code bash>
-./configure --enable-docexa --enable-addexa --enable-sparse --prefix=/usr 'CXXFLAGS=-O3' 'CFLAGS=-O3'+mkdir ADOL-C 
 +cd ADOL-C 
 +wget https://www.coin-or.org/download/source/ADOL-C/ADOL-C-2.7.2.zip 
 +unzip ADOL-C-2.7.2.zip 
 +cd ADOL-C-2.7.2/ 
 +./configure --with-boost=no --enable-docexa --enable-addexa --enable-sparse --prefix=/usr 'CXXFLAGS=-O3' 'CFLAGS=-O3'
 make make
 sudo make install sudo make install
 </code> </code>
 +
 +==== Symlinks ====
  
   * On 64 bits Linux, symlink all libadoc.* libraries from /usr/lib64 to /usr/lib:<code bash>   * On 64 bits Linux, symlink all libadoc.* libraries from /usr/lib64 to /usr/lib:<code bash>
Line 98: Line 106:
 sudo ln -s ../lib64/libadolc.so . sudo ln -s ../lib64/libadolc.so .
 sudo ln -s ../lib64/libadolc.so.2 . sudo ln -s ../lib64/libadolc.so.2 .
-sudo ln -s ../lib64/libadolc.so.2.1.0 .+sudo ln -s ../lib64/libadolc.so.2.2.0 .
 </code> </code>
 +  * Make a symlink in the include system directory to the new name of coin (coin-or):<code bash>
 +cd /usr/include
 +sudo ln -s coin-or coin
 +</code>
 +
 +==== Libtool ====
 +(may not be necessary)
 +
 +  * ''libtool --finish /usr/local/lib''
 +  * ''libtool --finish /usr/lib''
  
 ===== Windows (XP or 7) ===== ===== Windows (XP or 7) =====
Line 226: Line 244:
   * [[en:download|Download FFSM++]]   * [[en:download|Download FFSM++]]
   * Type:<code bash>   * Type:<code bash>
-git clone https://github.com/LEFNancy/ffsm_pp.git+git@github.com:LEFNancy/ffsm_pp.git
 </code> </code>
-//Note: Git repository is currently set private untill we remove from it input data for which we do not have the copyright and hence we can't publicily release.//+//Note: Git repository is set private because it contains some data for wich we do not have the copyright and hence we can't publicily release. 
 +You need to have updated your public key to github in order for the command above to work 
 +//
  
 ====== Developing FFSM ====== ====== Developing FFSM ======
en/dev/development.1714461275.txt.gz · Last modified: (external edit)