我是 CMake 的新手。add_definitions我对setCMake 文件感到非常困惑。
例如
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)和set(D_GLIBCXX_USE_CXX11_ABI,"0"),有什么区别吗?我看到了不同的结果,但我无法理解。
第二个问题:D_GLIBCXX_USE_CXX11_ABI这个有什么作用?
任何帮助表示赞赏。
多谢!
我一直在尝试从一篇使用 Kinect Fusion 库的论文中重现一个框架。
当我运行测试脚本时,出现错误:
(darnn) weizhang@long:~/DA-RNN$ sudo ./experiments/scripts/test_kinect_fusion.sh 0
+ set -e
+ export PYTHONUNBUFFERED=True
+ PYTHONUNBUFFERED=True
+ export CUDA_VISIBLE_DEVICES=0
+ CUDA_VISIBLE_DEVICES=0
++ date +%Y-%m-%d_%H-%M-%S
+ LOG=experiments/logs/test_kinect_fusion.txt.2018-06-17_12-44-13
+ exec
++ tee -a experiments/logs/test_kinect_fusion.txt.2018-06-17_12-44-13
+ echo Logging output to experiments/logs/test_kinect_fusion.txt.2018-06-17_12-44-13
Logging output to experiments/logs/test_kinect_fusion.txt.2018-06-17_12-44-13
+ ./tools/test_kinect_fusion.py --gpu 0 --imdb rgbd_scene_trainval --cfg experiments/cfgs/rgbd_scene.yml --rig data/RGBDScene/camera.json
Traceback (most recent call last):
File "./tools/test_kinect_fusion.py", line 15, in <module>
from kinect_fusion import kfusion
ImportError: libkfusion.so: cannot open shared object file: No such file or …Run Code Online (Sandbox Code Playgroud)