Ask Your Question
3

OpenCv 3.2 Build failed [closed]

asked 2017-04-25 04:43:02 -0600

Prakash gravatar image

updated 2017-04-25 04:55:35 -0600

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 ...







































(more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2017-04-27 22:58:16.312958

Comments

have you got tbb?

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

if you don't have tbb disable tbb in cmake gui

LBerger gravatar imageLBerger ( 2017-04-25 05:11:02 -0600 )edit

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!

Prakash gravatar imagePrakash ( 2017-04-25 08:31:27 -0600 )edit

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

LBerger gravatar imageLBerger ( 2017-04-25 08:40:51 -0600 )edit

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! )

Prakash gravatar imagePrakash ( 2017-04-25 11:13:35 -0600 )edit
1

Have you delete cmakecache.txt ? If you don't solve problem I will try download lastest tbb version. I use concurrency

LBerger gravatar imageLBerger ( 2017-04-25 12:01:42 -0600 )edit

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)

Prakash gravatar imagePrakash ( 2017-04-25 23:56:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-04-26 00:55:42 -0600

LBerger gravatar image

updated 2017-04-26 01:37:34 -0600

I think it's a bug. There is a problem with include path in module opencv_core_AVX2 and opencv_CORE_AVX. If you want to solve this problem with your download version of opencv add path C:/tbb2017_20161128oss//include to project properties in visual studio. After modification clean solution and rebuild solution and it's OK.

you can make an issue and give link to your post

PS in 64 bit it is not C:/tbb2017_20161128oss/lib/ia32/vc14_ui/tbb.lib but G:/Lib/tbb2017_20170226oss/lib/intel64/vc14/tbb.lib

edit flag offensive delete link more

Comments

Thanks for your reply. yeah i chose the right one for 32bit. but to which project should i add path? there are 53 projects

Prakash gravatar imagePrakash ( 2017-04-26 23:09:17 -0600 )edit

only opencv_core_AVX2 and opencv_CORE_AVX in my configuration (64 bits)p

LBerger gravatar imageLBerger ( 2017-04-27 00:55:32 -0600 )edit

solved with pr #8664

LBerger gravatar imageLBerger ( 2017-04-27 22:57:36 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-25 04:43:02 -0600

Seen: 3,328 times

Last updated: Apr 26 '17