Closed norre-daroy closed 4 years ago
Its hard to tell from this error message only. Check the CMake prefix path and if TBB is built properly there (should be a static library). Also if you use the deps directory to build the dependencies, and then configure PrusaSlicer project, make sure you have -DSLIC3R_STATIC=ON
when calling cmake.
Hello. Thank you so much for replying. When you said check the CMake prefix path is it this command cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local"
. Because all I did was build the dependencies as per instructed in the deps
directory with cmake ..
then make
. And I got some make
errors. I am not sure where to build TBB
But I ignored these errors and proceeded to build PrusaSlicer with mkdir build
, cd build
, cmake .. -DCMAKE_PREFIX_PATH="$PWD/../deps/build/destdir/usr/local"
. What step am I missing and where should I add-DSLIC3R_STATIC=ON
when calling cmake?
In this screenshot, it says my SLIC3R_STATIC is already ON. But CMAKE_PREFIX_PATH element does not exist.
Thank yo so much for your help
@norre-daroy Your deps build failed on building boost, so it never got to build TBB. That's why it wasn't found. Boost was, because you have it installed on your system.
As to why it failed, I don't know. There is something wrong in the path around the WebDev
directory. Is there some chance it has a trailing space at the end? If so, I'd repeat what you were doing in e.g. /Users/ninja.n/PrusaSlicer
to see what happens.
The -DSLIC3R_STATIC=ON
should be passed as another argument to cmake when building PrusaSlicer (not the dependencies).
@lukasmatena you were right. I had some trailing space at the end. I successfully built it.
Hi, how did you fix this? i'm stuck in a similar error, i never used visual studio before and i'm totally lost
I have same problem on Debian Bullseye. TBB installed by apt.
I have same problem on Debian Bullseye. TBB installed by apt.
If it's installed by apt, you'll probably need to add -DTBB_LIBRARIES=/usr/include/tbb
to your cmake command.
i.e. cmake .. -DSLIC3R_STATIC=1 -DCMAKE_PREFIX_PATH=/opt/PrusaSlicer -DTBB_LIBRARIES=/usr/include/tbb
I am also stuck with the tbb libraries, I keep getting this error from CMake all the time, despite having entered the correct path. Latest stable release downloaded from https://github.com/oneapi-src/oneTBB, but there is no instruction on how to install it.
its been quite some time i fixed this, but i think i did a fresh install on C:/ instead of default directory.
Should I then install boost and tbb in C:\?
If you are on Windows, use absolute paths. I stumbled on this when I tried to be smart and used a relative path like ..\..\PrusaSlicer-deps\usr\local
, which resulted in this error. A full path like C:\src\PrusaSlicer-deps\usr\local
did work.
TBB library cannot be found. Consider set TBBROOT environment variable. (missing: TBB_INCLUDE_DIRS TBB_LIBRARIES)
After fighting this for hours on OSX 11.6, I finally worked around it by resetting the deps
directory in git.
rm -rf deps/build
rm -rf deps
git checkout deps/*
mkdir -p deps/build
cd deps/build
cmake ..
🎉
If you are running into issues, also check the output of PrusaSlicer/deps/CMakeFiles/CMakeOutput.log
and PrusaSlicer/deps/CMakeFiles/CMakeError.log
Version
version_2.1.0-485-g050a9adf3
Operating system type + version
macOS Mojave 10.14.6
Behavior
https://github.com/prusa3d/PrusaSlicer.git
. I then went intodeps
directory. After Imkdir build
andcd build
, I get this errorAny help is appreciated. Thank you so much :)
Is this a new feature request? No