jni - Defining sem_t in android ndk -
i porting code libs in c++.
note android include library has semaphore.h.
i include files when compiling gives me error: 'sem_t' not name type.
for example in linux define semaphore like:
sem_t id;
then call:
sem_init(&id, 0, initialcount);
in application.mk using:
app_stl := gnustl_static
thanks in advance.
try compile -lz -lm -llog -lc -l$(call host-path, $(local_path))/$(target_arch_abi)
or add following line android.mk
:
local_ldlibs += -lz -lm -llog -lc -l$(call host-path, $(local_path))/$(target_arch_abi)
it works me
Comments
Post a Comment