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

pcl编译问题 #4425

Open
zhangzhousuper opened this issue Jun 21, 2024 · 3 comments · May be fixed by #4427
Open

pcl编译问题 #4425

zhangzhousuper opened this issue Jun 21, 2024 · 3 comments · May be fixed by #4427
Labels

Comments

@zhangzhousuper
Copy link

Xmake 版本

xmake v2.9.2+master.872ddbd0c

操作系统版本和架构

win10

描述问题

安装pcl默认设置的时候是正常的,当加上vtk=true后会出现编译错误

期待的结果

成功链接

工程配置

add_rules("mode.debug", "mode.release")
add_requires("pcl",{configs = {vtk = true}})
add_requires("boost","vtk")
set_languages("c++20")
target("hello")
set_kind("binary")
add_files("src/*.cpp")
add_packages("boost","vtk")
add_packages("pcl",{configs = {vtk = true}})

附加信息和错误日志

.xmake\cache\packages\2406\p\pcl\1.14.0\source\io\include\pcl\io\ply\ply_parser.h(101,31): error C2039: "function": 不是 "std" 的成员 [C:\Users*\A
ppData\Local.xmake\cache\packages\2406\p\pcl\1.14.0\source\build_f426b0bb\io\pcl_io_ply.vcxproj]
(编译源文件“../../io/src/ply/ply_parser.cpp”)
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\sstream(19,1):
参见“std”的声明

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: pcl compilation problem

Xmake version

xmake v2.9.2+master.872ddbd0c

Operating system version and architecture

win10

Describe the problem

When installing pcl with the default settings, it is normal. When vtk=true is added, a compilation error will occur.

Expected results

successful link

Project configuration

add_rules("mode.debug", "mode.release")
add_requires("pcl",{configs = {vtk = true}})
add_requires("boost","vtk")
set_languages("c++20")
target("hello")
set_kind("binary")
add_files("src/*.cpp")
add_packages("boost","vtk")
add_packages("pcl",{configs = {vtk = true}})

Additional information and error logs

.xmake\cache\packages\2406\p\pcl\1.14.0\source\io\include\pcl\io\ply\ply_parser.h(101,31): error C2039: "function": is not "std" Members[C:\Users*\A
ppData\Local.xmake\cache\packages\2406\p\pcl\1.14.0\source\build_f426b0bb\io\pcl_io_ply.vcxproj]
(Compile source file "../../io/src/ply/ply_parser.cpp")
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\sstream(19,1):
See the declaration of "std"

@star-hengxing
Copy link
Contributor

上游问题,需要做一个 patch
PointCloudLibrary/pcl#5962

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upstream problem, need to make a patch
PointCloudLibrary/pcl#5962

@star-hengxing star-hengxing linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants