gpt4 book ai didi

ubuntu - Libigl 示例 102 测试错误

转载 作者:行者123 更新时间:2023-12-04 19:12:52 26 4
gpt4 key购买 nike

我尝试在 Ubuntu 16.4 上使用 libigl,但在构建示例 102 时遇到了一些错误。

首先,我将 Eigen 安装在/usr/local/include/Eigen/中。

然后,我按照以下命令下载了 libigl 代码:
git clone --recursive https://github.com/libigl/libigl.git
接下来,我尝试构建示例 102。根据这个建议。
The examples can also be built independently using the CMakeLists.txt inside each example folder.
所以下载源代码后,我直接构建示例 102,而不是通过位于/libigl/tutorial/的相应 CMakeLists.txt 构建整个教程。

我喜欢这样:
(1) cd 到文件夹:..../libigl/tutorial/102_DrawMesh

(2) mkdir 构建

(3) 光盘构建

(4) cmake ../

在 cmake ../之后,我收到以下错误,似乎找不到位于 ..../libigl/tutorial/102_DrawMesh 中的 CMakeLists.txt 中指定的所需链接库。

以下是错误:

-- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.5)

should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done CMake Warning (dev) at CMakeLists.txt:4 (add_executable): Policy CMP0028 is not set: Double colon in target name means ALIAS or IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Target "102_DrawMesh_bin" links to target "igl::core" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:4 (add_executable): Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Target "102_DrawMesh_bin" links to target "igl::opengl" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:4 (add_executable): Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Target "102_DrawMesh_bin" links to target "igl::opengl_glfw" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /home/chayfung/Workspace/Mesh/libigl/tutorial/102_DrawMesh/build


Can someone give me some advice?



谢谢。

最佳答案

不知道你有没有整理出来。但在 cmake 之后,它们可以独立构建。与其他一切,构建/make程序可以独立完成。

请按照说明执行常规步骤。

cd libigl/tutorial
mkdir build
cd build
cmake ../

您可以修改 CMakeLists.txttutorial只创建您想要的目录,或使用 ccmake ../临时做某事。

关于ubuntu - Libigl 示例 102 测试错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49498231/

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