Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TBB_INSTALL_DIR not found #41

Open
aseedb opened this issue Apr 1, 2020 · 1 comment
Open

TBB_INSTALL_DIR not found #41

aseedb opened this issue Apr 1, 2020 · 1 comment

Comments

@aseedb
Copy link

aseedb commented Apr 1, 2020

I am trying to build openmbir from source. I have tried on different linux systems and each time I am having errors related to TBB.

On ubuntu 16.04, I have done installed libtbb-dev with apt-get

but then I am getting this error when running cmake:

ERROR: TBB_INSTALL_DIR not found.
CMake Error at CMakeLists.txt:140 (message):
The Intel Threading Building Blocks library is needed to enable the
multithreaded algorithms. Please make sure it is installed properly

On another system where I do not have root permission, I have compiled TBB from source, I have place referenced the directory containing tbb libraries and executables in LD_LIBRARY_PATH and PATH respectively. And then I am getting the following error:

ERROR: Intel TBB NOT found!
-- Looked for Threading Building Blocks in /home/ubelix/ana/bzuber/local/tbb/build
CMake Error at CMakeLists.txt:140 (message):
The Intel Threading Building Blocks library is needed to enable the
multithreaded algorithms. Please make sure it is installed properly

@eboigne
Copy link

eboigne commented Aug 31, 2020

I had the same problem on Centos 7, even though TBB_INSTALL_DIR directed to my TBB install directory. I am not sure why the environment variable TBB_INSTALL_DIR was not recognized in CMake.

I solved it by modifying the TBB path directly in the CMakeCache.txt file. In doing so note that:

  • You need to specify the path of the libtbb.so and libtbb_malloc.so directly. Not just the directories in which they are stored.
  • You might have to comment lines 268-270 of $OpenMBIR-TEM-FOLDER/Support/cmp/cmpCMakeMacros.cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants