Require wxWidgets>=3.2, mention wxGTK+EGL problems in readme

This commit is contained in:
Lukas Matena 2023-07-24 10:39:27 +02:00
parent 035331ab9f
commit 1e28a93bcb
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Dependency report for PrusaSlicer # Dependency report for PrusaSlicer
## Possible dynamic linking on Linux ## Possible dynamic linking on Linux
* zlib: Strict dependency required from the system, linked dynamically. Many other libs depend on zlib. * zlib: Strict dependency required from the system, linked dynamically. Many other libs depend on zlib.
* wxWidgets >= 3.1.6 * wxWidgets >= 3.2
* libcurl * libcurl
* tbb * tbb
* boost * boost

View File

@ -100,6 +100,8 @@ As already mentioned above, dynamic linking of dependencies is possible, but Pru
The list of dependencies can be easily obtained by inspecting the CMake scripts in the `deps/` directory. Some of the dependencies don't have to be as recent as the versions listed - generally versions available on conservative Linux distros such as Debian stable, Ubuntu LTS releases or Fedora are likely sufficient. If you decide to build this way, it is your responsibility to make sure that CMake finds all required dependencies. It is possible to look at your distribution PrusaSlicer package to see how the package maintainers solved the dependency issues. The list of dependencies can be easily obtained by inspecting the CMake scripts in the `deps/` directory. Some of the dependencies don't have to be as recent as the versions listed - generally versions available on conservative Linux distros such as Debian stable, Ubuntu LTS releases or Fedora are likely sufficient. If you decide to build this way, it is your responsibility to make sure that CMake finds all required dependencies. It is possible to look at your distribution PrusaSlicer package to see how the package maintainers solved the dependency issues.
Note that you may need to use wxGTK with disabled EGL support for PrusaSlicer to work correctly: see [#9774](https://github.com/prusa3d/PrusaSlicer/issues/9774).
## Miscellaneous ## Miscellaneous
### Installation ### Installation

View File

@ -49,14 +49,14 @@ if (SLIC3R_GUI)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux") if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set (wxWidgets_CONFIG_OPTIONS "--toolkit=gtk${SLIC3R_GTK}") set (wxWidgets_CONFIG_OPTIONS "--toolkit=gtk${SLIC3R_GTK}")
find_package(wxWidgets 3.1.6 QUIET COMPONENTS base core adv html gl) find_package(wxWidgets 3.2 QUIET COMPONENTS base core adv html gl)
if (NOT wxWidgets_FOUND) if (NOT wxWidgets_FOUND)
message(FATAL_ERROR "Could not find wxWidgets >= 3.1.6") message(FATAL_ERROR "Could not find wxWidgets >= 3.2")
endif () endif ()
include(${wxWidgets_USE_FILE}) include(${wxWidgets_USE_FILE})
else () else ()
find_package(wxWidgets 3.1.6 COMPONENTS html adv gl core base) find_package(wxWidgets 3.2 COMPONENTS html adv gl core base)
if (NOT wxWidgets_FOUND) if (NOT wxWidgets_FOUND)
message(STATUS "Trying to find wxWidgets in CONFIG mode...") message(STATUS "Trying to find wxWidgets in CONFIG mode...")
find_package(wxWidgets 3.1.6 CONFIG REQUIRED COMPONENTS html adv gl core base) find_package(wxWidgets 3.1.6 CONFIG REQUIRED COMPONENTS html adv gl core base)