CXWorld/CapFrameX

Unable to build CapFrameX.FrameView in 1.7.3 due to missing enums in public release of FrameView SDK (`546.65`)

illusion0001 opened this issue · 2 comments

FrameView SDK from driver 546.65 does not have such enums.

Log (Click to Expand)
Build started at 4:39 PM...
1>------ Build started: Project: CapFrameX.FrameView, Configuration: Release x64 ------
1>FrameViewManager.cpp
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(13,7): warning C4273: 'FrameView::IntializeFrameViewSession': inconsistent dll linkage
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.h(6,32):
1>see previous definition of 'IntializeFrameViewSession'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(26,23): error C2065: 'FV_SDK_SESSION_IN_PROGRESS': undeclared identifier
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(36,7): warning C4273: 'FrameView::CloseFrameViewSession': inconsistent dll linkage
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.h(8,32):
1>see previous definition of 'CloseFrameViewSession'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(57,9): warning C4273: 'FrameView::GetAveragePcl': inconsistent dll linkage
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.h(10,34):
1>see previous definition of 'GetAveragePcl'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(64,4): error C2065: 'eAvgSWPCLatency': undeclared identifier
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(67,39): error C2070: 'FvMetricType []': illegal sizeof operand
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(78,13): error C2466: cannot allocate an array of constant size 0
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(80,23): error C2065: 'eAvgSWPCLatency': undeclared identifier
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(92,18): error C2065: 'AvgSWPCLatency': undeclared identifier
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(92,11): error C2923: 'std::vector': 'AvgSWPCLatency' is not a valid template type argument for parameter '_Ty'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(92,18):
1>see declaration of 'AvgSWPCLatency'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(92,11): error C2976: 'std::vector': too few template arguments
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(436,1):
1>see declaration of 'std::vector'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(92,34): error C2133: 'AvgSWPCLatencySamples': unknown size
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(92,34): error C2512: 'std::vector': no appropriate default constructor available
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(436,1):
1>see declaration of 'std::vector'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(93,27): error C2663: 'std::vector<_Ty,_Alloc>::resize': no overloaded function has valid conversion for 'this' pointer
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1588,23):
1>could be 'void std::vector<_Ty,_Alloc>::resize(const allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::size_type)'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(93,27):
1>	'void std::vector<_Ty,_Alloc>::resize(const allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::size_type)': cannot convert 'this' pointer from 'std::vector' to 'std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(93,6):
1>		Reason: cannot convert from 'std::vector' to 'std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(93,6):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(93,27):
1>while trying to match the argument list '(size_t)'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,46): error C2663: 'std::vector<_Ty,_Alloc>::data': no overloaded function has valid conversion for 'this' pointer
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1798,40):
1>could be 'const _Ty *std::vector<_Ty,_Alloc>::data(void) noexcept const'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,46):
1>	'const _Ty *std::vector<_Ty,_Alloc>::data(void) noexcept const': cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,25):
1>		Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,25):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1794,34):
1>or       '_Ty *std::vector<_Ty,_Alloc>::data(void) noexcept'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,46):
1>	'_Ty *std::vector<_Ty,_Alloc>::data(void) noexcept': cannot convert 'this' pointer from 'std::vector' to 'std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,25):
1>		Reason: cannot convert from 'std::vector' to 'std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,25):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(94,46):
1>while trying to match the argument list '()'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36): error C2663: 'std::vector<_Ty,_Alloc>::_Unchecked_begin': no overloaded function has valid conversion for 'this' pointer
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1858,43):
1>could be 'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::const_pointer std::vector<_Ty,_Alloc>::_Unchecked_begin(void) noexcept const'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>	'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::const_pointer std::vector<_Ty,_Alloc>::_Unchecked_begin(void) noexcept const': cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1854,37):
1>or       'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::pointer std::vector<_Ty,_Alloc>::_Unchecked_begin(void) noexcept'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>	'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::pointer std::vector<_Ty,_Alloc>::_Unchecked_begin(void) noexcept': cannot convert 'this' pointer from 'std::vector' to 'std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Reason: cannot convert from 'std::vector' to 'std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>while trying to match the argument list '()'
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36): error C2663: 'std::vector<_Ty,_Alloc>::_Unchecked_end': no overloaded function has valid conversion for 'this' pointer
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1866,43):
1>could be 'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::const_pointer std::vector<_Ty,_Alloc>::_Unchecked_end(void) noexcept const'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>	'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::const_pointer std::vector<_Ty,_Alloc>::_Unchecked_end(void) noexcept const': cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Reason: cannot convert from 'std::vector' to 'const std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(1862,37):
1>or       'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::pointer std::vector<_Ty,_Alloc>::_Unchecked_end(void) noexcept'
1>	E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>	'allocator_traits<allocator_traits<_Alloc>::rebind_alloc<_Ty>>::pointer std::vector<_Ty,_Alloc>::_Unchecked_end(void) noexcept': cannot convert 'this' pointer from 'std::vector' to 'std::vector<_Ty,_Alloc> &'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Reason: cannot convert from 'std::vector' to 'std::vector<_Ty,_Alloc>'
1>		E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>		Conversion requires a second user-defined-conversion operator or constructor
1>E:\git\CapFrameX-1\source\CapFrameX.FrameView\FrameViewManager.cpp(101,36):
1>while trying to match the argument list '()'
1>Done building project "CapFrameX.FrameView.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 4:39 PM and took 00.845 seconds ==========

Install FVSDKSetup.exe in CapFrameX\installers.

Fixed