Skip to content

HPC Cloud Instructions

Milan Jelisavcic edited this page Sep 5, 2018 · 1 revision
sudo apt-get install ubuntu-desktop

sudo apt-get install unity-lens-applications
unity --reset-icons
sudo apt install gnome-disk-utility

Essentials

sudo apt-get install git \  
				 cmake \ 
				 build-essential \ 
				 cppcheck \ 
				 xsltproc \ 
				 python \ 
				 mercurial \ 
				 libogre-1.9-dev \ 
				 libbullet-dev \ 
				 python-protobuf \ 
				 libprotoc-dev \ 
				 libprotobuf-dev \ 
				 libfreeimage-dev \ 
				 protobuf-compiler \ 
				 libboost-thread-dev \ 
				 libboost-signals-dev \ 
				 libboost-system-dev \ 
				 libboost-filesystem-dev \ 
				 libboost-program-options-dev \ 
				 libboost-regex-dev \ 
				 libboost-iostreams-dev \ 
				 libboost-test-dev \ 
				 libqt4-dev \ 
				 libcurl4-openssl-dev \ 
				 libtar-dev \ 
				 libtbb-dev \ 
				 libgts-dev \ 
				 uuid-dev \ 
				 libswscale-dev \ 
				 libavformat-dev \ 
				 libavcodec-dev \ 
				 libgraphviz-dev \ 
				 libhdf5-dev \ 
				 libopenal-dev \ 
				 pkg-config \ 
				 freeglut3-dev \
                                  libgsl0-dev \
                                  libyaml-cpp-dev

Install Cmake

cd /tmp && wget http://www.cmake.org/files/v3.5/cmake-3.5.2.tar.gz
tar xf cmake-3.5.2.tar.gz
cd cmake-3.5.2
./configure
make && sudo make install

Install ignition-math2

hg clone https://bitbucket.org/ignitionrobotics/ign-math /tmp/ign-math
cd /tmp/ign-math
hg up ign-math2
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j4
sudo make install

Install SDFormat

sudo apt install libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-iostreams-dev libtinyxml-dev  libxml2-utils  ruby-dev  ruby

cd /tmp && wget http://osrf-distributions.s3.amazonaws.com/sdformat/releases/sdformat-3.1.1.tar.bz2
tar -xaf /tmp/sdformat-3.1.1.tar.bz2
cd /tmp/sdformat-3.1.1
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE="Release" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
make -j4
sudo make install

Disable gz target, it won't compile for some weird reason

echo >tools/CMakeLists.txt 'include ( ${QT_USE_FILE} )
add_definitions(${QT_DEFINITIONS})

include_directories(
  ${tinyxml_INCLUDE_DIRS}
  ${PROTOBUF_INCLUDE_DIR}
  ${SDFormat_INCLUDE_DIRS}
)

link_directories(
  ${CCD_LIBRARY_DIRS}
  ${SDFormat_LIBRARY_DIRS}
  ${tinyxml_LIBRARY_DIRS}
)

if (HAVE_BULLET)
  link_directories(${BULLET_LIBRARY_DIRS})
endif()

if (HAVE_DART)
  link_directories(${DARTCore_LIBRARY_DIRS})
endif()

if (CURL_FOUND)
  include_directories(${CURL_INCLUDEDIR})
  link_directories(${CURL_LIBDIR})
  if (WIN32)
    add_definitions(-DCURL_STATICLIB)
  endif()
endif()


set (test_sources
  gz_log_TEST.cc
  gz_TEST.cc
)

gz_build_tests(${test_sources})

install (PROGRAMS gzprop DESTINATION ${BIN_INSTALL_DIR})

if (NOT WIN32)
  manpage(gzprop 1)
endif()
'

Install Gazebo

mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE="Release" \
         -DCMAKE_INSTALL_PREFIX=/usr \
         -DENABLE_SSE4=True \
         -DENABLE_TESTS_COMPILATION:BOOL=False
make -j8
sudo make install
# terminate called after throwing an instance of 'std::runtime_error'
#   what():  locale::facet::_S_create_c_locale name not valid
export LC_ALL=C; unset LANGUAGE

Install Revolve

cmake ../cpp \
      -DCMAKE_BUILD_TYPE="Release" \
      -DLOCAL_BUILD_DIR=1 
make -j8

Install TOL-Revolve

cmake ../cpp \
      -DCMAKE_BUILD_TYPE="Release" \
      -DREVOLVE_BUILD_PATH="`pwd`/../../revolve/build" 
make -j8

Install virtual environment

sudo apt-get install python-virtualenv libfreetype6-dev  pkg-config libpng12-dev python-dev
virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt

sudo apt install gnome-terminal
_________________
/ Premature      \
| optimization   |
| is the root of |
| all evil.      |
|                |
\ -- D.E. Knuth  /
-----------------
    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            ||----w |
            ||     ||
Clone this wiki locally