Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
myboyhood opened this issue Apr 26, 2023 · 4 comments
Closed

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

myboyhood opened this issue Apr 26, 2023 · 4 comments

Comments

@myboyhood
Copy link

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

  • opencv -v 3.4.10
  • ceres -v 1.14.0
  • faiss -v 1.5.0
  • glog
  • libtorch -v cuda11.6
  • mpfr -v 4.0.1
  • onnxruntime -v 1.14.1
  • openBLAS -v 0.3.23
  • SuiteSparse -v 5.11.0
  • lapack -v 3.9.1

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

@yinloonga
Copy link

The Dockerfile provide more information.

@myboyhood
Copy link
Author

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
Copy link
Collaborator

xuhao1 commented May 8, 2023

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

@myboyhood
Copy link
Author

@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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants