Building OpenCV Visual Studio 14 2015 Unicode Errors
I am trying to build OpenCV with Visual Studio 2015 and am unable to do so. This was done by pulling the git repository. Nothing fancy here, no CUDA, no contrib, etc. This is something I have done multiple times in the past but this time I am getting weird unicode conversion errors such as:
opencv-master\modules\core\src\glob.cpp(117): error C2664: 'BOOL FindNextFileA(HANDLE,LPWIN32_FIND_DATAA)': cannot convert argument 2 from 'WIN32_FIND_DATA *' to 'LPWIN32_FIND_DATAA'
and
opencv-master\modules\videoio\src\cap_vfw.cpp(165): error C2664: 'HRESULT AVIFileOpenW(PAVIFILE *,LPCWSTR,UINT,LPCLSID)': cannot convert argument 2 from 'const char *' to 'LPCWSTR'
I have turned CV_ENABLE_INTRINSICS off in the cmake configuration as this seems to be a problem at the moment.
So why build OpenCV when I can just download the binaries you say... Well I was trying to compile with CUDA and the contrib libraries, but I had these same problems...
Anyone know the answer here? This is a new install of Visual Studio 2015, so this definitely could be me at fault.
Edit: I do realise the git version is 3.3
CMake Output:
found Intel IPP (ICV version): 2017.0.2 [2017.0.2]
at: C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/build/3rdparty/ippicv/ippicv_win
found Intel IPP IW binaries: 2017.0.2
at: C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/build/3rdparty/ippicv/ippicv_win/../ippiw_win/
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Found JNI: C:/Program Files/Java/jdk1.8.0_141/lib/jawt.lib
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/core/src/convert.avx2.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/core/src/convert.fp16.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/core/src/convert.sse4_1.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/imgproc/src/corner.avx.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/imgproc/src/filter.avx2.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/imgproc/src/imgwarp.sse4_1.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/imgproc/src/undistort.avx2.cpp
Excluding from source files list (optimization is disabled): C:/Users/USER/Development/3RD_PARTY/opencv-3.2/opencv-master/modules/objdetect/src/haar.avx.cpp
Torch importer has been enabled. To run the tests you have to ...
delete cmakcache.txt and clean VS solution
Thanks. I've done this multiple times. No success.
post your cmakeoutput in your question
Can you disable QT5 ?
Yip, it made not difference at all...