seems compilation is fine dude to proper header, but fails at linking stage.
you can place libraries in lib path (which is usually $MYDROID/out/target/product/<target-name>/system/lib.. try copying manually and see if it helps. there are ways to export prebuilt binaries) next issue might probably be due to a library built with non-android tool linking to libraries from it., you can build the libraries using android toolchain CROSS_COMPILE=<mydroid directory>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- -- Regards, Deva www.bittoggler.com On Mon, Oct 11, 2010 at 5:34 PM, Vb <[email protected]> wrote: > Hi, > > I am trying to port an application which is compiling and working in > linux env. The application references a set of *.a files which was > given by an external vendor. > > I extracted the *.a and copied it into a *.so file. I copied the *.so > files and the include *.h files in to the /external/<app>/ folder. I > coped the app source into the /external/<app>/src folder. I wrote the > Android.mk file and built it as an executable <include $ > (BUILD_EXECUTABLE)>. I am getting the following error when i try to > make it. > > target Executable: aeapp (out/target/product/generic/obj/EXECUTABLES/ > aeapp_intermediates/LINKED/aeapp) > out/target/product/generic/obj/EXECUTABLES/aeapp_intermediates/ > aeapp4.o: In function `main': > /home/vijayvb/Android/external/aeapp/src/aeapp4.c:134: undefined > reference to `AEInitModuleStorageTable' > /home/vijayvb/Android/external/aeapp/src/aeapp4.c:163: undefined > reference to `AEVersion' > /home/vijayvb/Android/external/aeapp/src/aeapp4.c:165: undefined > reference to `AEInit' > /home/vijayvb/Android/external/aeapp/src/aeapp4.c:174: undefined > reference to `AEMaxTemplateSize' > /home/vijayvb/Android/external/aeapp/src/aeapp4.c:174: undefined > reference to `AEMalloc' > > Is this because the compiler is not able to find the necessary shared > library or is it because the shared library is not compiled properly > with respect to android? > > If it is not able to find the shared library, where am I supposed to > copy the shared libraries to? Right now i have coped then to out/ > target/product/generic/system/lib and out/target/product/generic/obj/ > lib > > Please help me out here. > > thanks > Vb > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
