Open sethml opened 9 months ago
I had same issue with recent cmake versions 3.28.0--3.28.2, but was able to build deps and Slicer with CMake 3.27.9. Unfortunately there's no simple way how to install older brew package (only some packages has multiple versions in brew, which is no the case for cmake), so I'd suggest to download and install cmake 3.27.9 directly from Kitware or here is the direct link to the universal DMG.
Once you have copied the CMake app into the /Applications
you may invoke it like this:
cd build
/Applications/CMake.app/Contents/bin/cmake ..
make -j6
If you have dropped the CMake app to custom location, make sure there's no space in the path.
Note this is a libTIFF bug... the new version of cmake just happens to be the first to try and use libTIFF's new packaging code that's present in the static-bundled version in the deps. It also applies to more than Macs-- I hit it on Ubuntu with a recent enough cmake.
There are a couple of workarounds:
wxWidgets.cmake
to unset wxUSE_LIBTIFF (or after https://github.com/prusa3d/PrusaSlicer/pull/12559 is merged, build deps with -DDEP_WX_ENABLE_TIFF=OFF
). The slicer build will not be able to work with tiff files.@jmerdich I downgraded all the way to 3.27.0 and am still getting the same errors. Which version did you use to successfully build yours with?
@MaleNurse I managed to build Slicer with CMake 3.27.9 (should be the last 3.27.x version). Did you remove original deps/build directory before building with CMake 3.27.x (to be sure there is no invalid cached value stored)? Are you using the 3.27.x version for both building deps and the app itself?
@barzto Unfortunately, yeah. Tried w/ 3.27.9, reverted further back to 3.27.0, trashing the build folders each time. Then I completely wiped and re-cloned the project, but nothing seems to be working. Only thing I haven't tried is modding wxWidgets.cmake since I'm just trying to retain all the intended functionality. The commands I'm using are:
/Applications/CMake.app/Contents/bin/cmake ..
for the deps and
/Applications/CMake.app/Contents/bin/cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local"
for the app
/Applications/CMake.app/Contents/bin/cmake --version
gives me cmake version 3.27.0
right now
Description of the bug
Attempting to build on MacOS following the How%20to%20build%20-%20Mac%20OS instructions. Building deps fails:
I've tried to figure out what's going on, but my cmake-fu is too weak. Help?
Project file & How to reproduce
MacOS 14.3 (23D56) Apple M2 Pro cmake version 3.28.2 XCode Version 15.2 (15C500b)
Checklist of files included above
Version of PrusaSlicer
97c3679a3
Operating system
MacOS 14.3 (23D56)
Printer model
irrelevant