trouble with opencv 3 and visual studio 2010
Hi
i have installed opencv 3 on D:\ drive. based on this guide and its next page i have a couple of problems: link text. could anybody help me? - thanks
i have had to set (system) environment variable : "OPENCV_DIR" as "D:\OpenCV\Build\x86\vc10" , but there are vc11 and vc12 folders instead. (???)
neither of opencv_...300d.lib files for debug, nor opencv_...300.lib files for release exist in $(OPENCV_DIR)\lib subfolder but they exist in $(OPENCV_DIR)\staticlib subfolder. (???)
finally compiling the sample program led to a lot of errors: (???)
1>------ Build started: Project: test1, Configuration: Debug Win32 ------ 1>Build started 10/23/2015 9:26:06 PM. 1>InitializeBuildStatus: 1> Touching "Debug\test1.unsuccessfulbuild". 1>ClCompile: 1> All outputs are up-to-date. 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>opencv_core300d.lib(stl.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(alloc.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(matrix.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(opencv_core_pch.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(system.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(umatrix.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(copy.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(convert.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(matop.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(stat.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(kmeans.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(array.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(datastructs.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(cuda_gpu_mat.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(cuda_host_mem.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(cuda_stream.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(opengl.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in main.obj 1>opencv_core300d.lib(ocl.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1800 ...
as it seems, there are no more prebuilt libs for vs2010 available, you will have to build from src using cmake.