在 Opengaze 安装中对 vxl 使用 make 时出错
Error while using make on vxl in Opengaze installation
我正在尝试使用 make 构建 vxl(http://sourceforge.net/p/vxl/wiki/Git-Download-VXL/),但是当进程达到 99% 时出现错误:
[ 99%] Built target breg3d
[ 99%] Built target breg3d_pro
[ 99%] Built target boxm2_class
[ 99%] Built target boxm2_volm
Linking CXX shared library ../../../../../lib/libboxm2_vecf.so
/usr/bin/ld: cannot find -lboxm2_ocl
/usr/bin/ld: cannot find -lboxm2_ocl_algo
/usr/bin/ld: cannot find -lbocl
collect2: ld returned 1 exit status
make[2]: *** [lib/libboxm2_vecf.so] Error 1
make[1]: *** [contrib/brl/bseg/boxm2/vecf/CMakeFiles/boxm2_vecf.dir/all] Error 2
make: *** [all] Error 2
我已经在 google 上进行了搜索,但没有找到任何关于该主题的内容。
我怎么解决这个问题?
我正在使用 Ubuntu 12.04.
这意味着它找不到 OpenCL 的库和 headers。
如果您确定拥有 OpenCL headers 和库,例如/usr/include/CL,在 cmake 期间使用标志指定它。
-DOPENCL_INCLUDE_PATH=/path/to/CL -DOPENCL_LIBRARIES=/dir/of/libOpenCL.so -DOPENCL_LIBRARIES=/path/contains/libOpenCL.so
然后尝试重新编译。
如果您没有 OpenCL headers、运行 以下命令 (Ubuntu):
sudo apt-get install opencl-headers
如果您使用其他平台,我相信也有类似的软件包。
我正在尝试使用 make 构建 vxl(http://sourceforge.net/p/vxl/wiki/Git-Download-VXL/),但是当进程达到 99% 时出现错误:
[ 99%] Built target breg3d
[ 99%] Built target breg3d_pro
[ 99%] Built target boxm2_class
[ 99%] Built target boxm2_volm
Linking CXX shared library ../../../../../lib/libboxm2_vecf.so
/usr/bin/ld: cannot find -lboxm2_ocl
/usr/bin/ld: cannot find -lboxm2_ocl_algo
/usr/bin/ld: cannot find -lbocl
collect2: ld returned 1 exit status
make[2]: *** [lib/libboxm2_vecf.so] Error 1
make[1]: *** [contrib/brl/bseg/boxm2/vecf/CMakeFiles/boxm2_vecf.dir/all] Error 2
make: *** [all] Error 2
我已经在 google 上进行了搜索,但没有找到任何关于该主题的内容。 我怎么解决这个问题? 我正在使用 Ubuntu 12.04.
这意味着它找不到 OpenCL 的库和 headers。
如果您确定拥有 OpenCL headers 和库,例如/usr/include/CL,在 cmake 期间使用标志指定它。
-DOPENCL_INCLUDE_PATH=/path/to/CL -DOPENCL_LIBRARIES=/dir/of/libOpenCL.so -DOPENCL_LIBRARIES=/path/contains/libOpenCL.so
然后尝试重新编译。 如果您没有 OpenCL headers、运行 以下命令 (Ubuntu):
sudo apt-get install opencl-headers
如果您使用其他平台,我相信也有类似的软件包。