Skip to content Skip to sidebar Skip to footer

Ndk Error....on Doing Ndk-build

I get the following error when trying to perform an NDK-build... Can any one help me? lmImf/ImfHuf.cpp:133: undefined reference to `__cxa_throw' ./obj/local/armeabi-v7a/libfree

Solution 1:

Add this to your Application.mk:

APP_STL := gnustl_static
APP_CPPFLAGS += -frtti 
APP_CPPFLAGS += -fexceptions

It seems your FreeImage is build with the different run-time than your application.

Solution 2:

are you sure you didn't want APP_STL : = stlport_static? If I grep for, say, "__cxa_end_catch" I see it in $(NDK_ROOT)/sources/cxx-stl/gabi++/... that suggests a need for stlport as oposed to gnustl_static (which is broken in NDK (8c through 8e) BTW)

Post a Comment for "Ndk Error....on Doing Ndk-build"