PotreeConverter: Error While Installing on Linux

I am installing PotreeConverter on Ubuntu 18.04 and face the following error while running cmake ../ from build directory.

CMake Error at CMakeLists.txt:60 (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" 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.


-- Configuring incomplete, errors occurred!
See also "/home/hoangta/Desktop/Libs/PotreeConverter/build/CMakeFiles/CMakeOutput.log".

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 7
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Maybe i meet the same problem with you, and i inserted the ubuntu20.04 in my source.list file, then run sudo apt-get install libtbb-dev cmake and make again, the error disappeared maybe this page is helpful i run it on ubuntu16.04 and gcc-9

Ok, still have the same issue. I did this :

sudo apt install build-essential
sudo apt install libtbb-dev
temp_folder="/tmp/tbb"
if [ ! -d $temp_folder ]
then
    sudo mkdir $temp_folder
fi 
cd $temp_folder
sudo git clone https://github.com/wjakob/tbb.git
cd tbb/build
sudo cmake ..
sudo make -j
sudo make install

And now, I’ve this message :

Scanning dependencies of target PotreeConverter
[ 80%] Building CXX object CMakeFiles/PotreeConverter.dir/Converter/src/chunker_countsort_laszip.cpp.o
In file included from /home/my_user/converters/potree/PotreeConverter/Converter/src/chunker_countsort_laszip.cpp:22:
/home/my_user/converters/potree/PotreeConverter/./Converter/include/PotreeConverter.h:4:10: fatal error: execution: No such file or directory
 #include <execution>
          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/PotreeConverter.dir/build.make:63: CMakeFiles/PotreeConverter.dir/Converter/src/chunker_countsort_laszip.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/PotreeConverter.dir/all] Error 2

Hi, you’ll need to install tbb, like this: https://askubuntu.com/questions/1170054/install-newest-tbb-thread-building-blocks-on-ubuntu-18-04

Similarly, there may be other dependencies that are missing and which you’ll have to install.