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 While Installing on Linux #447

Open
hoang-ta opened this issue Sep 9, 2020 · 17 comments
Open

Error While Installing on Linux #447

hoang-ta opened this issue Sep 9, 2020 · 17 comments

Comments

@hoang-ta
Copy link

hoang-ta commented Sep 9, 2020

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".
@m-schuetz
Copy link
Collaborator

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.

@eventart
Copy link

eventart commented Sep 9, 2020

Hi,

we have the same issue here. TBB is installed but it seems that we have to point him to the right paths. Let us know if you could fix it.

@eventart
Copy link

eventart commented Sep 9, 2020

@hoang-ta
Copy link
Author

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.

Hi,

we have the same issue here. TBB is installed but it seems that we have to point him to the right paths. Let us know if you could fix it.

Maybe this Link helps as well: https://stackoverflow.com/questions/48978579/how-can-i-fix-tbb-on-cmake

I have installed the libtbb-dev and set the path in cmake command but the error still occurs. Maybe I have done something wrong when setting the path. Here is the latest command I'm using:
cmake -DTBB_DIR=/usr/include/tbb/ -DCMAKE_PREFIX_PATH=/usr/share/cmake/Modules/FindTBB.cmake ../

@m-schuetz
Copy link
Collaborator

m-schuetz commented Sep 10, 2020

I see, I didn't have that problem with cmake, for me only the compiler complained about missing TBB. Maybe some missing cmake files came with build-essentials or some other package. Do you also have g++ and develop environment installed?

@AlbionS
Copy link

AlbionS commented Sep 11, 2020

I had the same problem, and using this cmake -DTBB_DIR=/usr/include/tbb/ -DCMAKE_PREFIX_PATH=/usr/share/cmake/Modules/FindTBB.cmake ../ solved it.

but now there is a new error and I have no clue what am I missing !
image

@midnight-dev
Copy link
Contributor

@AlbionS Have you tried updating CMake and your C++ build utils? It could be a problem if you can only build for C++ 14 or 17 when the CMake cache is calling for C++ 20.

Just for the record, are you also using Ubuntu 18.04? Any custom PPA configured?

@AlbionS
Copy link

AlbionS commented Sep 11, 2020

@midnight-dev thanks for your answer.

I have a new Ubuntu, I had to install : sudo apt install build-essential and sudo apt-get install libssl-dev, and than the latest version of cmake :

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic

and the cmake version is :
cmake version 3.18.2

c++ version :
c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

is there any particular c++ version that I should use ?

The first error that I encouter is this one when I run cmake ../
image

Adding this to the CMakeLists alicevision/geogram#2 (comment) and running cmake ../ again throws this error :
image

thanks to this :
image

and now I have another error lol 🤣
image

If you know exactly what I should install for Potree 2.0 I could create another new Virtual Ubuntu and test Potree

@ghost
Copy link

ghost commented Sep 21, 2020

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

@midnight-dev
Copy link
Contributor

@loicroybon If it's not finding the execution header, your included headers aren't using C++ 17, much less C++ 20. Can you update your C++ dev environment to C++ 20?

@taminhluan
Copy link

You should use gcc++10 which supported C++20.

@tinchee
Copy link

tinchee commented Mar 22, 2021

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

@ancythom
Copy link

Im trying to build Potree Converter on Ubuntu.
Not getting a clue about the error, when the following command is executed.

sudo cmake -DCMAKE_BUILD_TYPE=Release -DLASZIP_INCLUDE_DIRS=/home/vathsala/ans/TermII/thes/potreeconvert/lastools/master/LASzip/dll -DLASZIP_LIBRARY=/home/vathsala/ans/TermII/thes/potreeconvert/lastools/master/LASzip/build/src/liblaszip.so ..

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.16 or higher is required. You are running version 3.2.2

-- Configuring incomplete, errors occurred!

@ancythom
Copy link

ancythom commented Apr 4, 2022

Hi,

It would be great if you can help me in solving this issue.

Thanks ,
Ancy

@ancythom
Copy link

ancythom commented Apr 4, 2022

Its very specific to cmake version. When i tried with cmake 3.16, this error is resolved.

Ancy

@ponchio
Copy link

ponchio commented Jun 9, 2022

Got the same problem in Ubuntu 18.04, installing libtbb-dev did not install the .cmake files required.
The manual installation as suggested by Gost worked (no to in stall libtbb-dev with apt).
gcc version 9.4 was enough to compile.

@sladg
Copy link

sladg commented Feb 17, 2023

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

I'm facing same problem as Ghost. Seems to be unrelated to TBB.

Update:
Upgrading GCC from 8.5 to 12.2.0 fixed the issue.
(needed to export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH before running `./PotreeConverter).
This guide was followed, just used newer version: https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/

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

10 participants