g2o icon indicating copy to clipboard operation
g2o copied to clipboard

Problem related to freeglut library while setting G2O_USE_OPENGL off in CMAKE

Open Smithangshu opened this issue 10 months ago • 1 comments

Hi Rainer,

Thank you for your effort to develop this great library. I am using it since long time. I last build it with CMAKE and VC on the end of 2021 then, I did not have any issue. But in current version I am facing an issue like when I am setting the flag G2O_USE_OPENGL to off and build it. Then everything goes smoothly but when I am using it in my project, I am seeing an error that is,

LNK1104 cannot open file 'g2o_ext_freeglut_minimal.lib'

But I think we should not need this library when we are not using OpenGL. But it's happening. And in previous version, which was working, did not have any flag to turn off OpenGL usage. So, it was building "freeglut_minimal" project, I see this project is listed within the g2o solution in Visual Studio.

So, cannot we use g2o without using OpenGL?

Smithangshu avatar Apr 02 '24 10:04 Smithangshu

How are you setting up your build? I could not spot freeglut_minimal being specified in the exported cmake targets when building with G2O_USE_OPENGL = OFF.

RainerKuemmerle avatar Apr 10 '24 22:04 RainerKuemmerle