mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-29 03:21:58 +08:00

* Use GCC8 toolchain * Allow appimage to preload included libgcc_s and stdc++ if necessary. * Need to add header for boost::noncopyable * use const strings for exceptions. * use right header dir for shim * Only use swrast_dri from appimage if it's old or doesn't exist. * added note about where the apprun script was source from, thanks @darealshinji
33 lines
1.3 KiB
Bash
Executable File
33 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# -u is too strict for source $HOME/perl5/perlbrew/etc/bashrc:
|
|
### set -euo pipefail
|
|
set -eo pipefail
|
|
|
|
if [ ! -d $HOME/perl5/perlbrew/perls/slic3r-perl ]; then
|
|
echo "Downloading slic3r-perlbrew-5.28.tar.bz2"
|
|
curl -L "http://www.siusgs.com/slic3r/buildserver/slic3r-perl.528.gcc81.travis.tar.bz2" -o /tmp/slic3r-perlbrew-5.28.tar.bz2;
|
|
tar -C$HOME/perl5/perlbrew/perls -xjf /tmp/slic3r-perlbrew-5.28.tar.bz2
|
|
fi
|
|
|
|
source $HOME/perl5/perlbrew/etc/bashrc
|
|
perlbrew switch slic3r-perl
|
|
|
|
if [ ! -e $HOME/boost_1_63_0/boost/version.hpp ]; then
|
|
echo "Downloading boost_1_69_0.built.gcc-8.1.0-buildserver.tar.bz2"
|
|
curl -L "http://www.siusgs.com/slic3r/buildserver/boost_1_69_0.built.gcc-8.1.0-buildserver.tar.bz2" -o /tmp/boost-compiled.tar.bz2
|
|
tar -C$HOME -xjf /tmp/boost-compiled.tar.bz2
|
|
fi
|
|
|
|
if [ ! -e ./local-lib/lib/perl5/x86_64-linux-thread-multi/Wx.pm ]; then
|
|
echo "Downloading slic3r-dependencies.gcc81.travis-wx302.tar.bz2"
|
|
curl -L "http://www.siusgs.com/slic3r/buildserver/slic3r-dependencies.gcc81.travis-wx302.tar.bz2" -o /tmp/local-lib-wx302.tar.bz2
|
|
tar -C$TRAVIS_BUILD_DIR -xjf /tmp/local-lib-wx302.tar.bz2
|
|
fi
|
|
|
|
CC=g++-8 CXX=g++-8 BOOST_DIR=$HOME/boost_1_69_0 perl ./Build.PL
|
|
excode=$?
|
|
if [ $excode -ne 0 ]; then exit $excode; fi
|
|
perl ./Build.PL --gui
|
|
exit $?
|