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 revision Previous revision
Next revision
Previous revision
en:dev:development [2018/05/16 10:33]
Antonello Lobianco [Linux (Ubuntu 16.04)]
en:dev:development [2020/07/30 16:32] (current)
Antonello Lobianco [ADOL-C] Reinserted the lib64 trick as it seems it is indeed needed
Line 8: Line 8:
 This section contains detailed instructions on how to get and install the IDE and all the necessary prerequisites, in both Windows or Linux environment. For the former, third party libraries (IPOPT, Adol-C, ColPack) are already available within the FFSM source code repository, so the instruction for their installation refers only to the case that a new version of them is released and the user want to upgrade to it.\\ This section contains detailed instructions on how to get and install the IDE and all the necessary prerequisites, in both Windows or Linux environment. For the former, third party libraries (IPOPT, Adol-C, ColPack) are already available within the FFSM source code repository, so the instruction for their installation refers only to the case that a new version of them is released and the user want to upgrade to it.\\
  
-===== Linux (Ubuntu 16.04) =====+===== Linux (Ubuntu 20.04) =====
  
-//See older revisions of this page for older Ubuntu systems and for tips to solving some errors no longer occurring in Ubuntu 16.10.//+//See older revisions of this page for older Ubuntu systems and for tips to solving some errors no longer occurring in Ubuntu 18.04 and 16.10.//
  
 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 qt5-default qt5-qmake qtcreator libatlas-base-dev libatlas-dev gfortran zlib1g-dev libboost-all-dev +sudo apt-get install qt5-default qt5-qmake qtcreator libatlas-base-dev gfortran zlib1g-dev libboost-all-dev
-# Optional, for the qtcreator helper: +
-sudo apt-get install libgstreamer0.10-0 libgstreamer0.10-dev libgstreamer-plugins-base0.10-0+
 </code> </code>
  
Line 30: Line 28:
  
 ==== ColPack ==== ==== ColPack ====
-  * Download ColPack >= 1.0.8 (ColPack-1.X.X.tar.gz) from http://www.cscapes.org/download/ColPack/ and unzip it.+  * Site web: [[https://github.com/CSCsw/ColPack/]] 
 +  * 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
 +cd ColPack                                       # ColPack Root Directory
 +git checkout 10b780b52a25c6ccef3d2abc12055ee85b7e8667 # checkout a version know to works
 +autoreconf -vif                                
 ./configure --prefix=/usr 'CXXFLAGS=-O3' 'CFLAGS=-O3' ./configure --prefix=/usr 'CXXFLAGS=-O3' 'CFLAGS=-O3'
 make make
 sudo make install sudo make install
 </code> </code>
-//Notes: The web site cscapes seems to no longer exists. {{:en:dev:colpack-1.0.9.tar.gz|Here is a copy of the last available ColPack library, the 1.0.9}}. //+
  
 ==== ADOL-C ==== ==== ADOL-C ====
Line 46: Line 50:
 sudo make install sudo make install
 </code> </code>
 +
   * 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>
 cd /usr/lib cd /usr/lib
Line 56: Line 61:
 ===== Windows (XP or 7) ===== ===== Windows (XP or 7) =====
  
 +New Sept 2018 (work in progress)
 +
 +Download:
 +  - qt installer from https://qt.io
 +    - modules Qt 5.11.1 (MinGW 5.3.0 32 bits)
 +    - tools:
 +      - Qt Creator 4.7.0 CDB Debug Suport
 +      - MinGW 5.3.0
 +      -  Qt Installer Framework 3.0
 +  - Git for windows from https://gitforwindows.org
 +  - Tortoise Git from https://tortoisegit.org
 ===== MinGW ===== ===== MinGW =====
  
Line 181: Line 197:
 A few tips (see screenshots): A few tips (see screenshots):
   - In the Configure project option, choose the dot (".") for the Debug and release directory   - In the Configure project option, choose the dot (".") for the Debug and release directory
-  - In the build and run be sure the default gdb is selected as debugger (it wasn't in a clean install on my machine)+  - In the build and run be sure that Qt5 is selected as default Qt and the default gdb is selected as debugger (it wasn't in a clean install on my machine)
   - In order to watch STL containers while degugging, in the debug options uncheck the "Load system GDB pretty printers"   - In order to watch STL containers while degugging, in the debug options uncheck the "Load system GDB pretty printers"
  
en/dev/development.1526459619.txt.gz · Last modified: 2018/06/18 16:44 (external edit)