godotengine / godotengine/godot-cpp
Compiling for Android fails due to missing symbol
- Dominant language
- C++
- Stars
- 2.7k
- Forks
- 809
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 8
Description
Hello,
I can't seem to get any Android build working due to a missing symbol issue.
I'm compiling on an Ubuntu LTS "Bionic Beaver" machine using following commands:
```
aarch64-linux-android29-clang -fPIC -o src/gdsqlite.os -c src/gdsqlite.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers
aarch64-linux-android29-clang -fPIC -o src/library.os -c src/library.cpp -g -O3 -std=c++14 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers
aarch64-linux-android29-clang -fPIC -o src/sqlite/sqlite3.os -c src/sqlite/sqlite3.c -g -O3 -Igodot-cpp/include -Igodot-cpp/include/core -Igodot-cpp/include/gen -Igodot-cpp/godot_headers
aarch64-linux-android29-clang -o demo/addons/godot-sqlite/bin/arm64v8/libgdsqlite.so -shared src/gdsqlite.os src/library.os src/sqlite/sqlite3.os -Lgodot-cpp/bin -lgodot-cpp.android.debug.arm64v8
```
Unfortunately running this (with remote debug enabled) gives following errors in the console:
```
E 0:00:01.036 reflection_atlas_set_size: Condition "status != 0x8CD5" is true. Continuing.
drivers/gles3/rasterizer_scene_gles3.cpp:526 @ reflection_atlas_set_size()
```
(Which is spammed 10+ times in the console!)
and probably more dire:
```
E 0:00:16.154 open_dynamic_library: Can't open dynamic library: libgdsqlite.so, error: dlopen failed: cannot locate symbol "_ZTVN10__cxxabiv120__si_class_type_infoE" referenced by "/data/app/org.godotengine.sqlitedemo-2/lib/arm64/libgdsqlite.so"....
Condition "!p_library_handle" is true. Returned: ERR_CANT_OPEN
platform/android/os_android.cpp:233 @ open_dynamic_library()
```
Anyone has any idea what I'm doing wrong?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.