Skip to content

Building SocketDwarf on Linux

semidark edited this page Oct 25, 2013 · 21 revisions

Ubuntu


This Tutorial is currently under development. It is written using Ubuntu 13.04 - Raring Ringtail and tested with Ubuntu 12.04 - Precise Pangolin. Other Ubuntu Versions and Linux distributions are yet untested but should work.


Required dependencies

Dependencies provided by default Repository

You need the following packages from the Ubuntu Repository: git, cmake, libboost-all-dev, libcppunit-dev

apt-get install build-essential git cmake libboost-all-dev libcppunit-dev

jsoncpp

apt-get install scons
wget "http://sourceforge.net/projects/jsoncpp/files/jsoncpp/0.6.0-rc2/jsoncpp-src-0.6.0-rc2.tar.gz /download" -O jsoncpp-src-0.6.0-rc2.tar.gz
tar -xvzf jsoncpp-src-0.6.0-rc2.tar.gz
cd jsoncpp-src-0.6.0-rc2
scons platform=linux-gcc

Jsoncpp doesn't seem to install itself, so you'll have to manually copy the library and header files wherever you want them when you're building applications that use the library.

sudo cp -r include/json /usr/local/include/
sudo cp libs/linux-gcc-*/libjson_linux-gcc-*_libmt.so /usr/lib/libjson.so

libOVR (Oculus SDK)

The latest version of the Oculus SDK is available at http://developer.oculusvr.com. Please see the Oculus SDK Overview in the OculusSDK/Doc/ directory for more information.

  1. You need to place the OculusSDK folder on the same level as your SocketDwarf folder.

  2. After building libOVR you have to move the resulting Libraries to a folder...

Building on Commandline

  1. Let cmake generate the makefiles
  2. run command make
  3. find build results in build/bin folder

Developing with Eclipse CDT

  1. Create Eclipse Workspace with cmake cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ./
  2. Import the resulting Project as Existing Code as Makefile Project
  3. Build it and find the results in the build/bin folder