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

cmake --build . --target install --config Release --parallel 12 FAILS #86

Open
MatteoAzziniUnice opened this issue Aug 2, 2024 · 1 comment

Comments

@MatteoAzziniUnice
Copy link

Good morning and thanks for the help in advance. I'm trying to build your code but I have a problem with the command cmake --build . --target install --config Release

In fqct when I execute it it gives
In file included from /home/ealao/Desktop/ct_icp/src/SlamCore/io.cxx:6:0:
/home/ealao/Desktop/ct_icp/src/SlamCore/io.cxx: In function ‘std::vectorslam::PLYSchemaMapper::PLYProperty slam::{anonymous}::DefaultPropertiesFromSchema(const std::vectorslam::ItemSchema&, bool)’:
/home/ealao/Desktop/ct_icp/src/SlamCore/../../include/SlamCore/utils.h:30:32: error: ‘filesystem’ is not a member of ‘std’
#define SLAM_FILENAME std::filesystem::path(FILE).filename()

wich is weird since I#m using ubuntu 18, gcc 7.5 as required. Do you have any idea of how to solve it

@GanghaoSun
Copy link

error: ‘filesystem’ is not a member of ‘std’
#define SLAM_FILENAME std::filesystem::path(FILE).filename()

编译器版本太旧,把gcc和g++更新到11
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-11
sudo apt-get install g++-11

//再次查看gcc版本
gcc -v
//发现还是7.5.0
//进入/usr/bin目录下删除旧版本gcc/g++文件
cd /usr/bin
sudo rm gcc g++
//建立软连接
sudo ln -s gcc-11 gcc
sudo ln -s g++-11 g++
//再次查看版本,发现变为11

//重新cmake ,通过
原文链接:https://blog.csdn.net/lost__pig/article/details/131451887

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