mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 03:52:04 +08:00
Use brew wxwidgets and stock Wx
This commit is contained in:
parent
2d3c17842c
commit
ab694efabb
@ -3,22 +3,9 @@ set -euo pipefail
|
|||||||
|
|
||||||
brew update -v
|
brew update -v
|
||||||
brew install boost perl cpanminus wxwidgets
|
brew install boost perl cpanminus wxwidgets
|
||||||
|
brew link --overwrite perl cpanminus
|
||||||
|
|
||||||
export SLIC3R_STATIC=1
|
export SLIC3R_STATIC=1
|
||||||
export BOOST_DIR=/usr/local
|
export BOOST_DIR=/usr/local
|
||||||
perl ./Build.PL
|
perl ./Build.PL
|
||||||
|
|
||||||
# Only recompile Wx if it's not already there
|
|
||||||
if [ ! -e ./local-lib/lib/perl5/darwin-thread-multi-2level/Wx.pm ]; then
|
|
||||||
# our patch-wxwidgets.diff assumes Alien::wxWidgets installs wxWidgets 3.0.2
|
|
||||||
# PERL_USE_UNSAFE_INC=1 \
|
|
||||||
# CXX="clang++ -mmacosx-version-min=10.12" \
|
|
||||||
# CPPFLAGS="-mmacosx-version-min=10.12 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=1" \
|
|
||||||
# LDFLAGS="-mmacosx-version-min=10.12" \
|
|
||||||
# cpanm --local-lib local-lib Alien::wxWidgets --reinstall \
|
|
||||||
# --configure-args="--wxWidgets-build=1 --wxWidgets-extraflags=\"--with-macosx-version-min=10.12 --disable-qtkit --disable-mediactrl --disable-webkit --disable-webview\" --wxWidgets-userpatch=$(pwd)/package/osx/patch-wxwidgets.diff"
|
|
||||||
|
|
||||||
PERL_USE_UNSAFE_INC=1 cpanm --local-lib local-lib --reinstall -v https://github.com/alranel/wxPerl-osx10.12/tarball/master
|
|
||||||
fi
|
|
||||||
|
|
||||||
perl ./Build.PL --gui
|
perl ./Build.PL --gui
|
||||||
|
Loading…
x
Reference in New Issue
Block a user