Hadj Ali Oussama
Hadj Ali Oussama

Reputation: 784

C ++ library Cross compiling

I want to cross compile a c++ library to the android plateform and this library depends on other libraries (those librairies are included yet in the android plateform).

Actually ,i have downloaded the android source code (android 4.1), i have also the library source code and i just don't know how to cross compile this library with it dependencies? I would be thankfull if someone can tell me the right way to do it.

Upvotes: 2

Views: 222

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57173

I believe that the easiest path is to set up the standalone toolchain using latest Android NDK, and build your library and all its dependencies with that toolchain. Here is an example: http://trac.osgeo.org/gdal/wiki/BuildingForAndroid

Upvotes: 1

Related Questions