gpt4 book ai didi

PCL not finding QHull includes(PCL未找到QHull包含)

转载 作者:bug小助手 更新时间:2023-10-22 16:38:50 34 4
gpt4 key购买 nike



I am using PCL and noticed that when I include pcl/surface/qhull.h there is an error while building:

我正在使用PCL,并注意到当我包含PCL/surface/qhull.h时,在构建时会出现错误:


 fatal error C1083: Cannot open include file: 'libqhull_r/libqhull_r.h': No such file or directory

The content of qhull.h is

qhull.h的内容为


#include <pcl/pcl_config.h>
#ifdef HAVE_QHULL

#if defined __GNUC__
# pragma GCC system_header
#endif

extern "C"
{
#include "libqhull_r/libqhull_r.h"
#include "libqhull_r/mem_r.h"
#include "libqhull_r/qset_r.h"
#include "libqhull_r/geom_r.h"
#include "libqhull_r/merge_r.h"
#include "libqhull_r/poly_r.h"
#include "libqhull_r/io_r.h"
#include "libqhull_r/stat_r.h"
}

#endif

So I don't get if HAVE_QHULL why can't it find the includes?
How can I solve this?

所以我不明白HAVE_QHULL为什么找不到includes?我该如何解决这个问题?


更多回答

That depends on how you compile your project, which compiler you use, whether you use CMake or not, how you installed QHull, ...

这取决于你如何编译你的项目,你使用哪个编译器,你是否使用CMake,你如何安装QHull。。。

优秀答案推荐

In the end I had to reverse Engineer what PCL expects at CMake level from QHull by reading the dedicated CMake finding scripts. The problem is that the building environment I use is not doing this automatically such that I had to set the expected variables by myself.

最后,我不得不通过阅读专门的CMake查找脚本来反向工程PCL对QHull在CMake级别的期望。问题是,我使用的建筑环境并没有自动做到这一点,因此我不得不自己设置预期的变量。


更多回答

It's good to hear that you found the cause of your problem. You could make your answer more helpful for future readers by explaining what you found in your reverse engineering and what directories you needed to add to your compiler's include path.

很高兴听到你找到了问题的原因。您可以通过解释您在逆向工程中发现的内容以及需要添加到编译器包含路径中的目录,使您的答案对未来的读者更有帮助。

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com