Quantcast
Viewing all articles
Browse latest Browse all 41027

MSVS 2012 Build error for opencv-300.jar

I am trying to build OpenCV with cmake and MSBuild following the tutorial to build the java wrapper. I have tried to get this wrapper to build for 3 days now with no success. Does anyone know what I am doing wrong? Here is the cmake log: found IPP (ICV version): 8.2.1 [8.2.1] at: C:/opencv300/sources/3rdparty/ippicv/unpack/ippicv_win Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR= option to cmake Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.8", minimum required is "2.7") Found PythonLibs: C:/Python27/libs/python27.lib (found suitable exact version "2.7.8") Found PythonInterp: C:/Users/Nick/AppData/Local/Programs/Python/Python35/python.exe (found suitable version "3.5.1", minimum required is "3.4") Found PythonLibs: C:/Users/Nick/AppData/Local/Programs/Python/Python35/libs/python35.lib (found suitable exact version "3.5.1") Traceback (most recent call last): File "", line 1, in ImportError: No module named 'numpy' Found apache ant : C:/apache-ant-1.9.6/bin/ant.bat VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file videoio: Removing WinRT API headers by default General configuration for OpenCV 3.0.0 ===================================== Version control: unknown Platform: Host: Windows 6.1.7601 AMD64 CMake: 3.5.0-rc2 CMake generator: Visual Studio 11 2012 Win64 CMake build tool: C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe MSVC: 1700 C/C++: Built as dynamic libs?: NO C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe (ver 17.0.50727.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /MP4 /MT /O2 /Ob2 /D NDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /MP4 /D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /MT /O2 /Ob2 /D NDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /INCREMENTAL:NO /debug /NODEFAULTLIB:libcmtd.lib Linker flags (Debug): /machine:x64 /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /debug /INCREMENTAL /NODEFAULTLIB:libcmt.lib Precompiled headers: YES Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 vfw32 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf ippicv OpenCV modules: To be built: hal core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d java stitching videostab python2 Disabled: world Disabled by dependency: - Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python3 viz Windows RT support: NO GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 55.18.102) format: YES (ver 55.12.100) util: YES (ver 52.38.100) swscale: YES (ver 2.3.100) resample: NO gentoo-style: YES OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO Other third-party libraries: Use IPP: 8.2.1 [8.2.1] at: C:/opencv300/sources/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: YES (ver 3.2.7) Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency YES Use C=: NO Use pthreads for parallel for: NO Use Cuda: NO Use OpenCL: YES OpenCL: Version: dynamic Include path: C:/opencv300/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.8) Libraries: C:/Python27/libs/python27.lib (ver 2.7.8) numpy: C:/Python27/lib/site-packages/numpy-1.10.4-py2.7-win-amd64.egg/numpy/core/include (ver 1.10.4) packages path: C:/Python27/Lib/site-packages Python 3: Interpreter: C:/Users/Nick/AppData/Local/Programs/Python/Python35/python.exe (ver 3.5.1) Python (for build): C:/Python27/python.exe Java: ant: C:/apache-ant-1.9.6/bin/ant.bat (ver ) JNI: C:/Program Files/Java/jdk1.8.0_40/include C:/Program Files/Java/jdk1.8.0_40/include/win32 C:/Program Files/Java/jdk1.8.0_40/include Java wrappers: YES Java tests: YES Matlab: mex: C:/Program Files/MATLAB/R2013a/bin/mex.bat Compiler/generator: Not working (bindings will not be generated) Documentation: Doxygen: NO PlantUML: NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO Install path: C:/opencv300/BuildWithModules/install cvconfig.h is in: C:/opencv300/BuildWithModules ----------------------------------------------------------------- Configuring done Generating done I have tried both having python 3 and not having python 3 set. But still When executing: "C:\Program Files (x86)\MSBuild\12.0\Bin"\MSBuild.exe /m OpenCV.sln /t:Build /p:configuration=Release /v:m I get this error: Error copying file "C:/opencv300/BuildWithModules/bin/opencv-300.jar" to "C:/opencv300/BuildWithModules/modules/java/pure_test/.build/bin/opencv-300.jar". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 1. [C:\opencv300\BuildWithModules\mo dules\java\pure_test\opencv_test_java.vcxproj] Creating library C:/opencv300/BuildWithModules/lib/Release/cv2.lib and object C:/opencv300/BuildWithModules/lib/Release/cv2.exp opencv_python2.vcxproj -> C:\opencv300\BuildWithModules\lib\Release\cv2.pyd I am at my wit's end trying to fix this error. The opencv_java300.dll seems to building correctly. I just cannot get the opencv-300.jar wrapper to build. Does anyone have a solution or direction to go in to solve this? Thanks!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>