User Tools

Site Tools


openvsp_build_script

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
openvsp_build_script [2020/06/03 14:33]
cibin Make script robust during unexpected errors and set a few defaults for a non-interactive build. Use Ninja instead of Make for a slightly faster build. Script fallbacks to Make if errors occur.
openvsp_build_script [2020/06/03 14:42] (current)
cibin Add verbose statements for location of deb package and build system used
Line 76: Line 76:
 echo "​Building libraries ..." echo "​Building libraries ..."
 rm -rf $OpenVSP/​buildlibs/​* rm -rf $OpenVSP/​buildlibs/​*
-{ cd $OpenVSPdir/​buildlibs && ​+echo "Build using Ninja" &&​ 
 +  ​cd $OpenVSPdir/​buildlibs && ​
   cmake -G "​Ninja"​ \   cmake -G "​Ninja"​ \
   -DVSP_USE_SYSTEM_LIBXML2=true \   -DVSP_USE_SYSTEM_LIBXML2=true \
Line 90: Line 91:
   ninja   ninja
 } || {  } || { 
 +  echo "Build using Make" &&
   cd $OpenVSPdir/​buildlibs && ​   cd $OpenVSPdir/​buildlibs && ​
   cmake \   cmake \
Line 111: Line 113:
 # Build using Ninja since it's faster. # Build using Ninja since it's faster.
 # Fallback to Make if errors occur # Fallback to Make if errors occur
-{ cd $OpenVSPdir/​build &&+echo "Build using Ninja" &&​ 
 +  ​cd $OpenVSPdir/​build &&
   cmake -G "​Ninja"​ ../​repo/​src/​ \   cmake -G "​Ninja"​ ../​repo/​src/​ \
   -DVSP_LIBRARY_PATH=$OpenVSPdir/​buildlibs \   -DVSP_LIBRARY_PATH=$OpenVSPdir/​buildlibs \
Line 119: Line 122:
   cp *.deb $OpenVSPdir/​   cp *.deb $OpenVSPdir/​
 } || { } || {
 +  echo "Build using Make" &&
   cd $OpenVSPdir/​build && rm -f $OpenVSPdir/​build/​* &&   cd $OpenVSPdir/​build && rm -f $OpenVSPdir/​build/​* &&
   cmake ../​repo/​src/​ \   cmake ../​repo/​src/​ \
Line 148: Line 152:
 echo  echo 
 echo "​OpenVSP build successfull!"​ echo "​OpenVSP build successfull!"​
 +echo "Deb package created in directory: $OpenVSPdir/"​
 </​file>​ </​file>​
openvsp_build_script.txt · Last modified: 2020/06/03 14:42 by cibin