Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhany committed Jul 29, 2017
1 parent 3d974b6 commit 747f925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -28,13 +28,13 @@ A Color-to-grayscale Android app configured with CMake tool under Android Studio

### Method 2

1. Change Line #22 in `app\build.gradle` to `jniLibs.srcDirs = ['src/main/jniLibs']`. Change Line #14 in `app\CMakeLists.txt` to ``set(ocvlibs "${CMAKE_SOURCE_DIR}/src/main/jniLibs")`. Copy all files in `<OpenCV Android SDK>/sdk/native/libs` to `app\src\main\jniLibs`.
1. Change Line #22 in `app\build.gradle` to `jniLibs.srcDirs = ['src/main/jniLibs']`. Change Line #14 in `app\CMakeLists.txt` to `set(ocvlibs "${CMAKE_SOURCE_DIR}/src/main/jniLibs")`. Copy all files in `<OpenCV Android SDK>/sdk/native/libs` to `app\src\main\jniLibs`.
2. Change Line #16 in `app\CMakeLists.txt` to `include_directories(${CMAKE_SOURCE_DIR}/src/main/cpp/include)`. Copy all files in `<OpenCV Android SDK>/sdk/native/jni/include` to `app\src\main\cpp\include`.
3. Re-sync and run.

### Method 3

1. Change Line #22 in `app\build.gradle` to `jniLibs.srcDirs = ['src/main/jniLibs']`. Change Line #14 in `app\CMakeLists.txt` to ``set(ocvlibs "${CMAKE_SOURCE_DIR}/src/main/jniLibs")`. Create symlink `app\src\main\jniLibs` targeting `<OpenCV Android SDK>/sdk/native/libs`.
1. Change Line #22 in `app\build.gradle` to `jniLibs.srcDirs = ['src/main/jniLibs']`. Change Line #14 in `app\CMakeLists.txt` to `set(ocvlibs "${CMAKE_SOURCE_DIR}/src/main/jniLibs")`. Create symlink `app\src\main\jniLibs` targeting `<OpenCV Android SDK>/sdk/native/libs`.
2. Change Line #16 in `app\CMakeLists.txt` to `include_directories(${CMAKE_SOURCE_DIR}/src/main/cpp/include)`. Create symlink `app\src\main\cpp\include` targeting `<OpenCV Android SDK>/sdk/native/jni/include`.
3. Re-sync and run.

Expand Down

0 comments on commit 747f925

Please sign in to comment.