I have to invoke the c method from the android application , i have googled and tried these two methods : (1) using the ndk-build present in the ndk and to generate a .so file which can be loaded using the system.load(<lib name>) and the call can be made to the c method but due to specific hw i am having , I am not able to build certain architecture specific modules, it is invoking certain methods from the .S files which I dont think that ndk knows how to link them with the .c files so i moved on to method 2 given below (2) i used the specific tool chain for the h/w device and build the shared library using this command -->
arch-specific-toochain-gcc -shared -Wl,-soname,<libtestengine.so> -o libTestengine.so <objectfilename.o> -lc and placed it under the same folder where ndk-build was creating the .so file that is libs/armeabi> but when i am i trying to load the libary i am getting this error by doing the logcat D/dalvikvm(17719): Trying to load lib /data/data/<package name>/lib/ libTestengine.so 0x43e45c48 I/dalvikvm(17719): Unable to dlopen(<package name>/lib/ libTestengine.so): Cannot load library: link_image[1995]: failed to link libTestengine.so Any help or missing info on what i am doing will be thankfull appreciated !! -Jess -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en.
