In file included from C:\Projects\untitled\main.cpp:1:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs\MVS.h:46:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Common.h:176:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h:391:
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Util.h(210,27): error: non-const lvalue reference to type 'SEACAVE::String' cannot bind to a temporary of type 'SEACAVE::String'
return ensureUnifySlash(String(buf));
^~~~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Util.h(280,42): note: passing argument to parameter 'path' here
static String& ensureUnifySlash(String& path)
^
In file included from C:\Projects\untitled\main.cpp:1:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs\MVS.h:46:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Common.h:176:
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(839,14): error: use of undeclared identifier '_mm_popcnt_u32'; did you mean '_mm_tzcnt_32'?
return (int)_mm_popcnt_u32(bb);
^
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\Llvm\x64\lib\clang\11.0.0\include\bmiintrin.h(67,1): note: '_mm_tzcnt_32' declared here
_mm_tzcnt_32(unsigned int __X)
^
In file included from C:\Projects\untitled\main.cpp:1:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs\MVS.h:46:
In file included from D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Common.h:176:
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(842,14): error: use of undeclared identifier '_mm_popcnt_u64'
return (int)_mm_popcnt_u64(bb);
^
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(845,14): error: use of undeclared identifier '_mm_popcnt_u64'
return (int)_mm_popcnt_u64(bb);
^
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(848,14): error: use of undeclared identifier '_mm_popcnt_u64'
return (int)_mm_popcnt_u64(bb);
^
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1064,57): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+(s.m128_f32[1]+s.m128_f32[3]);}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1064,71): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+(s.m128_f32[1]+s.m128_f32[3]);}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1064,87): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+(s.m128_f32[1]+s.m128_f32[3]);}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1064,101): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+(s.m128_f32[1]+s.m128_f32[3]);}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1065,57): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum3(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+s.m128_f32[1];}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1065,71): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum3(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+s.m128_f32[1];}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1065,86): error: member reference base type 'SEACAVE::sse_f_t::sse_t' (aka '__m128') is not a structure or union
static inline real_t sum3(sse_t s) {return (s.m128_f32[0]+s.m128_f32[2])+s.m128_f32[1];}
~^~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1135,56): error: member reference base type 'SEACAVE::sse_d_t::sse_t' (aka '__m128d') is not a structure or union
static inline real_t sum(sse_t s) {return s.m128d_f64[0]+s.m128d_f64[1];}
~^~~~~~~~~~
D:\vcpkg\installed\x64-windows\share\openmvs\..\..\include\openmvs/Common/Types.h(1135,71): error: member reference base type 'SEACAVE::sse_d_t::sse_t' (aka '__m128d') is not a structure or union
static inline real_t sum(sse_t s) {return s.m128d_f64[0]+s.m128d_f64[1];}
~^~~~~~~~~~
14 errors generated.
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\Llvm\x64\bin\clang-cl.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
I'm building on windows using vc2019 with clang.
Some of errors looks related with #279 but setting -DOpenMVS_USE_SSE=OFF didn't help.
Hi! I've installed openMVS from vcpkg without any problems.
.\vcpkg.exe install openmvs
But when i try to add it to my project i get some strange errors. CMakeLists.txt:
main.cpp
Errors:
I'm building on windows using vc2019 with clang. Some of errors looks related with #279 but setting
-DOpenMVS_USE_SSE=OFF
didn't help.