NDK r5 beta1 crashes on Android 1.6

来源:互联网 发布:彩虹秒赞源码破解版 编辑:程序博客网 时间:2024/04/29 14:03

http://www.crystax.net/trac/ticket/44

 

 

This is the same problem with official NDK r5b - when you're trying to use static libstdc++ with RTTI and exceptions, using
APP_STL := gnustl_static
inside Application.mk, and install the resulting .apk on the Android 1.6 device or emulator, it will crash when trying to load shared lib inside
gcc-4.4.3/arm-linux-androideabi/thumb/libstdc++-v3/include/arm-linux-androideabi/bits/gthr-default.h:726,
inside function gthread_once().

The libstdc++ from CrystaX NDK r4 worked without problems.

The problem relates to Android 2.1 as well. Newer versions (2.2 or higher) do not suffer from this issue.

 

原创粉丝点击