Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图用 cmake 编译 FLANN,但唯一的结果是一个巨大的头痛。
所以我在这里通过 PCL 存储库和突触找到了这个解决方案。安装似乎很顺利,但现在我不知道如何使用已安装的包。
引用 FLANN 的文档:
必须使用的编译命令示例如下所示: 库主目录g++ flann_example.cpp -I $FLANN_ROOT/include -o flann_example_cpp在哪里。$FLANN ROOT
g++ flann_example.cpp -I $FLANN_ROOT/include -o flann_example_cpp
$FLANN ROOT
但我不清楚在哪里$FLANN_ROOT。
$FLANN_ROOT
这$FLANN_ROOT是安装库的路径。当您手动构建和安装时(尤其是安装到非标准位置时),这主要是相关的。
当由打包系统(Synaptic - 我猜是 Ubuntu?)安装时,库头文件很可能安装在'/usr/include'or中'/usr/local/include'。通常您不必使用-Ithen ,因为默认情况下会检查这些路径。
'/usr/include'
'/usr/local/include'
-I