Skip to content

Building from Source on Linux

LtPinecone edited this page Apr 19, 2019 · 4 revisions

Urho-OSP builds like any other Urho3D project. In case the procedures described here are not for you, refer to the Urho3D documentation:

Linux:

Requires packages used by Urho3D: https://github.com/urho3d/Urho3D/wiki/Getting-started-in-Linux

1. Let's create and enter a new directory for OSP:

mkdir ~/OSP && cd ~/OSP

2. Clone urho-osp and the Urho3D game engine

git clone https://github.com/TheOpenSpaceProgram/urho-osp
git clone https://github.com/urho3d/Urho3D

3. Build and install Urho3D

cd Urho3D
cmake .
sudo make install

4. Copy CMake folder to the urho-osp cloned repository:

cp -r CMake ../urho-osp/CMake

5. Set the URHO3D_HOME environment variable in .bashrc:

echo 'export URHO3D_HOME="~/OSP/Urho3D"' >> ~/.bashrc && source ~/.bashrc

6. Build urho-osp:

cd ../urho-osp
cmake .
make

7. Mark as executable and run.

cd ../urho-osp/bin
chmod +x OSP
./OSP
You can’t perform that action at this time.