Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
BGBGDGD's avatar
BGBGDGD
Honored Guest
2 years ago

Build and Run hello_xr Sample App Error

PS D:\OpenXR-SDK-Source-main\build\win64> cmake -G "Visual Studio 17 2022" -A x64 ..\..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631.
-- Enabling OpenGL support
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
-- Could NOT find JsonCpp (missing: JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY)
D:/ovr_openxr_mobile_sdk_62.0/OpenXR/Libs/Android//
-- Enabling OpenGL support in hello_xr, loader_test, and conformance, if configured
-- Could NOT find glslc, using precompiled .spv files
-- OpenXR 1.0.34
-- Configuring done
CMake Error at src/tests/c_compile_test/CMakeLists.txt:30 (add_executable):
Target "openxr_c_compile_test" links to target "OpenXR::openxr_loader" but
the target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?

i tried to log ANDROID_ABI but no value How can I fix it?

4 Replies

  • I am having the same error following the BUILDING.MD in Ubuntu.

    -- Performing Test HAVE_FILESYSTEM_NEEDING_LIBCXXFS - Failed
    -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
    -- Enabling OpenGL support
    -- Found Vulkan: /usr/lib/x86_64-linux-gnu/libvulkan.so  
    -- Enabling Vulkan support
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE  
    -- Could NOT find JsonCpp (missing: JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY) 
    CMake Error at src/CMakeLists.txt:117 (set_property):
      set_property could not find TARGET OpenXR::openxr_loader.  Perhaps it has
      not yet been created.

     Did you find a fix?

    • BGBGDGD's avatar
      BGBGDGD
      Honored Guest

      i tried your way but still error.it cant found jsoncpp

  • BGBGDGD's avatar
    BGBGDGD
    Honored Guest

    CMake Error at src/tests/c_compile_test/CMakeLists.txt:30 (add_executable):
    Target "openxr_c_compile_test" links to target "OpenXR::openxr_loader" but
    the target was not found. Perhaps a find_package() call is missing for an
    IMPORTED target, or an ALIAS target is missing?

    I also downloaded the jsoncpp library to solve the problem of not finding jsoncpp. but the "OpenXR::openxr_loader" error still.ANDROID_ABI's value is  a null character