Atlas compilation failed. Compilator errors:
AtlasObjectImpl.cpp:167:25: error: call of overloaded ‘add(const char*&, const wxScopedWCharBuffer)’ is ambiguous
note: candidate: void AtObj::add(const char*, const wchar_t*) note: candidate: void AtObj::add(const char*, const wxString&)
AtlasObjectImpl.cpp:190:25: error: call of overloaded ‘set(const char*&, const wxScopedWCharBuffer)’ is ambiguous
note: candidate: void AtObj::set(const char*, const wchar_t*) note: candidate: void AtObj::set(const char*, const wxString&)
MapDialog.cpp:184:52: error: no matching function for call to ‘AtlasMessage::qVFSFileExists::qVFSFileExists(const wxScopedWCharBuffer)’
note: candidate: AtlasMessage::qVFSFileExists::qVFSFileExists(std::__cxx11::wstring)
MapDialog.cpp:199:52: error: no matching function for call to ‘AtlasMessage::qVFSFileExists::qVFSFileExists(const wxScopedWCharBuffer)’
note: candidate: AtlasMessage::qVFSFileExists::qVFSFileExists(std::__cxx11::wstring)
ScenarioEditor.cpp:726:52: error: no matching function for call to ‘AtlasMessage::qVFSFileExists::qVFSFileExists(const wxScopedWCharBuffer)'
note: candidate: AtlasMessage::qVFSFileExists::qVFSFileExists(std::__cxx11::wstring)
Description:
On unix system wxWidget.wc_str() polymorphic. If defined wxUSE_UNICODE_UTF8 its wxScopedWCharBuffer and compilator confused.
Patch forced cast to wchar_t and fixed compilation.
Additional info:
http://docs.wxwidgets.org/3.1/classwx_string.html Section Conversion to C string
http://sisyphus.ru/en/srpm/Sisyphus/wxGTK3.1/spec wxWidget build options in my distro.
i386, GNU/Linux 4.9.62, gcc version 5.3.1