# How to compile FMOD project using CMake instead of old NDK Makefiles?

**URL:** <https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842>\
**Category:** FMOD Engine\
**Tags:** android\
**Created:** [June 3, 2020, 9:22pm UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842 "2020-06-03T21:22:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafagan](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rafagan](https://qa.fmod.com/u/rafagan)\
**Post date:** [June 3, 2020, 9:22pm UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/1 "2020-06-03T21:22:21Z")

</div>

I trying to compile a simple android project including fmod, without success. How can I achieve that? There’s some way to update the android examples with the new approach?

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [June 3, 2020, 10:22pm UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/2 "2020-06-03T22:22:14Z")

</div>

Our examples are setup to directly import into Android Studio, are you able to build them with that?

---

<div class="post-metadata">

**Author:** ![rafagan](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rafagan](https://qa.fmod.com/u/rafagan)\
**Post date:** [June 4, 2020, 12:46pm UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/3 "2020-06-04T12:46:29Z")

</div>

The examples are ok, up and running. But they’re using the legacy ndk integration system with makefiles. The new projects with NDK enabled are developed using the CMake integration. In that way, I can’t use the knowledge base of examples to config my own.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [June 4, 2020, 10:42pm UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/4 "2020-06-04T22:42:11Z")

</div>

I will raise a ticket for some information to be added to our documentation for people using CMake.

---

<div class="post-metadata">

**Author:** ![Rambazamba](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Rambazamba](https://qa.fmod.com/u/Rambazamba)\
**Post date:** [August 30, 2020, 8:33am UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/5 "2020-08-30T08:33:16Z")

</div>

Is there any update on this? I would also be in need of cmake documentation. :-/

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [August 30, 2020, 10:57pm UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/6 "2020-08-30T22:57:47Z")

</div>

Our next release (hopefully this week) will ship with CMake examples you can use as reference.

---

<div class="post-metadata">

**Author:** ![Rambazamba](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Rambazamba](https://qa.fmod.com/u/Rambazamba)\
**Post date:** [August 31, 2020, 3:56am UTC](https://qa.fmod.com/t/how-to-compile-fmod-project-using-cmake-instead-of-old-ndk-makefiles/15842/7 "2020-08-31T03:56:52Z")

</div>

Great thank you 🙂
