skip to Main Content

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


  1. Chosen as BEST ANSWER

    It's hard to find the solution, althought, it says, there're duplications:

    This is a duplicate of #6248 and #6253. Building with cmake -DENABLE_MASON=ON will fix it.

    Surprisingly, on MacOS, there's a simple workaround:

    brew install osrm-backend
    

  2. 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 respects TBB_INSTALL_DIR. So I’d try setting it while configuring the project.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search