File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,24 @@ index 3c0f2fd..7ba234a 100644
42
42
ocv_module_disable(python)
43
43
endif()
44
44
45
+ diff --git a/modules/androidcamera/src/camera_activity.cpp b/modules/androidcamera/src/camera_activity.cpp
46
+ index 84db3e1..4222526 100644
47
+ --- a/modules/androidcamera/src/camera_activity.cpp
48
+ +++ b/modules/androidcamera/src/camera_activity.cpp
49
+ @@ -7,6 +7,7 @@
50
+ #include <string>
51
+ #include <vector>
52
+ #include <algorithm>
53
+ + #include <stdlib.h>
54
+ #include <opencv2/core/version.hpp>
55
+ #include "camera_activity.hpp"
56
+ #include "camera_wrapper.h"
57
+ @@ -342,6 +343,8 @@ std::string CameraWrapperConnector::getPathLibFolder()
58
+
59
+ char* pathEnd = strrchr(pathBegin, '/');
60
+ pathEnd[1] = 0;
61
+ + pathBegin = realpath((std::string(pathBegin)+"../../../../lib").c_str(), lineBuf);
62
+ + pathBegin = strcat(pathBegin, "/");
63
+
64
+ LOGD("Libraries folder found: %s", pathBegin);
65
+
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ function build_opencv() {
35
35
cd $_cvbuild
36
36
37
37
push_arm
38
+ # try set > opencv_p4y_env.log # check env vars for debugging
38
39
39
40
export ANDROID_NDK=$ANDROIDNDK
40
41
try cmake -DP4A=ON -DANDROID_ABI=$ARCH -DCMAKE_TOOLCHAIN_FILE=$_cvsrc /platforms/android/android.toolchain.cmake \
@@ -46,6 +47,7 @@ function build_opencv() {
46
47
$_cvsrc
47
48
try make -j8 opencv_python
48
49
try cmake -DCOMPONENT=python -P ./cmake_install.cmake
50
+ try cp -a $_cvbuild /lib/$ARCH /lib* .so $LIBS_PATH
49
51
50
52
pop_arm
51
53
}
You can’t perform that action at this time.
0 commit comments