简体   繁体   English

在没有openGL的情况下使用Qt

[英]Using Qt without openGL

I installed Qt on Ubuntu and when I try to comiple a project it reports error: cannot find -lGL. 我在Ubuntu上安装了Qt,当我尝试使一个项目变复杂时,它报告错误:找不到-lGL。 But I am having problem with installing openGL library so I wanna know if it is possible to use Qt without openGL, to somehow exclude that library from linking... 但是我在安装openGL库时遇到问题,所以我想知道是否可以在不使用openGL的情况下使用Qt,从而以某种方式从链接中排除该库...

installed Qt on Ubuntu --> How..? 在Ubuntu上安装了Qt- >怎么..? Which Version? 哪个版本? Did you configure it? 您配置好了吗? You can configure it while installing, and if you do not want OpenGL you can just give option 您可以在安装时对其进行配置,如果您不希望使用OpenGL,则可以选择

-no-opengl -no的OpenGL

when I try to comiple a project it reports error: cannot find -lGL --> But if your project needs OpenGL, what is the point in having " No OpenGL "? 当我尝试使一个项目复杂时,它报告错误:找不到-lGL- >但是,如果您的项目需要OpenGL,那么拥有“ No OpenGL ”的意义何在? you should rather install OGL development libraries(see datenwolf's comment) so that you can work on the project. 您应该安装OGL开发库(请参见datenwolf的注释),以便您可以处理该项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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