doc: Add SLIC3R_WX_STABLE to Linux build doc #1779

This commit is contained in:
Vojtech Kral 2019-02-06 09:21:13 +01:00
parent 72d85261fb
commit 6ab6829b8d
2 changed files with 12 additions and 1 deletions

View File

@ -46,6 +46,16 @@ Note that `/usr/local` needs to be appended to the destdir path and also the pre
**Warning**: Once the dependency bundle is installed in a destdir, the destdir cannot be moved elsewhere.
This is because wxWidgets hardcode the installation path.
### wxWidgets version
By default, Slic3r PE looks for wxWidgets 3.1, this is because the 3.1 version has
a number of bugfixes and improvements not found in 3.0. However, it can also be built with wxWidgets 3.0.
This is done by passing this option to CMake:
-DSLIC3R_WX_STABLE=1
Note that Slic3r PE is tested with wxWidgets 3.0 somewhat sporadically and so there may be bugs in bleeding edge releases.
### Build variant
By default Scli3r builds the release variant.

View File

@ -65,7 +65,8 @@ if (SLIC3R_GUI)
else ()
find_package(wxWidgets 3.1 QUIET COMPONENTS base core adv html gl)
if (NOT wxWidgets_FOUND)
message(FATAL_ERROR "\nCould not find wxWidgets 3.1.\nHint: On Linux you can set -DSLIC3R_WX_STABLE=1 to use wxWidgets 3.0")
message(FATAL_ERROR "\nCould not find wxWidgets 3.1.\n"
"Hint: On Linux you can set -DSLIC3R_WX_STABLE=1 to use wxWidgets 3.0\n")
endif ()
endif ()
else ()