# Engine does not run in Android Unity build (IL2CPP)

**URL:** https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968
**Category:** Pulse Physiology Engine
**Created:** [January 31, 2023, 3:13am UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968 "2023-01-31T03:13:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [January 31, 2023, 3:13am UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/1 "2023-01-31T03:13:26Z")

</div>

Hello,

(Just reposting in the correct category)

I am trying to build my Unity XR project with Pulse (using the scenario driver) using the IL2CPP pipeline but even after adding the link.xml the engine does not run inside the VR headset.

My issue is pretty similar to but after folloing the steps the engine still does not run.

> [@build Pulse in unity Android scripting backend il2cpp](https://discourse.kitware.com/t/build-pulse-in-unity-android-scripting-backend-il2cpp/739):
>
> Dear All, I’m trying to build Pulse in the scripting backend “IL2CPP” unfortunately it doesn’t work as shown in the image. Can you help me with that, thanks in advance slight_smile

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [January 31, 2023, 1:41pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/2 "2023-01-31T13:41:56Z")

</div>

What headset are you trying to use?  
There needs to be a native build of the PulseC library compatible with the target hardware.

---

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [January 31, 2023, 1:48pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/3 "2023-01-31T13:48:13Z")

</div>

I am using the HTC Vive Focus 3

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [January 31, 2023, 2:01pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/4 "2023-01-31T14:01:19Z")

</div>

Hmm  
I have recently recieved a note from another user about the HTC not running the android binary we provide.

I need to check and see if I have one available and see if I can figure out any native library requirements they might have

I will need to get back to you on this

---

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [January 31, 2023, 2:15pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/5 "2023-01-31T14:15:47Z")

</div>

Okay no worries,  
Thanks for the timely reply!

---

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [February 12, 2023, 11:20pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/6 "2023-02-12T23:20:36Z")

</div>

Any updates on whether this is a binary problem?  
I would like to be able to demo the project to some people soon.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 14, 2023, 12:59pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/7 "2023-02-14T12:59:12Z")

</div>

I have not gotten my hands on a vive yet

But I will go ahead and build the latest asset with win64 and android and you can test it out

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 23, 2023, 4:32pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/8 "2023-02-23T16:32:39Z")

</div>

Here is the latest pulse with win64 and android native libraries

Let me know how this goes

[https://data.kitware.com/api/v1/item/63f794e97b0dfcc98f66a1fc/download](https://data.kitware.com/api/v1/item/63f794e97b0dfcc98f66a1fc/download)

---

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [February 24, 2023, 6:08am UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/9 "2023-02-24T06:08:35Z")

</div>

It still does not run the Pulse Engine on the headset and no errors pop up in the console while running.

Works in the Unity Editor though without issues though.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 24, 2023, 1:21pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/10 "2023-02-24T13:21:16Z")

</div>

Hrm  
I think I am just going to have to scrounge up a vive and shell into it to see how to run C++ on it

---

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [February 24, 2023, 1:37pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/11 "2023-02-24T13:37:40Z")

</div>

Do you have a list of headsets that are compatible with Pulse?

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 24, 2023, 1:46pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/12 "2023-02-24T13:46:50Z")

</div>

No, Pulse is a C++ library, so its just figuring out the build requirments of the target headset to provide it a compatible native PulseC library. Some headsets provide an SDK, some do not. HTC does not seem to have good documentation on their requirements that I can find

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 24, 2023, 3:35pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/13 "2023-02-24T15:35:00Z")

</div>

I do have an occulus, I will try to run the pulse vitals monitor on the occulus and see what happens…

---

<div class="post-metadata">

### Author: ![studiobloom](https://discourse.kitware.com/user_avatar/discourse.kitware.com/studiobloom/32/681_2.png) [@studiobloom](https://discourse.kitware.com/u/studiobloom)
#### Post date: [March 3, 2023, 7:19pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/14 "2023-03-03T19:19:18Z")

</div>

i seem to be having the same issue but with my quest 1 device. i’ve followed all the extra steps i could find in the forums for setting things up properly on android/oculus specifically but have had no luck. i may try pulling the suggested repo and integrating my project into that if need be.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 3, 2023, 7:58pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/15 "2023-03-03T19:58:03Z")

</div>

Ok, I am working on getting something running on my Occulus

I should have more info next week

---

<div class="post-metadata">

### Author: ![studiobloom](https://discourse.kitware.com/user_avatar/discourse.kitware.com/studiobloom/32/681_2.png) [@studiobloom](https://discourse.kitware.com/u/studiobloom)
#### Post date: [March 3, 2023, 8:29pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/16 "2023-03-03T20:29:53Z")

</div>

you have had oculus quest running pulse engine before though? i see other users in the forums have as well, could it be a different version of the oculus SDK we are each using? maybe quest specific, like i run the quest 1, others may be running the quest 2.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 3, 2023, 8:34pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/17 "2023-03-03T20:34:35Z")

</div>

I have not  
Not sure about other users  
I have it running on my phone  
So I am pretty sure this is doable, just need to figure out what their build requirements are

Which I believe are this  
[https://developer.oculus.com/documentation/native/android/mobile-studio-setup-android/](https://developer.oculus.com/documentation/native/android/mobile-studio-setup-android/)

I just need to update my NDK setting to these targets and see how things go

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 5, 2023, 1:56pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/18 "2023-03-05T13:56:41Z")

</div>

Here is a native build for android api 26

[https://data.kitware.com/api/v1/item/64049f4a7b0dfcc98f66ac2f/download](https://data.kitware.com/api/v1/item/64049f4a7b0dfcc98f66ac2f/download)

Let see if that works on occulus, (maybe the vive?)

---

<div class="post-metadata">

### Author: ![dhuang101](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dhuang101](https://discourse.kitware.com/u/dhuang101)
#### Post date: [March 6, 2023, 4:57am UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/19 "2023-03-06T04:57:49Z")

</div>

A bit unsure about which files I should be replacing with your build.

Neither of the files in the Android-ARMv7a or v8a folders are called PulseC.so; both are called libPulseC.so. Also, should I be renaming the file to libPulseC or is it fine for it to be named PulseC?.

I believe the build we are looking for is running the v8a (ARM64) but would just like to make sure that I am following the right process.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 6, 2023, 1:46pm UTC](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968/20 "2023-03-06T13:46:12Z")

</div>

oh, just drop in the armv8 folder and rename PulseC.so to libPulseC.so

[Next page](https://discourse.kitware.com/t/engine-does-not-run-in-android-unity-build-il2cpp/968.md?page=2)
