-
Notifications
You must be signed in to change notification settings - Fork 0
Building SocketDwarf on Linux
This Tutorial is currently under development. It is written using Ubuntu 13.04 - Raring Ringtail. Other Ubuntu Versions and Linux distributions are yet untested but may work thou.
You need the following packages from the Ubuntu Repository: git, cmake, libboost-all-dev, libcppunit-dev
apt-get install git, cmake, libboost-all-dev, libcppunit-dev
apt-get install scon
wget "http://sourceforge.net/projects/jsoncpp/files/jsoncpp/0.6.0-rc2/jsoncpp-src-0.6.0-rc2.tar.gz/download"
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
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.
After building the SDK you have to move the resulting Libraries to a folder where the SocketDwarf project may find them. Where this is exactly will be documented soon.
-
Create Eclipse Workspace with cmake
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ./
-
Import the resulting Project as
Existing Code as Makefile Project
-
Build it and find the results in the
build/bin
folder