Ask Your Question

soleil's profile - activity

2020-11-30 17:39:51 -0600 edited question How to build opencv with contrib but without sfm

How to build opencv with contrib but without sfm I'm trying to build opencv 4.5 (master) without sfm, but with the other

2020-11-30 17:36:01 -0600 asked a question How to build opencv with contrib but without sfm

How to build opencv with contrib but without sfm I'm trying to build opencv 4.1.0 without sfm, but with the other contri

2019-02-03 09:08:16 -0600 received badge  Teacher (source)
2019-02-03 08:00:57 -0600 edited answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

I solved the issue even though I did not manage to find out the root problem. I had to do a git clone/pull with the visu

2019-02-03 08:00:29 -0600 marked best answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

I'm compiling opencv (master) in Windows 10 x64 with VS2017, toolset v141. VS projects are generated by cmake.

I'm having multiple errors such as:

c1xx : fatal error C1083: Cannot open source file: 'I:\opencv-master\opencv\3rdparty\openexr\IlmThread\IlmThreadWin32.cpp': No such file or directory [I:\opencv-master\build\3rdparty\openexr\IlmImf.vcxproj]

However, I don't understand how this could happen since:

the path is an absolute path,
the files do exist,
the right in read access are correct

I'm having this problem only with openexr project.

cmake -G $target -T v141, host=x64 -j8 `
    -DBUILD_JAVA=0 -DWITH_MATLAB=0 -DBUILD_DOC=0 -DBUILD_PERF_TESTS=0 -DBUILD_TESTS=0 -DBUILD_opencv_world=0 `
    -DOPENCV_ENABLE_NONFREE=1 -DBUILD_opencv-apps=0 -DENABLE_PYLINT=0 -DENABLE_CXX11=1 -DWITH_VTK=1 `
    -DCUDA_SDK_ROOT_DIR="$env:CUDA_PATH" -DCUDA_ARCH_BIN="5.2" -DCUDA_VERBOSE_BUILD=0 -DBUILD_CUDA_STUBS=0 `
    -DWITH_OPENCL=1 -DWITH_CUDA=1 -DMKL_WITH_OPENMP=1 -DMKL_WITH_TBB=1 `
    -DOPENCV_EXTRA_MODULES_PATH="../opencv_contrib/modules" `
    -DINSTALL_CREATE_DISTRIB=1 -DCPACK_BINARY_ZIP=1 -DCPACK_SOURCE_ZIP=1 -DCMAKE_VERBOSE_MAKEFILE=0 `
    ../opencv | Tee-Object -Variable RESULT

CMakeOutput.log:

The system is: Windows - 10.0.17134 - AMD64 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler:
Build flags: Id flags:

The output was: 0 Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

Build started 30-Jan-19 8:43:38 PM. Project "I:\opencv-master\build\CMakeFiles\3.13.3\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". Creating directory "Debug\CompilerIdCXX.tlog\". InitializeBuildStatus: Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc141.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp CMakeCXXCompilerId.cpp Link: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj CompilerIdCXX.vcxproj -> I:\opencv-master\build\CMakeFiles\3.13.3\CompilerIdCXX.\CompilerIdCXX.exe PostBuildEvent: for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i :VCEnd CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe FinalizeBuildStatus: Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild". Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate". Done Building Project "I:\opencv-master\build\CMakeFiles\3.13.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).

Build succeeded. 0 Warning(s) 0 Error(s)

Time Elapsed 00:00:00.42

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

The CXX compiler identification is MSVC, found in "I ... (more)

2019-02-03 08:00:29 -0600 received badge  Scholar (source)
2019-02-01 12:50:36 -0600 received badge  Self-Learner (source)
2019-02-01 11:39:41 -0600 received badge  Student (source)
2019-02-01 09:16:01 -0600 commented question Multiple E1083 on opencv-master compilation despite the correctness of path and rights

I solved the issue even though I did not manage to find out the root problem. I had to do a git clone/pull with the visu

2019-01-31 15:55:09 -0600 commented question Multiple E1083 on opencv-master compilation despite the correctness of path and rights

Did you mean build folder ?

2019-01-31 15:48:03 -0600 commented question Multiple E1083 on opencv-master compilation despite the correctness of path and rights

I also made a diff with the vcxproj files (between git and zip), and they are identical

2019-01-31 15:30:06 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

@LBerger I got the same failure with multiple C1083.

2019-01-31 14:52:41 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

@LBerger Shouldn't I use also -DOPENCV_ENABLE_NONFREE=1 in order to have openexr ? I don't want also a bunch of things (

2019-01-31 14:34:41 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

I see it twice. I'm posting again the link: https://github.com/mprevot/C1083/blob/master/transcript_cmake.txt

2019-01-31 14:30:42 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

@LBerger can you see the github link ?

2019-01-31 14:29:40 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

@LBerger I'm not sure I understand by "guess". I put my cmake command in the OP. The dependencies you're mentionning are

2019-01-31 14:24:59 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

alalek tagged the github issue as question: https://github.com/opencv/opencv/issues/13733 Maybe this is a misunderstandi

2019-01-31 14:22:16 -0600 commented question Multiple E1083 on opencv-master compilation despite the correctness of path and rights

https://github.com/mprevot/C1083/blob/master/transcript_cmake.txt

2019-01-31 13:53:28 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

This is with master (from git). This does not happen with master (from zip). This started to happen between 4.0.0 and cu

2019-01-31 13:51:11 -0600 commented answer Multiple E1083 on opencv-master compilation despite the correctness of path and rights

This is with master (from git). This does not happen with master (from zip). This started to happen between 4.0.0 and cu

2019-01-31 09:39:03 -0600 asked a question Multiple E1083 on opencv-master compilation despite the correctness of path and rights

Multiple E1083 on opencv-master compilation despite the correctness of path and rights I'm compiling opencv (master) in