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

编译报错 #25

Closed
LANXIAODDD opened this issue Feb 1, 2024 · 12 comments
Closed

编译报错 #25

LANXIAODDD opened this issue Feb 1, 2024 · 12 comments

Comments

@LANXIAODDD
Copy link

您好!

我在Windows10 vscode 下编译代码出现错误:
Snipaste_2024-02-01_17-13-10

请问如何解决

@LiangliangNan
Copy link
Member

从你的log截图来看,你的系统不是Windows,而是某种Linux。
请告知你的系统是什么,用的什么编译器?

@LANXIAODDD
Copy link
Author

win10的操作系统
image
编译器mingw64 g++

@LiangliangNan
Copy link
Member

LiangliangNan commented Feb 1, 2024

原生windows下的静态库扩展名都是 “.lib”. Windows下目前支持微软的编译器,你用Visual Studio试试。

@LANXIAODDD
Copy link
Author

好的,谢谢

@LANXIAODDD
Copy link
Author

使用VS解决了问题,感谢!

@LANXIAODDD
Copy link
Author

顺便问一下,输入数据指的是去除叶子点云后的数据吗

@LiangliangNan
Copy link
Member

LiangliangNan commented Feb 1, 2024

可以包含叶子。你可以比较一下,输入有/没有叶子对重建结果的影响。如果方便,请截图放在这里,我也很好奇。

@LiangliangNan
Copy link
Member

@LANXIAODDD 我对项目配置做了改进,现在Windows下应该也支持MinGW了(也就是你之前的vscode 编译)。代码在“dev”(不是“main”),你试试看行不行。有结果请告诉我一声

@LANXIAODDD
Copy link
Author

您好,
感谢,现在vscode可以正常编译了!
image

但是在编译过程中,由于mingw gcc 缺少这个类,直接进行编译的话,会出现报错:
image
解决方案:https://github.com/meganz/mingw-std-threads

@LiangliangNan
Copy link
Member

I am confused. You firstly show a snapshot of a successful build, but then another one with error. What are the differences between the two?

@LANXIAODDD
Copy link
Author

在我的电脑上。用您新配置的项目构建可执行程序的过程中,首先会出现编译报错(如上图2),解决后,即可编译成功(如上图1)。

@LiangliangNan
Copy link
Member

很高兴问题已解决。
Good luck to your project!

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