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

Error on configuring parallelstl using CMake on Windows #14

Closed
mselim opened this issue Jun 28, 2018 · 8 comments
Closed

Error on configuring parallelstl using CMake on Windows #14

mselim opened this issue Jun 28, 2018 · 8 comments

Comments

@mselim
Copy link

mselim commented Jun 28, 2018

Complaining that a TBB CMake directory is missing, though TBB is not build (doesn't provide) CMake configuration and building

**CMake Error at CMakeLists.txt:39 (find_package):
By not providing "FindTBB.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "TBB", but
CMake did not find one.

Could not find a package configuration file provided by "TBB" (requested
version 2018) with any of the following names:

TBBConfig.cmake
tbb-config.cmake

Add the installation prefix of "TBB" to CMAKE_PREFIX_PATH or set "TBB_DIR"
to a directory containing one of the above files. If "TBB" provides a
separate development package or SDK, be sure it has been installed.**

@AlexVeprev
Copy link
Contributor

Hi @mselim,

Parallel STL requires an installed TBB.

For binary integration (the simplest way) you need to download a TBB release (for example TBB 2018 U5 for Windows), unpack it wherever you want and pass -DTBB_DIR=<dir-with-unpacked-tbb>\tbb2018_20180618oss\cmake when you're running CMake for Parallel STL:

cmake -DTBB_DIR=<dir-with-unpacked-tbb>\tbb2018_20180618oss\cmake <pstl-root>

(supported starting from TBB 2017 U7)

Please try and let me know if it helps or not.

Here I've described an example for Linux.

@mselim
Copy link
Author

mselim commented Jul 13, 2018

Just I wanted you to know, I don't use TBB pre-built binary, I download the TBB src and build it using C++ Visual Studio 2017 (since there's no binaries for C++2017 yet), in this case do you think the above solution would help?

@AlexVeprev
Copy link
Contributor

Actually you can use prebuilt TBB binaries for vc14 with Visual Studio 2017 (vc14.1), see this discussion for details.

If you still need to build TBB, have you considered TBBBuild? It'll create TBBConfig files for CMake.
You can set argument CONFIG_DIR <variable> as CONFIG_DIR TBB_DIR and CMake will automatically load the built TBB.

@mselim
Copy link
Author

mselim commented Jul 19, 2018

Unfortunately TBBBuild is unknown for me, the link doesn't provide any information. How can the TBBBuild help in this case, can you guide me a bit here, thanks in advance.

@tbbdev
Copy link
Contributor

tbbdev commented Apr 21, 2020

Closing the issue because there is no activity for a long time. Feel free to reopen it if it is still actual.

@tbbdev tbbdev closed this as completed Apr 21, 2020
@linrio
Copy link

linrio commented Nov 25, 2020

Hi, @AlexVeprev,
I follow your step in #13
It failed:

app@ubuntu:/tmp/build$ cmake -DTBB_DIR=/tmp/tbb2018_20180618oss/cmake /tmp/parallelstl
CMake Error: The source directory "/tmp/parallelstl" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

@AlexVeprev
Copy link
Contributor

Hi, @linrio, you have absent CMakeLists.txt in /tmp/parallelstl project, could you please specify where did you get /tmp/parallelstl from? Also I'd suggest creating a new issue rather than posting into closed ones with another topic, it'll simplify tracking.

@linrio
Copy link

linrio commented Nov 25, 2020

@AlexVeprev , I download parallelstl from https://github.com/intel/parallelstl
I created a new issue with Could not find a package configuration file provided by "TBB" with any of TBBConfig.cmake tbb-config.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

4 participants