OpenCv 3.2 Build failed [closed]
i downloaded latest repo from GitHub (Master branch OpenCv 3.2).
i'm building with tbb and world [Cmake gui, located tbb header file and tbb.lib, tbb_debug.lib ]
used visual studio 2015 community [x86 release mode]
build failed, what could ahve gone wrong?
Below is the output from visual studio (here's Cmake's Output, CMakeCache.txt and cvconfig.h)
Thanks
1>------ Build started: Project: opencv_world_AVX, Configuration: Release Win32 ------
2>------ Build started: Project: opencv_world_AVX2, Configuration: Release Win32 ------
3>------ Skipped Build: Project: RUN_TESTS, Configuration: Release Win32 ------
3>Project not selected to build for this solution configuration
4>------ Skipped Build: Project: uninstall, Configuration: Release Win32 ------
4>Project not selected to build for this solution configuration
1> mathfuncs_core.avx.cpp
2> mathfuncs_core.avx2.cpp
1>C:\OpenCv_3.2\Source\modules\core\include\opencv2/core/private.hpp(63): fatal error C1083: Cannot open
include file: 'tbb/tbb.h': No such file or directory
2>C:\OpenCv_3.2\Source\modules\core\include\opencv2/core/private.hpp(63): fatal error C1083: Cannot open include file: 'tbb/tbb.h': No such file or directory
5>------ Build started: Project: opencv_world, Configuration: Release Win32 ------
5>LINK : fatal error LNK1181: cannot open input file 'C:\OpenCv_3.2\Build\modules\world\opencv_world_AVX.dir\Release\mathfuncs_core.avx.obj'
6>------ Build started: Project: opencv_createsamples, Configuration: Release Win32 ------
7>------ Build started: Project: opencv_interactive-calibration, Configuration: Release Win32 ------
8>------ Build started: Project: opencv_python3, Configuration: Release Win32 ------
9>------ Build started: Project: opencv_test_highgui, Configuration: Release Win32 ------
6>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
7>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
8>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
10>------ Build started: Project: opencv_perf_calib3d, Configuration: Release Win32 ------
11>------ Build started: Project: opencv_perf_core, Configuration: Release Win32 ------
12>------ Build started: Project: opencv_perf_features2d, Configuration: Release Win32 ------
9>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
13>------ Build started: Project: opencv_perf_imgcodecs, Configuration: Release Win32 ------
10>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
14>------ Build started: Project: opencv_perf_imgproc, Configuration: Release Win32 ------
11>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
12>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
15>------ Build started: Project: opencv_perf_objdetect, Configuration: Release Win32 ------
16>------ Build started: Project: opencv_perf_photo, Configuration: Release Win32 ------
13>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
17>------ Build started: Project: opencv_perf_stitching, Configuration: Release Win32 ------
15>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
16>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
18>------ Build started: Project: opencv_perf_superres, Configuration: Release Win32 ------
14>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
19>------ Build started: Project: opencv_test_flann, Configuration: Release Win32 ------
20>------ Build started: Project: opencv_perf_video, Configuration: Release Win32 ------
17>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_world320.lib'
21>------ Build started: Project: opencv_perf_videoio, Configuration: Release Win32 ------
18>LINK : fatal error LNK1181: cannot open input file ...
have you got tbb?
if you don't have tbb disable tbb in cmake gui
thanks for your reply. that error is slightly confusing. i have downloaded tbb and pointed its header in cmake (check cmake output) i didn't notice any error in cmake reg tbb!
in cmake gui for tbb you have three varaibles TBB_ENV_INCLUDE TBB_ENV_LKIB TBB_ENV_LIB_DEBUG.
TBB_ENV_INCLUDE must be something like ....tbb43_20150611oss/include can you check in cmake?
don't forget to delete cmakecache
TBB_ENV_INCLUDE = C:/tbb2017_20161128oss/include
TBB_ENV_LKIB = C:/tbb2017_20161128oss/lib/ia32/vc14_ui/tbb.lib
TBB_ENV_LIB_DEBUG = C:/tbb2017_20161128oss/lib/ia32/vc14_ui/tbb_debug.lib
TBB_VER_FILE = C:/tbb2017_20161128oss/include/tbb/tbb_stddef.h
these are the values that i gave in cmake , i hope the values are correct. (previously Opencv 3.1 had built fine! )
Have you delete cmakecache.txt ? If you don't solve problem I will try download lastest tbb version. I use concurrency
yes i tried again from start (with latest tbb) no error from cmkae, but in visual studio i see error at C:\OpenCv_3.2\Source\modules\core\include\opencv2\core\private.hpp # include "tbb/tbb.h" can you try once? (i had removed cuda from build)