编译open3d时出现错误//lib/x86_64-linux-gnu/libdl.so.2: 无法添加符号: DSO missing from command line

在Ubuntu18.04下按http://www.open3d.org/docs/compilation.html编译open3d出现如下错误

//lib/x86_64-linux-gnu/libdl.so.2: 无法添加符号: DSO missing from command line
/usr/bin/ld: /usr/local/lib/libglfw3.a(vulkan.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'

需要在编译时将BUILD_GLFW设置为ON

sudo cmake -DBUILD_GLFW=ON -DPYTHON_EXECUTABLE=`which python` ..

注:不加-DPYTHON_EXECUTABLE=`which python`可能会出现no module named open3d的错误

你可能感兴趣的:(Open3D)