HKUST-Aerial-Robotics / D2SLAM

$D^2$SLAM: Decentralized and Distributed Collaborative Visual-inertial SLAM System for Aerial Swarm
293 stars 34 forks source link

所依赖库的版本问题(dependency library) #3

Closed myboyhood closed 1 year ago

myboyhood commented 1 year ago

您好!您的工作让我耳目一新,感谢您在该项目上投入的时间和精力! 我最近尝试在我的ubuntu18系统上成功运行,但遇到了一些编译上的问题,由于编译过程中涉及到的库较多所以相互之间依赖程度也较高 在我的本地编译过程中一直存在各包版本无法匹配的错误 我的电脑CUDA为11.6版本 所以想请教您一下,您的这些依赖是什么版本的呢?

(以上列出的版本为我本地安装的版本)

yinloonga commented 1 year ago

The Dockerfile provide more information.

myboyhood commented 1 year ago

when I try to run the code at JetsonNX, I established onnxRuntime with the mothod of what dockerfile.jeston says such as git clone onnxruntime and run ./build then make install, at the same time I change CMakeLists : I set ONNXRUNTIME_LIB_DIR and ONNXRUNTIME_INC_DIR to be "/usr/local/lib" and "/usr/local/include" but when I catkin build the project, there are these errors. " Errors << d2frontend:make /home/zyh/ws/d2slam_ws/logs/d2frontend/build.make.015.log
/usr/bin/ld: skipping incompatible /usr/local/lib/libonnxruntime.so when searching for -lonnxruntime /usr/bin/ld: skipping incompatible /usr/local/lib/libonnxruntime.so when searching for -lonnxruntime /usr/bin/ld: cannot find -lonnxruntime collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/loop_cnn.dir/build.make:169: /home/zyh/ws/d2slam_ws/devel/.private/d2frontend/lib/libloop_cnn.so] Error 1 make[1]: [CMakeFiles/Makefile2:1431: CMakeFiles/loop_cnn.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 " why onnxruntime will be incompatible in the docker's way ?

xuhao1 commented 1 year ago

@myboyhood Please refer to out docker for compling. And we strongly recommend to use docker even for onboard real-world experiment.

myboyhood commented 1 year ago

@myboyhood Please refer to out docker for compling. And we strongly recommend to use docker even for onboard real-world experiment. we just execute the command in dockerfile.jeston line by line, but still have problem as what says as above, I think this way should be not different from the way by using dockerfile.jeston directly?