2017-07-25 03:56:36 -0600 | received badge | ● Enthusiast |
2017-07-22 09:36:12 -0600 | asked a question | OpenCV with Java wrapper for Android I am trying to build latest OpenCV with Java wrapper for Android, but I keep getting this error. I've tried to build it with newer and older NDKs , build-tools and platform-tools. I've also tried with running build_sdk.py and configuring with different build systems. CMake configuration always shows "SDK target: android_sdk_target_status-NOTFOUND". Terminal throws this error : FAILED: bin/classes.jar bin/classes.jar.dephelper Buildfile: build.xml does not exist! If someone was able to build OpenCV with Java wrapper, could you please explain how? EDIT: I am not sure if this question is against forum rules because I mentioned Java wrapper , but I am using official opencv wrapper for java , not JavaCV. |
2017-07-21 15:25:26 -0600 | received badge | ● Editor (source) |
2017-07-20 08:14:15 -0600 | asked a question | Linker error on Android project Hello, I am having problem with linker in my Android build. I am trying to make simple AR application in which could app find markers and render it via LibGDX. For my camera calibration I've used camera from the opencv samples. Calibration activity works , but problem is when I start making calls to opencv_aruco. I've built opencv with this command: sh ./scripts/cmake_android_arm.sh -DOPENCV_EXTRA_MODULES_PATH=/home/josip/git/opencv/opencv_contrib/modules -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_EXECUTABLE=/home/josip/Android/Sdk/build-tools/25.0.3/ I only wanted to use java(I don't have enough experience with c++/CMake), but aruco classes are making calls to native code, so I've tried to connect it via Cmakelists.txt. I've linked opencv module with external CMakeLists("../android/CMakeLists.txt") inside build.gradle file. Opencv module is latest (3.3.0) and it is imported as library. I've put generated static libraries in src/jniLibs. This is how my project currently looks like: libGDX_RenderEngine This is my CMakeLists.txt file: EDIT: After some searching, it seems like missing libopencv_java is the real reason for this mess. During building I didn't notice that SDK target throwed "android_sdk_target_status-NOTFOUND". |
2017-03-13 08:31:30 -0600 | received badge | ● Self-Learner (source) |
2017-03-13 06:38:54 -0600 | answered a question | opengl_interop.o build error I realized what the problem was. I installed qt4-dev-tools (instead of qt5-dev-tools) that are in collision with current Qt version. As the @berak suggested , I deleted OpenCV with : sudo find / -name "opencv" -exec rm -i {} \; Then installed qt5 dev tools: sudo apt-get install qt5-dev-tools I also should've add this line in .pro file : LIBS += -lX11 -ldl -lXext -lz and rebuild OpenCV (WITH_OPENGL in CMake-gui wasn't checked). |
2017-03-10 15:48:47 -0600 | asked a question | opengl_interop.o build error I recently started to use OpenCV on Qt Creator 4.2.1. Now I am trying to run opengl_interop.cpp from samples/opengl but I am getting this error: opengl_interop.o: undefined reference to symbol '_ZN2cv3ogl13unmapGLBufferERNS_4UMatE'. OS is Ubuntu 16.10. ProjectTest.pro looks like this: Compile output log |