# Failing to load PulseC (Android phone)

**URL:** https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660
**Category:** Pulse Physiology Engine
**Created:** [December 15, 2025, 7:31pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660 "2025-12-15T19:31:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ayfel](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@Ayfel](https://discourse.kitware.com/u/Ayfel)
#### Post date: [December 15, 2025, 7:31pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/1 "2025-12-15T19:31:04Z")

</div>

Hi,

We are facing this issue when trying to load pulse with a Unity 6 build for android phones. This is the runtime error we get (and obviously Pulse fails to work):

2025/12/15 13:59:43.837 10073 10123 Debug nativeloader Load /data/app/~~e9Gko5NAkr8KVPJWMRJjBA==/com.heizenrader.educationxr-fGVJYSOuNUcbp5OzpDS7Ew==/lib/arm64/libPulseC.so using class loader ns clns-9 (caller=/data/app/~~e9Gko5NAkr8KVPJWMRJjBA==/com.heizenrader.educationxr-fGVJYSOuNUcbp5OzpDS7Ew==/base.apk): dlopen failed: library “libc++\_shared.so” not found: needed by /data/app/~~e9Gko5NAkr8KVPJWMRJjBA==/com.heizenrader.educationxr-fGVJYSOuNUcbp5OzpDS7Ew==/lib/arm64/libPulseC.so in namespace clns-9

2025/12/15 13:27:51.834 884 907 Error Unity DllNotFoundException: Unable to load DLL ‘PulseC’. Tried the load the following dynamic libraries: Unable to load dynamic library ‘PulseC’ because of 'External/il2cpp/builds/external/baselib/Source/Posix/Baselib\_DynamicLibrary\_PosixApi.inl.h(33):Baselib\_DynamicLibrary\_OpenUtf8: Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library “PulseC” not found  
2025/12/15 13:27:51.834 884 907 Error Unity at Pulse.Unity.PulseUnityEngine.Allocate (System.Int32 model, System.String data\_dir) [0x00000] in \<00000000000000000000000000000000\>:0  
2025/12/15 13:27:51.834 884 907 Error Unity at Pulse.PulseEngineBase..ctor (Pulse.eModelType m, System.String data\_dir) [0x00000] in \<00000000000000000000000000000000\>:0  
2025/12/15 13:27:51.834 884 907 Error Unity at Caffeine.Viewer.Pulse.EdXR\_PulseEngineDriver.Start () [0x00000] in \<00000000000000000000000000000000\>:0

Interestingly when making a build for Meta Quest (Android) with the same pulse version, everything seems to be working. Any ideas?

---

<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: [December 15, 2025, 7:58pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/2 "2025-12-15T19:58:57Z")

</div>

I assume it’d be some target platform mismatch

I provide 2 versions of PulseC for android, an arm64 and an armv7 version.

 ![image](https://discourse.kitware.com/uploads/default/original/2X/a/a936904a5bace762b5b087466fb63a39d0a49035.png)

Are you targeting x86 or x86\_64?

---

<div class="post-metadata">

### Author: ![Ayfel](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@Ayfel](https://discourse.kitware.com/u/Ayfel)
#### Post date: [December 15, 2025, 8:07pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/3 "2025-12-15T20:07:19Z")

</div>

Just arm64 and armv7, I do see a warning when checking the arm64 one, not sure if it might have anything to do with it

 ![image](https://discourse.kitware.com/uploads/default/original/2X/1/1ec06d2ac8e08d75d87bca13a2af5f8f3f31de62.png)

dlopen failed: library “libc++\_shared.so” not found: needed by /data/app/~~e9Gko5NAkr8KVPJWMRJjBA==/com.heizenrader.educationxr-fGVJYSOuNUcbp5OzpDS7Ew==/lib/arm64/libPulseC.so in namespace clns-9 ←not sure if this says anything else that might help

---

<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: [December 15, 2025, 8:15pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/4 "2025-12-15T20:15:33Z")

</div>

How big is that on disk?  
I have starting statically linking to libC++ so its in the libPulseC.so rather than distribute the libc++\_shared.so…removing the need for that file

![image](https://discourse.kitware.com/uploads/default/original/2X/9/99e6f0d1410fe2a400843a85c0a3e78eeae57d1a.png)

---

<div class="post-metadata">

### Author: ![Ayfel](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@Ayfel](https://discourse.kitware.com/u/Ayfel)
#### Post date: [December 15, 2025, 8:19pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/5 "2025-12-15T20:19:41Z")

</div>

On disk inside the Unity project it is the following

 ![image](https://discourse.kitware.com/uploads/default/original/2X/6/699f92347499631f15fa51c0f4207f363b08024c.png)

However once inside the apk the size seems reduced, maybe that is stripped out?

 ![image](https://discourse.kitware.com/uploads/default/original/2X/c/c230d2145a8ceff32c055bd208736e57831ff1b1.png)

P.S: I did check inside the quest apk as well, where pulse actually works and the size is the same (11,851kb) so I am at a loss

---

<div class="post-metadata">

### Author: ![Ayfel](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@Ayfel](https://discourse.kitware.com/u/Ayfel)
#### Post date: [December 15, 2025, 9:28pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/6 "2025-12-15T21:28:53Z")

</div>

I grabbed the libc++\_shared.so from inside the quest apk (it was present in that apk for some reason) and put it next to the libPulseC.so in the phone Unity project and built and now its working, so maybe its missing that? (and something else was including that in the quest project?)

---

<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: [December 16, 2025, 2:06pm UTC](https://discourse.kitware.com/t/failing-to-load-pulsec-android-phone/1660/7 "2025-12-16T14:06:09Z")

</div>

Well, glad that worked  
I was trying to embed the C++ standard into PulseC so you did not have to do that

But I guess that did not work…
