Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK used is out of date... #2

Open
BrainSlugs83 opened this issue Feb 7, 2020 · 13 comments
Open

SDK used is out of date... #2

BrainSlugs83 opened this issue Feb 7, 2020 · 13 comments

Comments

@BrainSlugs83
Copy link
Owner

No description provided.

@clayg
Copy link

clayg commented Jun 2, 2020

@BrainSlugs83 the README says to download from here. Is that not the latest, or do you just mean the published image needs an update?

@BrainSlugs83
Copy link
Owner Author

BrainSlugs83 commented Oct 22, 2020

Apologies for the late reply -- this fell completely off my radar!!

The published image needs an update -- if you build from source with the latest SDK from the link you posted it should all work though.

@discomfortingsounds
Copy link

discomfortingsounds commented Aug 29, 2022

@BrainSlugs83

Hey, I got an error while building the QuakeQuest app:
"error: use of undeclared identifier 'VRAPI_DEVICE_TYPE_OCULUSQUEST2'; did you mean 'VRAPI_DEVICE_TYPE_OCULUSQUEST'?"

Is this error caused by outdated by the outdated Oculus SDK?
Either way, I then tried building the image from source with the latest SDK, and I got this error:

"=> ERROR [ 4/19] RUN cd ${ANDROID_HOME}/tools/bin && sdkmanager --update && sdkmanager "lldb;3.1" "ndk-bundle" "cmake;3.10.2.4988404" "platform-tools" "p 1.0s

> [ 4/19] RUN cd ${ANDROID_HOME}/tools/bin && sdkmanager --update && sdkmanager "lldb;3.1" "ndk-bundle" "cmake;3.10.2.4988404" "platform-tools" "platforms;android-21" "platforms;android-22" "platforms;android-23" "platforms;android-24" "platforms;android-25" "platforms;android-26" "platforms;android-27" "platforms;android-28" "platforms;android-29" "build-tools;21.1.2" "build-tools;22.0.1" "build-tools;23.0.3" "build-tools;24.0.3" "build-tools;25.0.3" "build-tools;26.0.3" "build-tools;27.0.3" "build-tools;28.0.3" "build-tools;29.0.1":
#7 0.893 /bin/sh: 1: cd: can't cd to /tools/bin

executor failed running [/bin/sh -c cd ${ANDROID_HOME}/tools/bin && sdkmanager --update && sdkmanager "lldb;3.1" "ndk-bundle" "cmake;3.10.2.4988404" "platform-tools" "platforms;android-21" "platforms;android-22" "platforms;android-23" "platforms;android-24" "platforms;android-25" "platforms;android-26" "platforms;android-27" "platforms;android-28" "platforms;android-29" "build-tools;21.1.2" "build-tools;22.0.1" "build-tools;23.0.3" "build-tools;24.0.3" "build-tools;25.0.3" "build-tools;26.0.3" "build-tools;27.0.3" "build-tools;28.0.3" "build-tools;29.0.1"]: exit code: 2"

Do I need to have Android Studio etc. to be installed to build the image? Or is this caused by something else?

Thanks

@BrainSlugs83
Copy link
Owner Author

I'll take a look this weekend and see if I can get the image updated; I've let this sit for far too long. Apologies.

@discomfortingsounds
Copy link

@BrainSlugs83
That would be great, thank you. I tried mounting the new Oculus SDK version onto your image to see if that would help, but I keep getting more and more errors. I have given up

@BrainSlugs83
Copy link
Owner Author

@discomfortingsounds if you do another docker pull to get the latest the image, it should be able to build the latest QuakeQuest by running the build command: docker run -it --rm -v %cd%:/proj brainslugs83/ovrsdk /opt/build.sh from the QuakeQuest directory.

I haven't tested it yet on my device, but it does output an .apk file. -- Let me know if it works for you or not.

@discomfortingsounds
Copy link

@BrainSlugs83
Thank you, I will check it out either today or tomorrow. I actually want to use this to build a Lamda1vr apk. I said QuakeQuest since that was your test case on Github. Either way, I'll test both and report back.

@discomfortingsounds
Copy link

@BrainSlugs83 I was able to build QuakeQuest (couldn't test the app as I don't have Quake installed), but the Lamda1vr build gave me an error unfortunately:

  make: Leaving directory '/opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android'
  make: Entering directory '/opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android'
  echo [armeabi-v7a] "Install        ": "libmenu.so => /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/lib/armeabi-v7a/libmenu.so"
  install -p /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libmenu.so /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/lib/armeabi-v7a/libmenu.so
  /opt/android-sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded  /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/lib/armeabi-v7a/libmenu.so
  make: Leaving directory '/opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android'
  make: Entering directory '/opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android'
  echo [armeabi-v7a] "Install        ": "libvrapi.so => /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/lib/armeabi-v7a/libvrapi.so"
  install -p /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libvrapi.so /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/lib/armeabi-v7a/libvrapi.so
  /opt/android-sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded  /opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android/build/intermediates/ndkBuild/release/lib/armeabi-v7a/libvrapi.so
  make: Leaving directory '/opt/ovrsdk/VrSamples/Lambda1VR/Projects/Android'

  make: *** No rule to make target 'client', needed by 'ndk-app-local'.  Stop.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s

command (['/opt/ovrsdk/bin/scripts/build/../../../gradlew', 'assembleRelease', '--daemon', '-quiet', '--build-cache', '--configure-on-demand', '--parallel']) failed with returncode: 1

Sorry for the inconvenience caused by me not telling earlier that I needed it for Lambda1vr

Thank you

@BrainSlugs83
Copy link
Owner Author

I hadn't tested it with Lambda1vr before... that's the Half Life port right? -- Would love to support that; I'll take a look.

@discomfortingsounds
Copy link

@BrainSlugs83 It is indeed, thanks a lot!

@BrainSlugs83
Copy link
Owner Author

BrainSlugs83 commented Sep 12, 2022

Just wanted to give an update on this -- I'm not sure what's causing the issue yet, but I haven't given up.

Right now I'm testing other versions of the OVR Mobile SDK -- to see if there is a version that works for both Quake Quest and Lambda1VR -- if there is, I will downgrade to that version (rather than just upping it to 1.50, like I did in the last build).

I will also test some of @DrBeef's other projects (Quake2Quest, etc.) to try and find the most compatible version -- if we can find one that can build all of the projects, I will update the docker image to that.

If it turns out we need a plethora of different versions, I will just publish several docker images.

I also want to update the build script to be more compatible with different versions of the SDK.

So, I'm working through all of that right now. -- It might be another week. -- Apologies on the delay. -- I really want to get this working for everyone.

@discomfortingsounds
Copy link

@BrainSlugs83 Thank you for work! There is no hurry at all, so please take your time. Good luck

@DrBeef
Copy link

DrBeef commented Sep 12, 2022

Hi @BrainSlugs83 .. they should all be able to build with the latest (and possibly last) Oculus Mobile SDK, v1.50.. if you find any of them don't, then let me know and I'll see if I can make a change to get it to work. I don't think there's any reason why they shouldn't off the top of my head.
One day I'll put some effort in to make them work with OpenXR, but today's not the day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants