I am following this tutorial to build OSRM-backend from source.
When it says:
cd build
cmake /srv/osrm/osrm-backend/
I got this error message:
ERROR: Intel TBB NOT found!
-- Looked for Threading Building Blocks in /usr
CMake Error at cmake/FindTBB.cmake:274 (message):
Could NOT find TBB library.
Call Stack (most recent call first):
CMakeLists.txt:533 (find_package)
I have installed TBB:
sudo apt install -y libtbb
And it looks good:
/usr/lib/x86_64-linux-gnu/libtbb.so
/usr/lib/x86_64-linux-gnu/libtbb.so.2
(...)
But cmake fails.
2
Answers
It's hard to find the solution, althought, it says, there're duplications:
Surprisingly, on MacOS, there's a simple workaround:
I’d go to the file from the error message and see that it can’t find the library at some default paths.
It means we have to help
cmake
a bit. At the beginning we can see that this module respectsTBB_INSTALL_DIR
. So I’d try setting it while configuring the project.