Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Slic3r on Raspberry Pi (raspbian) Fails #2402

Closed
Analogreality opened this issue Dec 6, 2014 · 10 comments
Closed

Installing Slic3r on Raspberry Pi (raspbian) Fails #2402

Analogreality opened this issue Dec 6, 2014 · 10 comments
Labels
Question This is a question that has been asked, not a bug report.

Comments

@Analogreality
Copy link

I'm attempting to follow the steps necessary to build Slic3r on a Raspberry Pi (using raspbian).

Invoking 'perl Build.PL' results in a long compilation, followed by a fatal error:

Can't locate Slic3r/XS.pm in @inc (@inc contains: /home/pi/slicertest/Slic3r/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/pi/slicertest/Slic3r/lib/Slic3r.pm line 38.
BEGIN failed--compilation aborted at /home/pi/slicertest/Slic3r/lib/Slic3r.pm line 38.
Compilation failed in require at ./slic3r.pl line 15.
BEGIN failed--compilation aborted at ./slic3r.pl line 15.

All attempts at searching for this type of issue on Google seem to show other people's attempts.. but that was in 2012.

@Analogreality
Copy link
Author

I was using this as a reference, but is outdated:
http://entropyprojects.blogspot.com/2012/08/slic3r-on-raspberry-pi.html

@Analogreality
Copy link
Author

When I tail the output, to see what it does:

NT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Point.o src/libslic3r/Point.cpp
cc -I/usr/lib/perl/5.14/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/TriangleMesh.o src/libslic3r/TriangleMesh.cpp
cc -I/usr/lib/perl/5.14/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/PrintConfig.o src/libslic3r/PrintConfig.cpp
! Installing ./xs failed. See /home/pi/.cpanm/work/1417886386.3301/build.log for details. Retry with --force to force install it.
FAIL

And when I look at the build.log file:
Checking if you have ExtUtils::Typemaps::Default 1.05 ... Yes (1.05)
Checking if you have Test::More 0 ... Yes (1.001009)
Checking if you have ExtUtils::ParseXS 3.18 ... Yes (3.24)
Checking if you have ExtUtils::Typemaps::Basic 1.05 ... Yes (1.05)
Checking if you have ExtUtils::XSpp 0.18 ... Yes (0.18)
Checking if you have Module::Build 0.3601 ... Yes (0.4210)
Checking if you have ExtUtils::Typemap 1.00 ... Yes (1.00)
Building and testing Slic3r-XS-0.01
-> FAIL Installing ./xs failed. See /home/pi/.cpanm/work/1417886386.3301/build.log for details. Retry with --force to force install it.

@Analogreality Analogreality changed the title Raspberry Pi Installation -> Missing Dependencies? Raspberry Pi Installation Failure Dec 6, 2014
@Analogreality Analogreality changed the title Raspberry Pi Installation Failure Installing Slic3r on Raspberry Pi (raspbian) Fails Dec 6, 2014
@alranel
Copy link
Member

alranel commented Dec 6, 2014

@Analogreality
Copy link
Author

That command is where the build fails at.

I am following that guide specifically making sure I meet the dependencies AND invoking perl as root.

The direct link to the guide is:
https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-Windows

I have heard that installing VX cannot be done via SSH shell, so I am attempting to build it as a logged in user at the terminal itself.. I should know shortly, but I doubt it.

Are there any known gotyas with attempting to build Slic3r on Raspbian for Raspberry Pi?

Failing that, is there just a simple, trusted place to get the BINARIES from for Raspbian (different architecture than 86)?

@alranel
Copy link
Member

alranel commented Dec 8, 2014

You should follow the Linux guide, not the Windows one.

Anyway, you could try with:

cd xs
perl Build.PL
sudo ./Build install

and if that fails, you can paste the full output here.

@Analogreality
Copy link
Author

App::cpanminus is up to date. (1.7019)
Class::XSAccessor is up to date. (1.19)
Encode::Locale is up to date. (1.03)
ExtUtils::MakeMaker is up to date. (7.04)
ExtUtils::ParseXS is up to date. (3.24)
File::Basename is up to date. (2.85)
File::Spec is up to date. (3.48)
Getopt::Long is up to date. (2.42)
IO::Scalar is up to date. (2.110)
Math::PlanePath is up to date. (117)
Module::Build::WithXSpp is up to date. (0.14)
Moo is up to date. (1.006001)
POSIX is up to date. (1.38_03)
Scalar::Util is up to date. (1.41)
Test::Harness is up to date. (3.34)
Test::More is up to date. (1.001009)
Thread::Semaphore is up to date. (2.12)
Time::HiRes is up to date. (1.9726)
XML::SAX::ExpatXS is up to date. (1.33)
Cleaning up build files
Cleaning up configuration files
--> Working on ./xs
Configuring /home/pi/slicertest/Slic3r/xs ... Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Slic3r-XS' version '0.01'
OK
Building and testing Slic3r-XS-0.01 ... Building Slic3r-XS
Processing XS typemap files...
Generating main XS file...
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/SurfaceCollection.o src/libslic3r/SurfaceCollection.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/MotionPlanner.o src/libslic3r/MotionPlanner.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Layer.o src/libslic3r/Layer.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/shared.o src/admesh/shared.c
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/utils.o src/libslic3r/utils.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/ExPolygon.o src/libslic3r/ExPolygon.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Surface.o src/libslic3r/Surface.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/PrintObject.o src/libslic3r/PrintObject.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/TriangleMesh.o src/libslic3r/TriangleMesh.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Geometry.o src/libslic3r/Geometry.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/ClipperUtils.o src/libslic3r/ClipperUtils.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Polygon.o src/libslic3r/Polygon.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/clipper.o src/clipper.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/connect.o src/admesh/connect.c
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/poly2tri/sweep/cdt.o src/poly2tri/sweep/cdt.cc
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/ExtrusionEntityCollection.o src/libslic3r/ExtrusionEntityCollection.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/MultiPoint.o src/libslic3r/MultiPoint.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/polypartition.o src/polypartition.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Config.o src/libslic3r/Config.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/PlaceholderParser.o src/libslic3r/PlaceholderParser.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/LayerRegion.o src/libslic3r/LayerRegion.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/stlinit.o src/admesh/stlinit.c
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/BoundingBox.o src/libslic3r/BoundingBox.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Line.o src/libslic3r/Line.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/normals.o src/admesh/normals.c
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Print.o src/libslic3r/Print.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/util.o src/admesh/util.c
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/poly2tri/sweep/sweep_context.o src/poly2tri/sweep/sweep_context.cc
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/ExtrusionEntity.o src/libslic3r/ExtrusionEntity.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Point.o src/libslic3r/Point.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Flow.o src/libslic3r/Flow.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/admesh/stl_io.o src/admesh/stl_io.c
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Extruder.o src/libslic3r/Extruder.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/poly2tri/common/shapes.o src/poly2tri/common/shapes.cc
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/poly2tri/sweep/sweep.o src/poly2tri/sweep/sweep.cc
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/poly2tri/sweep/advancing_front.o src/poly2tri/sweep/advancing_front.cc
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Model.o src/libslic3r/Model.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/GCodeWriter.o src/libslic3r/GCodeWriter.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/PolylineCollection.o src/libslic3r/PolylineCollection.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/PrintConfig.o src/libslic3r/PrintConfig.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/ExPolygonCollection.o src/libslic3r/ExPolygonCollection.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/PrintRegion.o src/libslic3r/PrintRegion.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/SVG.o src/libslic3r/SVG.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/Polyline.o src/libslic3r/Polyline.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o src/libslic3r/BridgeDetector.o src/libslic3r/BridgeDetector.cpp
cc -I/usr/lib/arm-linux-gnueabihf/perl/5.20/CORE -DVERSION="0.01" -DXS_VERSION="0.01" -fPIC -xc++ -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_USE_C99 -DHAS_BOOL -DNOGDI -DSLIC3RXS -Isrc -Ibuildtmp -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o buildtmp/XS.o buildtmp/XS.c
FAIL

@Analogreality
Copy link
Author

I accidently linked to the Windows guide, but I was actually using the Linux guide.. namely.. using perl to run the Build.PL file.

I've attempted to run the Build.PL script inside a SSH session, directly from terminal, as root, and as running as a normal user... no luck. It errors out with FAIL at the end.

I think it has a bad build dependency but it's not giving me very useful compilation errors.

@mojoTheReplicator
Copy link

Hi,

I had the same problem that XS.c could not be compiled.

At my rasbpi system was due to too less memory - i saw it during the build process (using the "top" command) that even the swap space was fully used.

For me it helped to increase the swap space from 100 MB to 500 MB through editing the file

/etc/dphys-swapfile

and altering the line

CONF_SWAPSIZE=100

to

CONF_SWAPSIZE=500

after this remount the swap with

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start

and rerun the build process.

Good luck - and let me know if you succeeded! - If yes we should post this possible solution on the site http://entropyprojects.blogspot.co.at/2012/08/slic3r-on-raspberry-pi.html

@lordofhyphens lordofhyphens added the Question This is a question that has been asked, not a bug report. label Jun 28, 2016
@lordofhyphens
Copy link
Member

This looks likes it's resolved, closing. Please reopen if it isn't.

@ChristophSchranz
Copy link

ChristophSchranz commented Jul 13, 2018

This topic is old, but I have not found any other Slic3r release for the Raspberry Pi.
It was built from version 1.3.1-dev and works for me on a RPi with Stretch
https://github.com/iot-salzburg/Slic3r/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question This is a question that has been asked, not a bug report.
Projects
None yet
Development

No branches or pull requests

5 participants