Android ndk cannot link function12/3/2023 Please, if anyone has any idea why 'extern' definition () is not linked with it's declaration in application's. Here is how I build my libs (first part) and my Application (that includes my libs) (second part): An AR Required app cannot function without ARCore. It seems like it can't link them together. This designation determines how the app interacts with the Google Play Services for AR app. This RTEngineSetup function is defined in my lib as : extern "C" void RTEngineSetup() Īnd then my application declares it like: void RTEngineSetup() I have android studio 4.1.2 and when I tried to set the ndk path in File -> Project Structure -> Sdk Location it would ask me to download the ndk even though it was already installed, I set the NDKHOME, ANDROIDNDKHOME and PATH environmental variables and nothing. I have an issue, where application builds just fine, and crashes on the device with the following error:Ġ7-12 00:45:03.680: E/dalvikvm(2161): dlopen("/data/app-lib/-16/libRTEngine.so") failed: dlopen failed: cannot locate symbol "RTEngineSetup" referenced by "libRTEngine.so". The package name value is case-sensitive, and it cannot be changed for this Firebase Android app after its registered with your Firebase project. As it is a lib, those 'extern' functions are then declared in project (.cpp) file. You should also set ANDROIDSDKROOT for that matter, though its not used for cross-compiling. ![]() Basically I’m looking for a standard way to load shared libraries from 'my directory' without changing LDLIBRARYPATH (it’s not possible sometimes) or using wrapper to dlopen all required libs. My lib has few 'extern' function defined. You must set ANDROIDNDKROOT prior to running the script. It’s not used and not needed for the project. ![]() I have built my Shared Library using NDK, that has few other libs in it.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |