如何建立在Android的CLM

如何建立在Android的CLM

本文介绍了如何建立在Android的CLM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立在android系统CLM,我.mk文件看起来像这样

I am building clm in android, my .mk file look like this

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

OPENCV_INSTALL_MODULES:=on

LOCAL_MODULE    := sample_CLM_SO_File

FILE_LIST := $(wildcard $(LOCAL_PATH)/*.cpp)

LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)


FILE_LIST1 := $(wildcard $(LOCAL_PATH)/Users/caffe/caffe-android-lib/Boost-for-Android/build/lib/*.a)

LOCAL_SRC_FILES := $(FILE_LIST1:$(LOCAL_PATH)/%=%)

LOCAL_CPP_INCLUDES := /Users/caffe/caffe-android-lib/Boost-for-Android/build/include/boost-1_55/boost

LOCAL_CPP_INCLUDES := /Users/caffe/caffe-android-lib/opencv2/jni/include

include $(BUILD_SHARED_LIBRARY)

将生成的.so文件,但.o文件将是没有的。

The .so file is generated but .o file isn't.

推荐答案

我回答CLM建立在Android中使用Androidndk。在Application.mk文件,我没有错,我没有添加CPP_FLAGS -std = C ++ 11。

I got answer to Build CLM in android using Androidndk. In Application.mk file i did mistake i didnt add CPP_FLAGS -std=c++11.

我的Application.mk文件看起来像这样

My Application.mk file look like this

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions -std=c++11

APP_ABI := armeabi-v7a
APP_PLATFORM := android-9

最后我建立这样的一代CLM

Finally i build so generation for CLM

这篇关于如何建立在Android的CLM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 10:58