tudelft3d / 3dfier

The open-source tool for creating 3D models
http://tudelft3d.github.io/3dfier
GNU General Public License v3.0
529 stars 106 forks source link

Build error Linux/Mac #68

Closed Ylannl closed 6 years ago

Ylannl commented 6 years ago

Seems to be related to the recent utf8 fixes

[ 84%] Building CXX object CMakeFiles/3dfier.dir/src/Map3d.cpp.o
In file included from /usr/include/c++/5/bits/locale_facets_nonio.h:2011:0,
                 from /usr/include/c++/5/locale:41,
                 from /usr/include/c++/5/iomanip:43,
                 from /home/rypeters/git/3dfier/src/definitions.h:5,
                 from /home/rypeters/git/3dfier/src/Map3d.h:32,
                 from /home/rypeters/git/3dfier/src/Map3d.cpp:29:
/usr/include/c++/5/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = std::codecvt<wchar_t, char, __mbstate_t>]’:
/usr/include/c++/5/bits/unique_ptr.h:236:17:   required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = std::codecvt<wchar_t, char, __mbstate_t>; _Dp = std::default_delete<std::codecvt<wchar_t, char, __mbstate_t> >]’
/usr/include/c++/5/bits/locale_conv.h:218:7:   required from here
/usr/include/c++/5/bits/codecvt.h:426:7: error: ‘virtual std::codecvt<wchar_t, char, __mbstate_t>::~codecvt()’ is protected
       ~codecvt();
       ^
In file included from /usr/include/c++/5/bits/locale_conv.h:41:0,
                 from /usr/include/c++/5/locale:43,
                 from /usr/include/c++/5/iomanip:43,
                 from /home/rypeters/git/3dfier/src/definitions.h:5,
                 from /home/rypeters/git/3dfier/src/Map3d.h:32,
                 from /home/rypeters/git/3dfier/src/Map3d.cpp:29:
/usr/include/c++/5/bits/unique_ptr.h:76:2: error: within this context
  delete __ptr;
  ^
CMakeFiles/3dfier.dir/build.make:302: recipe for target 'CMakeFiles/3dfier.dir/src/Map3d.cpp.o' failed
make[2]: *** [CMakeFiles/3dfier.dir/src/Map3d.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/3dfier.dir/all' failed
make[1]: *** [CMakeFiles/3dfier.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2