File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 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
4242 ocv_module_disable(python)
4343 endif()
4444
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() {
3535 cd $_cvbuild
3636
3737 push_arm
38+ # try set > opencv_p4y_env.log # check env vars for debugging
3839
3940 export ANDROID_NDK=$ANDROIDNDK
4041 try cmake -DP4A=ON -DANDROID_ABI=$ARCH -DCMAKE_TOOLCHAIN_FILE=$_cvsrc /platforms/android/android.toolchain.cmake \
@@ -46,6 +47,7 @@ function build_opencv() {
4647 $_cvsrc
4748 try make -j8 opencv_python
4849 try cmake -DCOMPONENT=python -P ./cmake_install.cmake
50+ try cp -a $_cvbuild /lib/$ARCH /lib* .so $LIBS_PATH
4951
5052 pop_arm
5153}
You can’t perform that action at this time.
0 commit comments