# Compiling OpenXR source for ML2

**URL:** <https://forum.magicleap.cloud/t/compiling-openxr-source-for-ml2/1607>\
**Category:** OpenXR\
**Created:** [March 20, 2023, 12:35pm UTC](https://forum.magicleap.cloud/t/compiling-openxr-source-for-ml2/1607 "2023-03-20T12:35:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob42lou](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/rob42lou/32/656_2.png) [@rob42lou](https://forum.magicleap.cloud/u/rob42lou)\
**Post date:** [March 20, 2023, 12:35pm UTC](https://forum.magicleap.cloud/t/compiling-openxr-source-for-ml2/1607/1 "2023-03-20T12:35:26Z")

</div>

Hi,

I'm trying to compile the Khronos OpenXR source as my project complains about not finding "libopenxr\_loader.so", however I can only seem to get the dll or lib file from their source using cmake and/or VS2019. Does anyone have any experience in this or suggestions?

**ML2 OS version** : Latest  
**MLSDK version** : Latest

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [March 20, 2023, 5:10pm UTC](https://forum.magicleap.cloud/t/compiling-openxr-source-for-ml2/1607/2 "2023-03-20T17:10:21Z")

</div>

Hi @rob42lou, thank you for your post, and welcome to the Magic Leap 2 Forum. I presume "source" in this instance is [GitHub - KhronosGroup/OpenXR-SDK-Source: Sources for OpenXR loader, basic API layers, and example code.](https://github.com/KhronosGroup/OpenXR-SDK-Source)  
If that's the case:

Use Android Studio to open `src/tests/hello_xr`  
Hit Build / Run

Please let me know if this helps unblock you.
