Unity Build issue on windows
On windows with MSVC2019 if I generate the solution file with the following command:
CI/before_script.msvc.sh -k -p Win64 -v 2019 -u
then it fails to compile with the following error:
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(144,29): error C2664: 'std::tuple<const DetourNavigator::TileBounds &,const uint8_t &,const float &,const float &,const osg::Vec3f &,const float &,const std::vector<float,std::allocator<float>> &> DetourNavigator::makeTuple(const DetourNavigator::Heightfield &) noexcept': cannot convert argument 1 from 'const DetourNavigator::NavMeshTileConstView' to 'const DetourNavigator::Heightfield &' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(144,29): message : Reason: cannot convert from 'const DetourNavigator::NavMeshTileConstView' to 'const DetourNavigator::Heightfield' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(144,26): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:\Dev\Morrowind\openmw\components\detournavigator\recastmesh.hpp(67,17): message : see declaration of 'DetourNavigator::makeTuple' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(144,47): error C2664: 'std::tuple<const DetourNavigator::TileBounds &,const uint8_t &,const float &,const float &,const osg::Vec3f &,const float &,const std::vector<float,std::allocator<float>> &> DetourNavigator::makeTuple(const DetourNavigator::Heightfield &) noexcept': cannot convert argument 1 from 'const DetourNavigator::NavMeshTileConstView' to 'const DetourNavigator::Heightfield &' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(144,47): message : Reason: cannot convert from 'const DetourNavigator::NavMeshTileConstView' to 'const DetourNavigator::Heightfield' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(144,44): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:\Dev\Morrowind\openmw\components\detournavigator\recastmesh.hpp(67,17): message : see declaration of 'DetourNavigator::makeTuple' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/preparednavmeshdata.cpp(30,23): error C2475: 'operator ==': redefinition; 'constexpr' specifier mismatch (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
12>D:/Dev/Morrowind/openmw/components/detournavigator/navmeshtileview.cpp(80): message : see declaration of 'operator ==' (compiling source file D:\Dev\Morrowind\openmw\MSVC2019_64\components\ub_detournavigator.cpp)
Edited by AnyOldName3