o3de / o3de-extras

Other
61 stars 61 forks source link

[OpenXR] Error while building project. #691

Open JaviNunsys opened 5 months ago

JaviNunsys commented 5 months ago

I'm not able to build and open the sample project for OpenXR.

The CMakeProjectBuildError log shows the following error:

.../o3de-extras/Gems/OpenXRVk/Code/CMakeLists.txt:11 (o3de_gem_setup): Unknown CMake command "o3de_gem_setup".

What am I missing? Thanks!

lemonade-dm commented 5 months ago

Are you using an older version of the Engine? If so the main branch from o3de-extras would need to be used.

The o3de_gem_setup function was added to the O3DE engine development branch in November here.

The OpenXR gem development branch version was updated to use the o3d3_gem_setup function at the beginning of February https://github.com/o3de/o3de-extras/blame/development/Gems/OpenXRVk/Code/CMakeLists.txt#L9-L11.

If you are using the O3DE 23.10.2 point release, then the o3de-extras development branch is too new to use. Either the main branch or the point-release-23102 branch needs to be used

lemonade-dm commented 5 months ago

I am keeping this issue open waiting for a reply.

JaviNunsys commented 5 months ago

Hi! Thanks for your help!

I switched to 23102 release, but I'm still getting a different error message.

Checking Build System Building Custom Rule D:/Users/javier.serra/Downloads/o3de-extras-2310.2-lfs/Projects/OpenXRTest/Gem/CMakeLists.txt unity_0_cxx.cxx OpenXRTest.Static.vcxproj -> D:\Users\javier.serra\Downloads\o3de-extras-2310.2-lfs\Projects\OpenXRTest\build\windows\lib\profile\OpenXRTest.Static.lib Copying OpenXRTest runtime dependencies to output... Building Custom Rule D:/Users/javier.serra/Downloads/o3de-extras-2310.2-lfs/Projects/OpenXRTest/Gem/CMakeLists.txt unity_0_cxx.cxx Creando biblioteca D:/Users/javier.serra/Downloads/o3de-extras-2310.2-lfs/Projects/OpenXRTest/build/windows/lib/profile/OpenXRTest.lib y objeto D:/Users/javier.serra/Downloads/o3de-extras-2310.2-lfs/Projects/OpenXRTest/build/windows/lib/profile/OpenXRTest.exp OpenXRTest.vcxproj -> D:\Users\javier.serra\Downloads\o3de-extras-2310.2-lfs\Projects\OpenXRTest\build\windows\bin\profile\OpenXRTest.dll Building Custom Rule D:/Users/javier.serra/Downloads/o3de-extras-2310.2-lfs/Gems/XR/Code/CMakeLists.txt unity_0_cxx.cxx D:\Users\javier.serra\Downloads\o3de-extras-2310.2-lfs\Gems\XR\Code\Include\XR\XRSystem.h(74,29): error C3668: 'XR::System::GetControllerTransform': el m?todo con el especificador de invalidaci?n 'override' no invalid? ning?n m?todo de clase base [D:\Users\javier.serra\Downloads\o3de-extras-2310.2-lfs\Projects\OpenXRTest\build\windows\External\XR-67d75bbc\Code\XR.Static.vcxproj] AZ::RHI::ResultCode GetControllerTransform(const AZ::u32 handIndex, AZ::Transform& outTransform) const override; ^ (compilando archivo de origen "CMakeFiles/XR.Static.dir/Unity/unity_1_cxx.cxx")

D:\Users\javier.serra\Downloads\o3de-extras-2310.2-lfs\Gems\XR\Code\Include\XR\XRSystem.h(74,29): error C3668: 'XR::System::GetControllerTransform': el m?todo con el especificador de invalidaci?n 'override' no invalid? ning?n m?todo de clase base [D:\Users\javier.serra\Downloads\o3de-extras-2310.2-lfs\Projects\OpenXRTest\build\windows\External\XR-67d75bbc\Code\XR.Static.vcxproj] AZ::RHI::ResultCode GetControllerTransform(const AZ::u32 handIndex, AZ::Transform& outTransform) const override; ^ (compilando archivo de origen "CMakeFiles/XR.Static.dir/Unity/unity_0_cxx.cxx")

unity_1_cxx.cxx

Any hint about this?