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 [2019/05/05 06:25]
liam Addition of Ubuntu 18.04 compile instructions
ubuntu_instructions [2019/09/14 11:30] (current)
cibin Fix typo
Line 5: Line 5:
 ====== Instructions for Ubuntu 14.04 ====== ====== Instructions for Ubuntu 14.04 ======
  
-First, you need to make sure your computer has all the required ​compilers, build tools, and libraries. ​ Use apt get or your favorite package manager to install them.  Here is a list of required package names for Ubuntu 14.04:+1. First install ​all required ​packages:
  
-  * g++ +<​code>​ 
-  * cmake +sudo apt-get install ​g++ cmake git git-gui libxml2-dev libfltk1.3-dev libcpptest-dev libjpeg-dev libglm-dev libeigen3-dev libcminpack-dev libglew-dev ​doxygen swig 
-  * git +</​code>​
-  * git-gui +
-  * libxml2-dev +
-  * libfltk1.3-dev +
-  * libcpptest-dev +
-  * libjpeg-dev +
-  * libglm-dev +
-  * libeigen3-dev +
-  * libcminpack-dev +
-  * libglew-dev+
  
-Once you're done installing those, you need to set up a place to hold the source repository ​and the build files. ​ You then need to use git to download the OpenVSP source.  Use the command prompt, starting from your favorite directory:+2. Make main directory ​and clone OpenVSP source:
  
 <​code>​ <​code>​
 mkdir OpenVSP; cd OpenVSP mkdir OpenVSP; cd OpenVSP
  
-mkdir build +mkdir build repo
- +
-mkdir repo+
  
 git clone https://​github.com/​OpenVSP/​OpenVSP.git repo git clone https://​github.com/​OpenVSP/​OpenVSP.git repo
  
 cd build cd build
- 
 </​code>​ </​code>​
  
-Now you can use CMake to set up the build files -- instructing the OpenVSP build to use all those libraries from the system CMake will set up any non-system libraries to build, and the OpenVSP ​build will know where everything is.+3Set up and build OpenVSP:
  
 <​code>​ <​code>​
Line 49: Line 37:
 We recently added a requirement for a *very* recent version of CMake (in src/​vsp_aero/​solver),​ but this is really only required for Windows builds. ​ Since your Linux distribution is unlikely to package such a new CMake, you may need to modify that CMake file. We recently added a requirement for a *very* recent version of CMake (in src/​vsp_aero/​solver),​ but this is really only required for Windows builds. ​ Since your Linux distribution is unlikely to package such a new CMake, you may need to modify that CMake file.
  
-Once CMake completes without error, you can proceed to build everything. ​ This will take a while.+Once CMake completes without error, you can proceed to build everything. ​Adjust the integer after -j to tell //make// the number of recipes to execute simultaneously. ​This will take a while.
  
 <​code>​ <​code>​
-make+make -j8
 </​code>​ </​code>​
  
-There will be some warnings, but it should complete without errors. ​ If there are errors, please report ​them to the Google Group for help.+There will be some warnings, please report ​any errors ​to the Google Group for help. 
 + 
 +4. Make joint folder with executables:​
  
 The build process leaves all the various executable files scattered around the build system. ​ If you want to collect them all together in a zip file like you would download from the website, you can do that too. The build process leaves all the various executable files scattered around the build system. ​ If you want to collect them all together in a zip file like you would download from the website, you can do that too.
Line 70: Line 60:
 1. First install all required packages: 1. First install all required packages:
 <​code>​ <​code>​
-sudo apt-get install git git-gui cmake libxml2-dev libfltk1.3-dev g++ libcpptest-dev libjpeg-dev libglm-dev libeigen3-dev libcminpack-dev libglew-dev swig+sudo apt-get install git git-gui cmake libxml2-dev libfltk1.3-dev g++ libcpptest-dev libjpeg-dev libglm-dev libeigen3-dev libcminpack-dev libglew-dev ​doxygen ​swig
 </​code>​ </​code>​
  
Line 77: Line 67:
 <​code>​ <​code>​
  
-mkdir OpenVSP +mkdir OpenVSPcd OpenVSP
- +
-cd OpenVSP+
  
 mkdir repo build buildlibs mkdir repo build buildlibs
Line 112: Line 100:
 </​code>​ </​code>​
  
-6. Make joint folder with executives:+6. Make joint folder with executables:
  
 <​code>​ <​code>​
Line 153: Line 141:
  
 <​code>​ <​code>​
-mkdir OpenVSP +mkdir OpenVSPcd OpenVSP
- +
-cd OpenVSP+
  
 mkdir repo build buildlibs mkdir repo build buildlibs
Line 196: Line 182:
 </​code>​ </​code>​
  
-7. Patch LIBXML+7. Patch LIBXML ​(if required)
  
 Replace these lines in /​home/​your/​path/​to/​OpenVSP/​build/​CMakeCache.txt Replace these lines in /​home/​your/​path/​to/​OpenVSP/​build/​CMakeCache.txt
Line 208: Line 194:
 <​code>​LIBXML2_LIBRARIES:​FILEPATH=/​usr/​lib/​x86_64-linux-gnu/​libxml2.so</​code> ​ <​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: ​ Replace: ​
Line 216: Line 205:
 <​code>​PYTHON_LIBRARY_DEBUG:​FILEPATH=/​usr/​lib/​python2.7/​pdb.py</​code>​ <​code>​PYTHON_LIBRARY_DEBUG:​FILEPATH=/​usr/​lib/​python2.7/​pdb.py</​code>​
  
-8. Build OpenVSP+9. Build OpenVSP
  
 <​code>​ <​code>​
Line 222: Line 211:
 </​code>​ </​code>​
  
-9. Make joint folder with executives:+10. Make joint folder with executables:
  
 <​code>​ <​code>​
ubuntu_instructions.1557062756.txt.gz · Last modified: 2019/05/05 06:25 by liam