MLSDK - Native C++
Learn how to develop for the Magic Leap 2 using the Magic Leap SDK and Native C++.
We are actively transitioning our SDK to align with OpenXR standards. To ensure applications are future-proof, developers are advised to use OpenXR as their primary development path. Consider using the MLSDK only when accessing features not currently available via OpenXR APIs.
Resources
🗃️ Building Native Application Framework Samples
2 items
📄️ Migrating from ML1
The Magic Leap 2 no longer uses mabu as the build system. Instead, Gradle and CMake are now the tools used to build apps when using the Magic Leap C-API.
📄️ Modifying APK for AR
In most cases, you can simply create a new Native C++ project in Android Studio and build it for the Magic Leap 2 platform. However, if you need the output to be in AR space, there are a few modifications necessary:
📄️ C-API Samples Overview
The list below contains descriptions of each of the C-API samples available in the ML Hub. The README.md files of each example contain instructions on how to build, install and uninstall the example, as well as its expected behavior and GUI.