Zip-o-mat / Slic3r

Slic3r with integrated electronics and Nonplanar slicer (see branches)
GNU Affero General Public License v3.0
602 stars 100 forks source link

Issues when compiling for Raspberry pi #22

Open OwenCoopland opened 4 years ago

OwenCoopland commented 4 years ago

I am trying to compile Slic3r with the non planar slicing for a raspberry pi 3 running raspbian ("10", "Buster"). I have tried some general troubleshooting such as updates etc but no success. Any help would be appreciated. Let me know if the info provided is irrelevant, im not used to using linux and command lines. Im not sure what I am doing wrong, so if anyone can point me in the correct direction, please do.

pi@Streamer:~/Slic3r/build $ make
[  2%] Built target BSpline
[  4%] Built target ZipArchive
[  6%] Built target clipper
[ 10%] Built target libslic3r_gui
[ 12%] Built target polypartition
[ 20%] Built target admesh
[ 26%] Built target poly2tri
[ 87%] Built target libslic3r
[ 90%] Built target slic3r
[ 92%] Built target nowide
[ 93%] Building CXX object xs/CMakeFiles/XS.dir/src/libslic3r/utils.cpp.o
[ 94%] Building CXX object xs/CMakeFiles/XS.dir/src/slic3r/GUI/wxPerlIface.cpp.o
[ 95%] Building CXX object xs/CMakeFiles/XS.dir/src/perlglue.cpp.o
In file included from /usr/include/c++/8/vector:69,
                 from /usr/include/c++/8/queue:61,
                 from /home/pi/Slic3r/xs/src/libslic3r/libslic3r.h:8,
                 from /home/pi/Slic3r/xs/src/xsinit.h:41,
                 from /home/pi/Slic3r/xs/src/perlglue.cpp:2:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const Slic3r::Pointf&}; _Tp = Slic3r::Pointf; _Alloc = std::allocator<Slic3r::Pointf>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<Slic3r::Pointf>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<Slic3r::Pointf*, std::vector<Slic3r::Pointf> >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’} changed in GCC 7.1
/usr/include/c++/8/bits/vector.tcc: In function ‘bool Slic3r::ConfigBase__set(Slic3r::ConfigBase*, const t_config_option_key&, SV*)’:
/usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’ changed in GCC 7.1
    _M_realloc_insert(end(), std::forward<_Args>(__args)...);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /usr/include/c++/8/queue:61,
                 from /home/pi/Slic3r/xs/src/libslic3r/libslic3r.h:8,
                 from /home/pi/Slic3r/xs/src/xsinit.h:41,
                 from /home/pi/Slic3r/xs/src/perlglue.cpp:2:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<Slic3r::Pointf*, std::vector<Slic3r::Pointf> >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
[ 96%] Linking CXX shared library XS.so
/usr/bin/ld: CMakeFiles/XS.dir/XS.cpp.o: file not recognized: file truncated
collect2: error: ld returned 1 exit status
make[2]: *** [xs/CMakeFiles/XS.dir/build.make:199: xs/XS.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:422: xs/CMakeFiles/XS.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Zip-o-mat commented 4 years ago

I don't know why this isn't working. You can try with the usual Perl build system in this branch: https://github.com/Zip-o-mat/Slic3r/tree/nonplanar-master-merge