Created
July 7, 2015 19:03
-
-
Save dirkk0/b474e1218dcc02025e25 to your computer and use it in GitHub Desktop.
Compiling Gear VR native apps on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I couldn't find a decent installation tutorial how to set up the Oculus SDK on the Ubuntu command line, so I created one. | |
This blog helped me a lot: | |
http://aaron.jaxns.net/category/gear-vr-development/ | |
I didnt't triple check this, so if there are problems, please bear with me. | |
If there is any interest, I can go in more detail and create a 'do-all' script. | |
a) Install Android: | |
https://gist.github.com/dirkk0/9b325888a268a595bfce | |
This gives you the latest Android (5.1.1)and Gradle (but you won't need Gradle). | |
b) Install Android-19: | |
echo "yes" | android update sdk --all --no-https --no-ui --filter build-tools-22.0.1,android-19,extra-android-support,sys-img-armeabi-v7a-android-19 | |
c) install ANT | |
sudo apt-get install ant | |
d) Install the NDK. | |
wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin | |
chmod a+x android-ndk-r10e-linux-x86_64.bin | |
./android-ndk-r10e-linux-x86_64.bin | |
Add the NDK to the path: | |
export PATH=${PATH}:~/android-ndk | |
echo "export PATH=\${PATH}:~/android-ndk" >> ~/.bashrc | |
source ~/.bashrc | |
e) Get the Oculus SDK and unzip it: | |
mkdir osdk; cd osdk | |
http://static.oculus.com/sdk-downloads/ovr_mobile_sdk_0.6.0.1.zip | |
unzip ovr_mobile_sdk_0.6.0.1.zip | |
f) compile the xxx example: | |
cd ~/osdk/VrSamples/Native/VrCubeWorld_NativeActivity/ | |
python build.py | |
This should compile without problems. | |
g) compile the Framework example: | |
cd ~/osdk/VrSamples/Native/VrCubeWorld_Framework | |
python build.py | |
Won't compile. | |
Edit the file VRLib/jni/VRMenu/VRMenuComponent.cpp and comment out line 14 '// #include "Android/Log.h' | |
Edit the file VrAppFramework/Src/TextTexture.cpp and comment out line 3 '// #include "Android/Log.h' | |
Edit the file and search and throw out all issues with 'LOG' (3 occurences, the first one are multiple lines) | |
h) Now you need to sign the apps with the Oculus Signature File Generator: | |
https://developer.oculus.com/osig/ | |
Unfortunately, it is down right now, so I can't complete this step. | |
Again, check Aaron's post: http://aaron.jaxns.net/category/gear-vr-development/ | |
Best, | |
Dirk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment