File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,10 @@ cmake_minimum_required(VERSION 3.4.1)
6
6
set (CMAKE_VERBOSE_MAKEFILE on )
7
7
set (CMAKE_CXX_STANDARD 11 )
8
8
9
- set (OPENCV_ANDROID_SDK /home/irina/caffe-android-lib/android_lib/opencv/sdk/native )
10
-
11
- include_directories (${OPENCV_ANDROID_SDK} /jni/include )
9
+ # OpenCV stuff
10
+ include_directories ($ENV{OPENCV_ANDROID_SDK} /sdk/native/jni/include )
12
11
add_library ( lib_opencv SHARED IMPORTED )
13
- set_target_properties (lib_opencv PROPERTIES IMPORTED_LOCATION ${OPENCV_ANDROID_SDK} /libs/${ANDROID_ABI}/libopencv_java3.so )
12
+ set_target_properties (lib_opencv PROPERTIES IMPORTED_LOCATION $ENV {OPENCV_ANDROID_SDK} /sdk/native /libs/${ANDROID_ABI}/libopencv_java3.so )
14
13
15
14
find_library ( # Sets the name of the path variable.
16
15
log -lib
Original file line number Diff line number Diff line change @@ -21,7 +21,3 @@ export OPENCV_ANDROID_SDK=/Users/hoopoe/Tools/OpenCV-android-sdk
21
21
to /sdcard/Download
22
22
23
23
3 . dlib adapted to work with -DANDROID_STL=gnustl_shared
24
-
25
- Path needed to be changed:
26
- 1 ) OPENCV_ANDROID_SDK in CMakeLists.txt
27
-
You can’t perform that action at this time.
0 commit comments