Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Build error on ubuntu 20.04 #794

Open
Lky0724 opened this issue May 16, 2024 · 1 comment
Open

Build error on ubuntu 20.04 #794

Lky0724 opened this issue May 16, 2024 · 1 comment

Comments

@Lky0724
Copy link

Lky0724 commented May 16, 2024

I am trying to build g2o on ubuntu 20.04 using following command:

mkdir build
cd build
cmake ../
make

But I always encounter following error when I execute 'make' order:

/usr/bin/ld: CMakeFiles/slam2d_g2o.dir/slam2d_viewer.cpp.o: in function g2o::Slam2DViewer::Slam2DViewer(QWidget*, QGLWidget const*)': slam2d_viewer.cpp:(.text+0x26b): undefined reference to QGLViewer::QGLViewer(QWidget*, QGLWidget const*, QFlagsQt::WindowType)'
collect2: error: ld returned 1 exit status

I have successfully installed all the required dependencies listed in README, what else is missing? How can I solve the problem?

@RainerKuemmerle
Copy link
Owner

I successfully tested building in an uptodate Ubuntu 20.04 container running on and64 architecture.

Below is the version of libqglviewer being used

$ apt-cache policy libqglviewer-dev-qt5
libqglviewer-dev-qt5:
  Installed: 2.6.3+dfsg2-6build1
  Candidate: 2.6.3+dfsg2-6build1
  Version table:
 *** 2.6.3+dfsg2-6build1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

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

No branches or pull requests

2 participants