SpectacularAI / HybVIO

HybVIO visual-inertial odometry and SLAM system
https://arxiv.org/abs/2106.11857
GNU General Public License v3.0
450 stars 92 forks source link

ubuntu 20.4 undefined reference to `glfwInit' #5

Closed 19920716 closed 2 years ago

19920716 commented 2 years ago

image

19920716 commented 2 years ago

HybVIO/build/CMakeFiles/main.dir link.txt add -lglfw,issues close。

oseiskar commented 2 years ago

It is also possible to build without GL visualizations or GL acceleration, see https://github.com/SpectacularAI/HybVIO/issues/8#issuecomment-994765475

19920716 commented 2 years ago

@oseiskar Thank you for telling me!

Michael-Zuo commented 2 years ago

@19920716 Hi! I got the same problem in ubantu 18.04 I added the " -lglfw" in link.txt, and it works ! But when I "cmake" the project again, "-lglfw" will disappear, and the problem reappears.

Do you know how to change the "CmakeLists.txt" to solve this problem? Thanks!

oseiskar commented 2 years ago

The proper fix to the issue is described here https://github.com/SpectacularAI/HybVIO#troubleshooting-disabling-gpu-visualizations-and-acceleration

Michael-Zuo commented 2 years ago

The proper fix to the issue is described here https://github.com/SpectacularAI/HybVIO#troubleshooting-disabling-gpu-visualizations-and-acceleration

Thank you! I notice this troubleshooting, but I was wandering if this change will disable the visualization function of this project.