I'm with Debian 11. I installed (cmake + make + make install) the OpenSceneGraph fork for OpenMW ( https://github.com/OpenMW/osg ) (version 3.6.5 ). And the others dependencies for OpenMW.
Then i fetched the source, and buid:
Code: Select all
git clone https://gitlab.com/OpenMW/openmw
cd openmw
mkdir build
cd build
cmake ../
make
/home/utilisateur/build/openmw/components/esm/stringrefid.cpp: In function ‘Misc::NotNullPtr<const std::__cxx11::basic_string<char> > ESM::{anonymous}::getOrInsertString(std::string_view)’:
/home/utilisateur/build/openmw/components/esm/stringrefid.cpp:24:38: error: no matching function for call to ‘std::unordered_set<std::__cxx11::basic_string<char>, Misc::StringUtils::CiHash, Misc::StringUtils::CiEqual>::find(std::string_view&)’
24 | auto it = locked->find(id);
| ^
In file included from /usr/include/c++/10/unordered_set:47,
from /home/utilisateur/build/openmw/components/esm/stringrefid.cpp:7:
/usr/include/c++/10/bits/unordered_set.h:649:7: note: candidate: ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find(const key_type&) [with _Value = std::__cxx11::basic_string<char>; _Hash = Misc::StringUtils::CiHash; _Pred = Misc::StringUtils::CiEqual; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator = std::__detail::_Hashtable_base<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::__detail::_Identity, Misc::StringUtils::CiEqual, Misc::StringUtils::CiHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, true, true> >::iterator; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_type = std::__cxx11::basic_string<char>]’
649 | find(const key_type& __x)
| ^~~~
/usr/include/c++/10/bits/unordered_set.h:649:28: note: no known conversion for argument 1 from ‘std::string_view’ {aka ‘std::basic_string_view<char>’} to ‘const key_type&’ {aka ‘const std::__cxx11::basic_string<char>&’}
649 | find(const key_type& __x)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/unordered_set.h:653:7: note: candidate: ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::const_iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find(const key_type&) const [with _Value = std::__cxx11::basic_string<char>; _Hash = Misc::StringUtils::CiHash; _Pred = Misc::StringUtils::CiEqual; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::const_iterator = std::__detail::_Hashtable_base<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::__detail::_Identity, Misc::StringUtils::CiEqual, Misc::StringUtils::CiHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, true, true> >::const_iterator; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_type = std::__cxx11::basic_string<char>]’
653 | find(const key_type& __x) const
| ^~~~
/usr/include/c++/10/bits/unordered_set.h:653:28: note: no known conversion for argument 1 from ‘std::string_view’ {aka ‘std::basic_string_view<char>’} to ‘const key_type&’ {aka ‘const std::__cxx11::basic_string<char>&’}
653 | find(const key_type& __x) const
| ~~~~~~~~~~~~~~~~^~~
make[2]: *** [components/CMakeFiles/components.dir/build.make:1330 : components/CMakeFiles/components.dir/esm/stringrefid.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:1011 : components/CMakeFiles/components.dir/all] Erreur 2
make: *** [Makefile:149 : all] Erreur 2
How to resolve that?
Thanks in advance for your help.