libcxsparse专题

vcpkg安装g2o,提示找不到cs.h,debug模式运行提示找不到libcxsparse.dll

1 找不到cs.h 在VS中双击错误提示,定位到csparse_extension.h文件,将 #include<cs.h> 修改为 // #include<cs.h>#include <suitesparse/cs.h> 即可正常编译 2 debug模式找不到libcxsparse.dll 我这边直接使用RelWithDebug模式,使用release版本的动态库,即可正常运