安装scenelib出错

装scenelib时,执行./configure时出现VW location is missing

zjy@zjy-OptiPlex-3010:~/monoslam/scenelib/SceneLib$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux
checking host system type... x86_64-unknown-linux
checking for style of include used by make... GNU
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether to enable optimisation... yes
checking for 64-bit extensions... yes
checking compiler supports -march=i686... no
checking compiler supports -march=i586... no
checking compiler supports -march=i486... no
checking compiler supports -march=i386... no
checking whether to enable debugging... yes
checking whether to enable simd instructions... yes
checking for MMX, SSE... yes
checking for MMX, MMXEXT... no
checking for SSE2... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for VW location... Missing
configure: error: VW is missing!


VW is missing

运行结果如上

尝试重新安装VW34库,不确定是否由这个库引起还是缺依赖项

成功安装scenelib

"VW location is missing" 是在安装 scenelib 时出现的一种错误。这通常是因为 scenelib 依赖 Vowpal Wabbit (VW) 来进行训练,而 VW 尚未安装或者路径未被正确配置。

解决这个问题的方法有以下几种:

安装 Vowpal Wabbit (VW)。这可以通过下载源代码并编译安装来完成。

检查 Vowpal Wabbit (VW) 的安装路径是否正确。您可以在运行 configure 文件之前,手动设置 VW 路径。例如:./configure --with-vw=/usr/local/vw。

如果你还是不能解决问题,建议查看scenelib的安装文档或者在scenelib 的开发者社区中寻找解决方案。

总之,在安装 scenelib时,需要确保 Vowpal Wabbit (VW) 已经安装并且路径已经正确配置。如果您在执行 ./configure 时出现 "VW location is missing" 错误,请检查 VW 是否已经安装并且路径是否正确,或者手动设置 VW 路径。如果问题仍然存在,建议查看 scenelib 的安装文档或在 scenelib 的开发者社区中寻找解决方案。

根据您贴图的错误信息来看的话,就是提示vm没有找到,所以:
第一步就是检查是否有安装该依赖,如果已安装还是报这个错误。
第二步,如果还是抱着个错误,则检查是否配置正确了vm库的路径
第三步,还不行的话,看下是不是还缺少其它相关依赖引起的
第四步,还不行的话,重装下,重新编译看看。

这个错误信息表明在安装 scenelib 时,缺少 VW(Visual Word)库。VW 是一个计算机视觉库,用于处理图像和视频数据。scenelib 依赖于 VW 库来运行。

要解决这个问题,需要安装 VW 库。可以在这里下载最新版本的 VW:https://github.com/VowpalWabbit/vowpal_wabbit/wiki

下载之后,进入 VW 目录并运行以下命令来安装:

./configure
make
sudo make install

然后再回到 scenelib 目录再次运行 configure 命令,就能正常编译了。