Hi,
I’m trying to compile heekscad which is a tool I use for my work. I’m able to compile it with Fedora 25 in my notebook but I can’t do it with my up to date Tumbleweed desktop.
This is the error message I get right after beginning compilation:
...
In file included from /home/luispa/src/heekscad-master/src/stdafx.h:263:0,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/home/luispa/src/heekscad-master/src/HeeksCAD.h: At global scope:
/home/luispa/src/heekscad-master/src/HeeksCAD.h:227:8: warning: ‘template<class> class std::auto_ptr’ is deprecated -Wdeprecated-declarations]
std::auto_ptr<VectorFonts> m_pVectorFonts; // QCAD format fonts that have been loaded.
^~~~~~~~
In file included from /usr/include/c++/7/bits/locale_conv.h:41:0,
from /usr/include/c++/7/locale:43,
from /usr/include/c++/7/iomanip:43,
from /home/luispa/src/heekscad-master/src/stdafx.h:42,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from /home/luispa/src/heekscad-master/src/stdafx.h:263:0,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/home/luispa/src/heekscad-master/src/HeeksCAD.h:236:8: warning: ‘template<class> class std::auto_ptr’ is deprecated -Wdeprecated-declarations]
std::auto_ptr<CAutoSave> m_pAutoSave;
^~~~~~~~
In file included from /usr/include/c++/7/bits/locale_conv.h:41:0,
from /usr/include/c++/7/locale:43,
from /usr/include/c++/7/iomanip:43,
from /home/luispa/src/heekscad-master/src/stdafx.h:42,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from /home/luispa/src/heekscad-master/src/stdafx.h:263:0,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/home/luispa/src/heekscad-master/src/HeeksCAD.h:426:8: warning: ‘template<class> class std::auto_ptr’ is deprecated -Wdeprecated-declarations]
std::auto_ptr<VectorFonts> & GetAvailableFonts(const bool force_read = false);
^~~~~~~~
In file included from /usr/include/c++/7/bits/locale_conv.h:41:0,
from /usr/include/c++/7/locale:43,
from /usr/include/c++/7/iomanip:43,
from /home/luispa/src/heekscad-master/src/stdafx.h:42,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/usr/include/c++/7/bits/unique_ptr.h:51:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
In file included from /usr/include/wx-3.0/wx/intl.h:17:0,
from /usr/include/wx-3.0/wx/wx.h:22,
from /home/luispa/src/heekscad-master/src/stdafx.h:29,
from /home/luispa/src/heekscad-master/interface/DoubleInput.cpp:5:
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp: In member function ‘virtual const wxChar* CInputApply::GetTitle()’:
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp:19:34: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in return
const wxChar* GetTitle(){return _("Apply");}
^
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp: In member function ‘virtual const wxChar* CInputApply::GetToolTip()’:
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp:21:36: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in return
const wxChar* GetToolTip(){return _("Accept value and continue");}
^
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp: In member function ‘virtual const wxChar* CInputCancel::GetTitle()’:
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp:29:34: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in return
const wxChar* GetTitle(){return _("Cancel");}
^
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp: In member function ‘virtual const wxChar* CInputCancel::GetToolTip()’:
/home/luispa/src/heekscad-master/interface/DoubleInput.cpp:31:36: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in return
const wxChar* GetToolTip(){return _("Cancel operation");}
^
make[2]: *** [interface/CMakeFiles/heeksintf.dir/build.make:63: interface/CMakeFiles/heeksintf.dir/DoubleInput.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: interface/CMakeFiles/heeksintf.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Any workaround for this?
Thank you very much in advance,
Luis Pablo