Build/Compilation Error - filesystem No Such file or directory (GCC-7)
bigbigpark opened this issue · comments
In your installation there are 3 steps to install ct-icp code.
[1] $ .\ct_icp_build.sh Release "Unix Makefiles" ON ON # Builds the project in "Release" mode, with "Unix Makefiles" cmake generator, with python binding and with the visualization activated
[2] $ source env.sh # Setup the environment (.so locations)
[3] $ .\slam -c default_config.yaml # Launches the SLAM
I think the symbol '\' need to be changed as '/' because it is about unix system.
Anyway, when I put the command [1], the errors occur.
Error is ,
/home/bigbigpark/ct_icp/src/ct_icp/utils.hpp:5:10: fatal error: filesystem: No such file or directory
#include <filesystem>
The library is available more than C++17. I checked CMakeLists.txt....
How can I build this package ?
Thanks
Hi bigbigpark,
Thanks for your comments, I will update the Readme to clarify,
Can you specify which compiler you use ?
You need a c++ compiler which fully supports C++17,
If you use GCC, you should use a version >= 9,
Or a clang version >= 8 should be fine,
If you don't want to change default C++ compiler paths on your system,
You can specify before invoking ./ct_icp_build.sh ...
the following lines: (this will help CMAKE find the proper compiler)
export CC=/usr/bin/gcc-9 # path-to-gcc-9 | similarly find clang
export CXX=/usr/bin/g++-9 # path-to-g++-9 | clang++
./ct_icp_build.sh Release "Unix Makefiles" ON ON
Note: You probably need to erase the CMakeCache.txt before calling the script (otherwise CMake will use the cached compiler variables)
Thanks for fast replying!!
I found my compiler is gcc-7 so I updated it as gcc-9
The build is done with your help!
Plus I need a password at here https://cloud.mines-paristech.fr/index.php/s/UwgVFtiTOmrgKp5
Where can I get the password?
It said (you can find it in an answer in the issues)
but I couldn't find it
I found that in the closed issues!
Thanks