我尝试在我不是 root 用户的远程机器上编译 FLANN。为此,我在家里编译了 cmake 并设置了一个别名来调用。我还从网上下载了 FLANN 并按照手册中的建议处理编译。
mkdir build
cd build
cmake ..
make
它编译没有错误但是matlab模块和mex编译。即使我将 matlab bin 添加到 $PATH 中,它也会在cmake ..
.
...
CMake Warning at src/matlab/CMakeLists.txt:57 (message):
The 'mex' and 'mexext' programs have been found in different locations.
It's likely that one of them is not part of the MATLAB instalation. Make
sure that the 'bin' directory from the MATLAB instalation is in PATH
...
由于这个问题,当我执行 .matlab mex 文件时没有编译make
。即使我尝试设置一些 cmake 配置,我也无法以任何方式解决这个问题。有什么建议来处理这个编译问题吗?
echo $PATH
/home/y/bin:/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/matlab/bin
which mex
/usr/local/bin/mex
which mexext
/usr/local/matlab/bin/mexext