gpt4 book ai didi

Libhand库编译报错找不到-lNOTFOUND

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

我正在尝试在 Ubuntu 14.04 上从 libhand.org 构建一个手部模型库。该库使用 ogre 和 opencv 库。我按照作者提供的说明成功安装了 ogre 和 opencv。 cmake没问题。。。但是在执行命令期间

make -j4

我收到以下错误:

[ 87%] Building CXX object source/CMakeFiles/hand_renderer.dir/hand_pose.cc.o

[ 91%] Building CXX object source/CMakeFiles/hand_renderer.dir/scene_spec.cc.o
Linking CXX static library libhand_renderer.a

[ 91%] Built target hand_renderer
Scanning dependencies of target pose_designer

[ 95%] Building CXX object source/CMakeFiles/pose_designer.dir/pose_designer_main.cc.o

[100%] Building CXX object source/CMakeFiles/pose_designer.dir/pose_designer.cc.o

Linking CXX executable pose_designer

/usr/bin/ld: cannot find -lNOTFOUND

/usr/bin/ld: cannot find -lNOTFOUND

libhand_utils.a(file_dialog.cc.o): In function
`libhand::FileDialog::TkExec(std::string const&)':
file_dialog.cc:(.text+0xead): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

collect2: error: ld returned 1 exit status

make[2]: *** [source/pose_designer] Error 1

make[1]: *** [source/CMakeFiles/pose_designer.dir/all] Error 2
make: *** [all] Error 2

有谁知道为什么会出现这个错误以及可以做什么?

最佳答案

我假设发生此错误是因为在 cmake 运行期间未找到某些必需的库,但未正确检测到该事件(即 cmake 未因错误而中止)。 CMakeError.log 目录中名为 CMakeOutput.logCMakeFiles 的文件中应提供更多详细信息。

此问题的解决方案是安装缺少的库(该名称应该可以从上述文件中获得)或修复构建过程以查找库,如果它已经安装(对于 autotools,这将使用 CFLAGSLDFLAGS 环境变量以指向正确的路径、编译器选项、库路径和库;这也应该与 CMake 一起使用)。

作为另一种解释,cmake 找到了库,但不知何故未能写入正确的 Makefile s。然后解决方案将在 -lNOTFOUND s 中手动将 -l<library name> 替换为 Makefile

关于Libhand库编译报错找不到-lNOTFOUND,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33719899/

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