User Tools

Site Tools


ubuntu_instructions

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
ubuntu_instructions [2018/04/01 14:41]
127.0.0.1 external edit
ubuntu_instructions [2019/05/08 04:01] (current)
liam amend python patch instruction number
Line 139: Line 139:
  
 After corrected the errors, clean the build directory and redo step 5. After corrected the errors, clean the build directory and redo step 5.
 +
 +====== Instructions for Ubuntu 18.04 ===
 +
 +The following is a walkthrough of Ubuntu 18.04 (with Python 2.7) installation. This has been successfully tested on Ubuntu, Ubuntu Mate and Linux Mint 18.
 +
 +1. First install all required packages:
 +
 +<​code>​
 +sudo apt-get install git git-gui cmake libxml2-dev libfltk1.3-dev g++ libjpeg-dev libglm-dev libeigen3-dev libcminpack-dev libglew-dev swig doxygen graphviz texlive-latex-base
 +</​code>​
 +
 +2. Make main directory and clone OpenVSP source:
 +
 +<​code>​
 +mkdir OpenVSP
 +
 +cd OpenVSP
 +
 +mkdir repo build buildlibs
 +
 +git clone https://​github.com/​OpenVSP/​OpenVSP.git repo
 +</​code>​
 +
 +3. A working method for 18.04 is to set up the the libraries separately. To prepare the build files use the following:
 +
 +<​code>​
 +cd buildlibs
 +
 +cmake -DVSP_USE_SYSTEM_CPPTEST=false -DVSP_USE_SYSTEM_LIBXML2=false -DVSP_USE_SYSTEM_EIGEN=false -DVSP_USE_SYSTEM_CODEELI=false -DVSP_USE_SYSTEM_FLTK=false -DVSP_USE_SYSTEM_GLM=false -DVSP_USE_SYSTEM_GLEW=true -DVSP_USE_SYSTEM_CMINPACK=true -DVSP_USE_SYSTEM_LIBIGES=false ../​repo/​Libraries -DCMAKE_BUILD_TYPE=Release
 +</​code>​
 +
 +4. Build the libraries:
 +
 +Adjust the integer after -j to tell //make// the number of recipes to execute simultaneously.
 +
 +<​code>​
 +make -j8
 +</​code>​
 +
 +5. FLTK Fix (if required)
 +
 +<​code>​
 +cd ../build
 +
 +cp ../​buildlibs/​FLTK-prefix/​bin/​fluid ../​repo/​src/​vsp_aero/​viewer/​
 +
 +cp ../​buildlibs/​FLTK-prefix/​bin/​fluid ../​repo/​src/​fltk_screens/​
 +</​code>​
 +
 +6. Set up OpenVSP:
 +
 +Adjust <​code>​your/​path/​to</​code>​ to suit your path names to the OpenVSP directory. Default paths names for Python 2.7 have been provided.
 +
 +<​code>​
 +cmake ../​repo/​src/​ -DVSP_LIBRARY_PATH=/​home/​your/​path/​to/​OpenVSP/​buildlibs -DPYTHON_EXECUTABLE=/​usr/​bin/​python2.7 -DPYTHON_LIBRARY=/​usr/​lib/​x86_64-linux-gnu/​libpython2.7.so -DPYTHON_INCLUDE_DIR=/​usr/​include/​python2.7 -DPYTHON_INCLUDE_PATH=/​usr/​include -DCMAKE_BUILD_TYPE=Release
 +</​code>​
 +
 +7. Patch LIBXML (if required)
 +
 +Replace these lines in /​home/​your/​path/​to/​OpenVSP/​build/​CMakeCache.txt
 +
 +Note, do NOT replace the LIBRARY path.
 +
 +<​code>​ LIBXML2_INCLUDE_DIR:​PATH=/​usr/​include/​libxml2 </​code>​
 +
 +Add this line (change libxml2.so path as required):
 +
 +<​code>​LIBXML2_LIBRARIES:​FILEPATH=/​usr/​lib/​x86_64-linux-gnu/​libxml2.so</​code> ​
 +
 +8. Patch Python Debug Library
 +
 +Replace these lines in /​home/​your/​path/​to/​OpenVSP/​build/​CMakeCache.txt
 +
 +Replace: ​
 +<​code>​PYTHON_LIBRARY_DEBUG:​FILEPATH=PYTHON_LIBRARY_DEBUG-NOTFOUND</​code>​
 +
 +with
 +
 +<​code>​PYTHON_LIBRARY_DEBUG:​FILEPATH=/​usr/​lib/​python2.7/​pdb.py</​code>​
 +
 +9. Build OpenVSP
 +
 +<​code>​
 +make -j8
 +</​code>​
 +
 +10. Make joint folder with executives:
 +
 +<​code>​
 +make package
 +</​code>​
 +
 +
 +
 +
ubuntu_instructions.1522618860.txt.gz ยท Last modified: 2019/05/05 06:25 (external edit)