twanvl / MagicSetEditor2

Magic Set Editor is a program for designing trading cards
Other
111 stars 41 forks source link

Linux: Build instructions outdated #155

Open breni-tiber opened 2 years ago

breni-tiber commented 2 years ago

Building on Linux fails because libboost-regex-dev is missing in build instructions.

Even if the user install this depency running

cmake build -DCMAKE_BUILD_TYPE=Release
cmake --build build

produces an error as there is no build directory and creating an empty one does not meet the requirements of the script.

The following errors prevent a build:

error: use of deleted function ‘SubLocale::SubLocale()
error: use of deleted function ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = wxString; _Tp = wxString; _Hash = std::hash<wxString>; _Pred = std::equal_to<wxString>; _Alloc = std::allocator<std::pair<const wxString, wxString> >]
error: use of deleted function ‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_Hashtable() [with _Key = wxString; _Value = std::pair<const wxString, wxString>; _Alloc = std::allocator<std::pair<const wxString, wxString> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<wxString>; _Hash = std::hash<wxString>; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]
error: use of deleted function ‘std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>::_Hashtable_base() [with _Key = wxString; _Value = std::pair<const wxString, wxString>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<wxString>; _Hash = std::hash<wxString>; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]
error: use of deleted function ‘std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache_hash_code>::_Hash_code_base() [with _Key = wxString; _Value = std::pair<const wxString, wxString>; _ExtractKey = std::__detail::_Select1st; _Hash = std::hash<wxString>; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; bool __cache_hash_code = true]
error: use of deleted function ‘std::__detail::_Hashtable_ebo_helper<1, std::hash<wxString>, true>::~_Hashtable_ebo_helper()
error: use of deleted function ‘std::hash<wxString>::~hash()
error: ‘std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = wxString; bool <anonymous> = false]’ is private within this context
error: use of deleted function ‘std::__detail::_Hash_code_base<wxString, std::pair<const wxString, wxString>, std::__detail::_Select1st, std::hash<wxString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()
error: use of deleted function ‘std::__detail::_Hashtable_ebo_helper<1, std::hash<wxString>, true>::~_Hashtable_ebo_helper()
error: use of deleted function ‘std::__detail::_Hashtable_base<wxString, std::pair<const wxString, wxString>, std::__detail::_Select1st, std::equal_to<wxString>, std::hash<wxString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()
error: use of deleted function ‘std::__detail::_Hash_code_base<wxString, std::pair<const wxString, wxString>, std::__detail::_Select1st, std::hash<wxString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()
error: use of deleted function ‘constexpr std::_Enable_default_constructor<false, _Tag>::_Enable_default_constructor() [with _Tag = std::__detail::_Hash_node_base]
error: static assertion failed: hash function must be invocable with an argument of key type
 1217 |         static_assert(__is_invocable<const _Hash&, const _Key&>{}
error: no match for call to ‘(const std::hash<wxString>) (const wxString&)’
error: use of deleted function ‘std::__detail::_Hashtable_base<wxString, std::pair<const wxString, wxString>, std::__detail::_Select1st, std::equal_to<wxString>, std::hash<wxString>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()