简体   繁体   中英

Failed to compile wxWidget 3.0.5, OpenGL libraries not available

I am trying to compile wxWidget on Ubuntu 20.04, but I have run into some errors.

I have installed gtk3 with the following command which was suggested in the documentation: sudo apt install libgtk-3-dev

Running ../configure --with-gtk=3 --with-opengl gives an error:

checking for OpenGL headers... found in /usr/include
checking for GL/gl.h... yes
checking for GL/glu.h... no
configure: error: OpenGL libraries not available

Is their anything I am missing?

I finally figured it out, the problem was that I didn't have OpenGL development library installed thanks to this https://askubuntu.com/questions/96087/how-to-install-opengl-glut-libraries .

To fix this, install the following libraries using the command: sudo apt-get install freeglut3-dev

For more information about what you're installing here it is OpenGL Development Toolkit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM