c++ - Android NDK : Aborting. Stop -
i'm trying call c++
method in java
coding.
i received android ndk : aborting. stop
when defined android.mk
file below :
local_path := $(call my-dir) include $(clear_vars) local_module := ffmpeg local_src_files := libs/ffmpeg.so include $(prebuilt_shared_library) include $(clear_vars) local_module := ffmpeg local_src_files := ffmpeg.cpp local_shared_libraries := ffmpeg include $(build_shared_library)
but if defined this, run :
local_path := $(call my-dir) include $(clear_vars) local_module := ffmpeg local_src_files := libs/ffmpeg.so include $(build_shared_library)
questions
:
1 - how fix error?
2 - in android.mk
file, can not call libs/ffmpeg.so
, ffmpeg.cpp
in same time?
people know this,
please tell me,
thanks,
p/s : project structure :
when seeing android.mk structure
.
i think need change android.mk
file :
local_path := $(call my-dir) include $(clear_vars) local_module := ffmpeg local_src_files := libs/ffmpeg.so include $(prebuilt_shared_library) include $(clear_vars) local_module := final_ffmpeg local_src_files := ffmpeg.cpp local_ldlibs := -l$(sysroot)/usr/lib -llog local_prebuilts := libs/ffmpeg.so #libavformat libavcodec libswscale libavutil include $(build_shared_library)
p/s : et android ndk : aborting
problem because put data :
local_path:= $(call my-dir) include $(clear_vars) local_module:= ffmpeg local_src_files:= libs/ffmpeg.so include $(prebuilt_shared_library) include $(clear_vars) local_module := ffmpeg local_src_files := ffmpeg.cpp local_shared_libraries := ffmpeg include $(build_shared_library)
this problem happens when local_module
name duplicated.
the result me :
it still when need call c++ function in c++ file java file.
Comments
Post a Comment