From 73de247a15cfd13b735dddebdc10cc2edb3805ff Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 16 Mar 2017 14:09:42 +0100 Subject: [PATCH] Enabled SLIC3R_GUI by default. This is required to enable the OpenGL 2.0 API through C++ GLEW. --- xs/Build.PL | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/Build.PL b/xs/Build.PL index 5d2b84ccc..7d82a6eec 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -43,6 +43,8 @@ my @early_includes = (); my @INC = qw(-Isrc/libslic3r -Isrc/glew/include); my @LIBS = $cpp_guess->is_msvc ? qw(-LIBPATH:src/libslic3r) : qw(-Lsrc/libslic3r); +$ENV{SLIC3R_GUI} = 1 if $ENV{SLIC3R_NOGUI} != 1; + if ($ENV{SLIC3R_GUI} || $ENV{SLIC3R_PRUS}) { print "Slic3r will be built with GUI support\n";