Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build failure (undefined references, other) #5190

Closed
Wayward1 opened this issue Feb 8, 2017 · 1 comment
Closed

Android build failure (undefined references, other) #5190

Wayward1 opened this issue Feb 8, 2017 · 1 comment
Labels
Android Bug Issues that were confirmed to be a bug @ Build CMake, build scripts, official builds, compiler and linker errors

Comments

@Wayward1
Copy link
Contributor

Wayward1 commented Feb 8, 2017

Android build from latest Git fails with
jni/../jni/src/script/scripting_game.cpp:96:` error: undefined reference to 'ModApiStorage::Initialize(lua_State*, int)' jni/../jni/src/script/scripting_game.cpp:113: error: undefined reference to '`StorageRef::Register(lua_State*)' collect2: error: ld returned 1 exit status /home/home/android-ndk-r11c/build/core/build-binary.mk:665: recipe for target 'obj/local/armeabi-v7a/libminetest.so' failed make[2]: *** [obj/local/armeabi-v7a/libminetest.so] Error 1

@rubenwardy
Copy link
Member

@nerzhul you forgot to add the files to the android config.

This happens pretty much everytime a new file is added, the dev forgets to add it to android. It needs to be added to the config file in build/android/jni/

@nerzhul nerzhul added @ Build CMake, build scripts, official builds, compiler and linker errors Android Bug Issues that were confirmed to be a bug labels Feb 8, 2017
@nerzhul nerzhul closed this as completed in 607dab2 Feb 8, 2017
Ekdohibs pushed a commit to Ekdohibs/minetest that referenced this issue Feb 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Bug Issues that were confirmed to be a bug @ Build CMake, build scripts, official builds, compiler and linker errors
Projects
None yet
Development

No branches or pull requests

3 participants