diff --git a/doc/How to build - Linux et al.md b/doc/How to build - Linux et al.md index 1378d903a..a0dfec089 100644 --- a/doc/How to build - Linux et al.md +++ b/doc/How to build - Linux et al.md @@ -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. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d0c53db7e..b38ae3665 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 ()