![]() map-file-parser="D:\Unity\2018.4.8f1\Editor\Data\Tools\MapFileParser\MapFileParser. additional-libraries="D:\\Assets/Plugins/MFG/LibNat/Android/armeabi-v7a/libtest.a" In Android.mk you need to specify a module for each. The Android NDK provides a set of native APIs and libraries that you may. additional-include-directories="D:\Unity\2018.4.8f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" As I understand it, the correct method is to use ndk-build and not invoking the compiler directly. This is because these constants are defined with static linkage in the header. Now that Android Studio is relatively mature, so the following description will. I included the following lines to Android.mk file under jni directory. additional-include-directories="D:\Unity\2018.4.8f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" And application developers how to connect these generated static library or DLL. I created a new Android.mk file and included. cachedirectory="D:\\Assets\.\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" outputpath="D:\\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" LOCAL_CPPFLAGS := -fvisibility=hidden -DSTATIC_BUILDĬomplete il2cpp command line: D:\Unity\2018.4.8f1\Editor\Data\il2cpp/build/il2cpp.exe I could upgrade to 2019.2 if it helps.įor reference, this is my Application.mk: APP_STL := gnustl_staticĪnd Android.mk: LOCAL_PATH:= $(call my-dir) And I don't want to "hack" the build process in any way. ![]() However, is there any standard way how to make IL2CPP builder aware of this dependency? I looked everywhere but couldn't find anything. additional-libraries="C:\android-ndk-r16b\sources\cxx-stl\gnu-libstdc \4.9\libs\armeabi\libgnustl_static.a" I can fix this by adding explicit dependency on il2cpp.exe command line: It looks like il2cpp.exe is not aware of this dependency and I'm getting lot of errors like:Įrror: undefined reference to 'std::allocator::allocator()' I need to link my own static libraries (plugins written in C ) on Android with IL2CPP backend.Įverything seems to work right except linking GNU STL static library that my libraries depend on. ![]()
0 Comments
Leave a Reply. |