Fix "Oculus SDK not found or older than 1.0" when uploading to Oculus store

This commit is contained in:
Guillaume Meunier
2024-09-20 21:24:40 +02:00
parent c1af302d1e
commit 1e646c1257
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ android {
// for Vulkan, need at least 24
// for AImage_getHardwareBuffer, API 26
minSdkVersion 29
compileSdkVersion 29
compileSdkVersion 32
targetSdkVersion 32 // for Oculus Store
versionName = "1.0"
versionName = "0.19"
versionCode = 1
externalNativeBuild {
+2 -1
View File
@@ -27,7 +27,8 @@ if(ANDROID)
find_library(AAUDIO_LIBRARY NAMES aaudio REQUIRED)
target_link_libraries(wivrn ${ANDROID_LIBRARY} ${MEDIA_LIBRARY} ${AAUDIO_LIBRARY})
set(DYNAMIC_LOADER OFF)
# The OpenXR loader must be dynamically loaded or the Oculus store will refuse it with "Oculus SDK not found or older than 1.0"
set(DYNAMIC_LOADER ON)
FetchContent_MakeAvailable(openxr_loader)
target_link_libraries(wivrn openxr_loader)