superslicer/deps
supermerill 7c3da3d887 Move macos intel from 10.13 to 10.15
update openvdb dependency to be build with new macos
2025-11-27 13:31:14 +01:00
..
+Blosc updated deps to build with recent Xcode 16.4: 2025-10-14 11:59:35 +02:00
+Boost Fix missing boost dependency on zlib 2023-11-01 16:01:47 +01:00
+Catch2 Dependency update with simplified cmake code 2023-10-24 15:06:08 +02:00
+Cereal Dependency update with simplified cmake code 2023-10-24 15:06:08 +02:00
+CGAL updated deps to build with recent Xcode 16.4: 2025-10-14 11:59:35 +02:00
+CURL Dependency update with simplified cmake code 2023-10-24 15:06:08 +02:00
+EXPAT Dependency update with simplified cmake code 2023-10-24 15:06:08 +02:00
+GLEW Followup fully converted deps to new system 2023-10-24 15:06:46 +02:00
+GMP Merge with prusaslicer 2.7 rc2 2023-12-12 17:06:26 +01:00
+heatshrink upgrade heatshrink cmake file 2023-11-03 13:45:20 +01:00
+JPEG Update JPEG, PNG, TIFF to build mac-universal 2023-10-24 16:34:59 +02:00
+LibBGCode Update cmake file to download latest version of libbgcode library 2024-01-29 12:42:31 +01:00
+MPFR fix bug when gcodeprocessor add a new move while no machine.blocks are in use. 2025-03-24 23:35:26 +01:00
+NanoSVG Dependency update with simplified cmake code 2023-10-24 15:06:08 +02:00
+NLopt Followup fully converted deps to new system 2023-10-24 15:06:46 +02:00
+OCCT SPE-2257: Downgrade OCCT to 7.6.1 because newer versions are triangulating chamfers incorrectly. 2025-10-14 11:59:28 +02:00
+OpenCSG Fix inconsistent option variable names in deps 2023-10-24 15:07:34 +02:00
+OpenEXR Merge with prusaslicer 2.7 rc2 2023-12-12 17:06:26 +01:00
+OpenSSL Fix OpenSSL 2023-10-24 15:07:34 +02:00
+OpenVDB Move macos intel from 10.13 to 10.15 2025-11-27 13:31:14 +01:00
+PNG updated deps to build with recent Xcode 16.4: 2025-10-14 11:59:35 +02:00
+Qhull update qhull 2023-10-24 15:07:34 +02:00
+TBB disable TBB_STRICT on Linux 2025-03-28 11:09:00 +01:00
+wxWidgets Removed dependency on libtiff 2024-08-04 19:07:39 +02:00
+ZLIB Dependency update with simplified cmake code 2023-10-24 15:06:08 +02:00
Qhull Merge with prusaslicer 2.7 rc2 2023-12-12 17:06:26 +01:00
autobuild.cmake Add presets and deps autobuild 2023-10-24 16:31:02 +02:00
CMakeLists.txt merge fixes from 2.5.60 to 2.7 2024-11-09 23:47:01 +01:00
CMakePresets.json Fix debug build and remove platform detection wizardry in presets 2023-10-27 15:59:15 +02:00
README.md Add readme to deps 2023-11-13 13:37:59 +01:00

PrusaSlicer dependencies

This folder is a top level CMake project to build the dependent libraries for PrusaSlicer. It can be configured and built in the standard CMake way using the commands:

cmake .. 
cmake --build .

Each dependency is specified in a separate folder prefixed with the + sign. The underlying framework to download and build external projects is CMake's ExternalProject module. No other tool (e.g. Python) is involved in the process. All the standard CMake switches work as expected, -G for alternative build file generators like Ninja or Visual Studio projects. Important toolchain configuration variables are forwarded to each package build script if they happen to be CMake based. Otherwise they are forwarded to the appropriate build system of a particular library package.

A note about build configurations on MSVC

To build PrusaSlicer in different configurations with a Visual Studio toolchain, it is necessary to also build the dependencies in the appropriate configurations. As MSVC runtimes are not compatible between different build configurations, it's not possible to link a library built in Release mode to PrusaSlicer being built in Debug mode. This fact applies to all libraries except those with proper C linkage and interface lacking any STL container (e.g. ZLIB). Many of the dependent libraries don't fall into this cathegory thus they need to be built twice: in Release and Debug versions.

The DEP_DEBUG flag is used to specify if Debug versions of the affected libraries will be built. If an MSVC toochain is used, this flag is ON by default and OFF for any other platform and compiler suite.

Note that it's not necessary to build the dependencies for each CMake build configuration (e.g. RelWithDebInfo). When PrusaSlicer is built in such a configuration, a pure Debug or Release build of dependencies will be compatible with the main project. CMake should automatically choose the right configuration of the dependencies in such cases. This may not work in all cases (see https://stackoverflow.com/questions/24262081/cmake-relwithdebinfo-links-to-debug-libs).

Automatic dependency build while configuring PrusaSlicer

It is possible build the dependencies while configuring the main PrusaSlicer project. To invoke this feature, configure PrusaSlicer with the -DPrusaSlicer_BUILD_DEPS:BOOL=ON flag. All the necessary arguments will be forwarded to the dependency build and the paths to finding the libraries (CMAKE_PREFIX_PATH) will automatically be set for the main project.

All that needs to be done to build the whole PrusaSlicer project from scratch is to use the command

cmake --preset default -DPrusaSlicer_BUILD_DEPS:BOOL=ON

in the top level source directory. This method makes use of presets which are a relatively new feature of CMake. To list the current available presets, use the

cmake --list-presets

command in the source directory where a CMakePresets.json file is available.