Skip to content Skip to sidebar Skip to footer

Android Ndk Include Eigen

I am trying to include the Eigen3 library in an Android project so I can do some Matrix math in native code. When I compile my project it complains: In file included from jni/Eigen

Solution 1:

The following resolved the aforementioned issue!

  1. Create a file called Application.mk in the directory projet_dir/jni/ (so it is projet_dir/jni/Application.mk).

  2. Add the following line to that file

    APP_STL:=stlport_static
    
  3. If you run into a shared_ptr error, try using APP_STL := gnustl_static instead.

Post a Comment for "Android Ndk Include Eigen"