Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
OláEstou tendo um problema ao compilar uma biblioteca no Android Studio pelo NDK Quando executo o comando ndk-build, um problema é lançado:
Android NDK: Found platform level in ./project.properties. Setting APP_PLATFORM to android-19.
Android NDK: WARNING: APP_PLATFORM android-19 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will not be compatible with devices older than android-19. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_p
roblems.md for more information.
[arm64-v8a] Compile : FerrugemLib <= FerrugemLib.c
In file included from jni/FerrugemLib.c:15:
In file included from jni\CL/cl.h:32:
jni\CL/cl_version.h:34:9: warning: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2) [-W#pragma-messages]
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
^
jni/FerrugemLib.c:346:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
jni/FerrugemLib.c:535:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
jni/FerrugemLib.c:733:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
openCLObjects->queue = clCreateCommandQueue(openCLObjects->context, openCLObjects->device, 0, &err);
^ cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
^Meu Android.mkLOCAL_PATH := $(call my-dir)LOCAL_C_INCLUDES += PATH_TO_CL_FOLDER
include $(CLEAR_VARS)
LOCAL_MODULE := decodeYUV420SP
LOCAL_SRC_FILES := decodeYUV420SP.c
LOCAL_LDLIBS := -llog -ljnigraphics
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := FerrugemLib
LOCAL_SRC_FILES := FerrugemLib.c
LOCAL_LDLIBS := -lOpenCL
LOCAL_LDLIBS += -llog -ljnigraphics
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
include $(BUILD_SHARED_LIBRARY)
APP_OPTIM := debug
LOCAL_CFLAGS := $(call my-dir)
Alguem poderia ajudar em como eu conseguir fazer dar o build com este comando: -lOpenCL
Me propuseram a trocar o -lOpenCL por -framework OpenCL porem sem sucesso.Obrigado.
Carregando comentários...