社区
Qt
帖子详情
UBANTU上编译QT程序报缺少GL库
wxf54318
2015-09-21 08:46:53
按照网上说的$sudo apt-get install libgl1-mesa-dev
又报很多依赖的gl库没有安装
...全文
299
8
打赏
收藏
UBANTU上编译QT程序报缺少GL库
按照网上说的$sudo apt-get install libgl1-mesa-dev 又报很多依赖的gl库没有安装
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qq_16156331
2015-12-13
打赏
举报
回复
你的问题解决了吗?我也遇到同样的问题 ,Ubuntu QT 未找到lGL,但是在终端已经安装过了libgl4-dev ,并且在终端下编译QT的程序就正常,能显示出界面,但是在QT里运行就出错未找到lGL,怎么回事啊
青春不谢
2015-09-28
打赏
举报
回复
应该是这个库对其他库文件的依赖性导致没有安装成功,你可以先尝试一下把报错的Depend: 后面的库先安装一下。如果还不行的话,就sudo apt-get -f install修复一下,然后再sudo apt-get install+你想安装的包
彩阳
2015-09-28
打赏
举报
回复
虚拟机下吗?那可能要安装增强组件。
hhshiyi
2015-09-23
打赏
举报
回复
安装一个GL库
liuhuan_10110310
2015-09-23
打赏
举报
回复
按照提示,先安装一下mesa-common-dev吧。 sudo apt-get install mesa-common-dev
wxf54318
2015-09-23
打赏
举报
回复
有达人遇到过这个问题吗
wxf54318
2015-09-21
打赏
举报
回复
jiqiang01234
2015-09-21
打赏
举报
回复
没有就继续安装
已经交叉
编译
好的arm64版本的
qt
5.12.1以及
qt
m
qt
t的完整产物
Building on: linux-g++ (x86_64, CPU features: mmx sse sse2) Building for: linux-aarch64-gnu-g++ (arm64, CPU features: neon) Target compiler: gcc 6.3.1 Configuration: cross_compile use_gold_linker compile_examples enable_new_dtags largefile neon precompile_header shared rpath release c++11 c++14 concurrent dbus reduce_exports stl Build options: Mode ................................... release Optimize release build for size ........ no Building shared libraries .............. yes Using C standard ....................... C11 Using C++ standard ..................... C++14 Using ccache ........................... no Using gold linker ...................... yes Using new DTAGS ........................ yes Using precompiled headers .............. yes Using LTCG ............................. no Target compiler supports: NEON ................................. yes Build parts ............................ libs
Qt
modules and options:
Qt
Concurrent .......................... yes
Qt
D-Bus ............................... yes
Qt
D-Bus directly linked to libdbus .... no
Qt
Gui ................................. yes
Qt
Network ............................. yes
Qt
Sql ................................. yes
Qt
Testlib ............................. yes
Qt
Widgets ............................. yes
Qt
Xml ................................. yes Support enabled for: Using pkg-config ....................... yes udev ................................... no Using system zlib ...................... yes
Qt
Core: DoubleConversion ....................... yes Using system DoubleConversion ........ no
GL
ib ................................... no iconv .................................. yes ICU .................................... no Tracing backend ........................ Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no Using system PCRE2 ..................... no
Qt
Network: getifaddrs() ........................... yes IPv6 ifname ............................ yes libproxy ............................... no Linux AF_NETLINK ....................... yes OpenSSL ................................ yes
Qt
directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ no DTLS ................................... yes SCTP ................................... no Use system proxies ..................... yes
Qt
Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ no HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. no Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... yes PNG .................................. yes Using system libpng ................ no E
GL
.................................... no OpenVG ................................. no Open
GL
: Desktop Open
GL
....................... no Open
GL
ES 2.0 ........................ no Open
GL
ES 3.0 ........................ no Open
GL
ES 3.1 ........................ no Open
GL
ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. yes libinput ............................... no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. no X11 specific: XLib ................................. no E
GL
on X11 ........................... no QPA backends: DirectFB ............................... no E
GL
FS .................................. no LinuxFB ................................ yes VNC .................................... yes Mir client ............................. no
Qt
Sql: SQL item models ........................ yes
Qt
Widgets: GTK+ ................................... no Styles ................................. Fusion Windows
Qt
PrintSupport: CUPS ................................... no
Qt
Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. no OCI (Oracle) ........................... no ODBC ................................... no PostgreSQL ............................. no SQLite2 ................................ no SQLite ................................. yes Using system provided SQLite ......... no TDS (Sybase) ........................... no
Qt
Testlib: Tester for item models ................. yes
Qt
SerialBus: Socket CAN ............................. yes Socket CAN FD .......................... yes
Qt
QML: QML network support .................... yes QML debugging and profiling support .... yes QML sequence object .................... yes QML list model ......................... yes QML XML http request ................... yes QML Locale ............................. yes QML delegate model ..................... yes
Qt
Quick: Direct3D 12 ............................ no AnimatedImage item ..................... yes Canvas item ............................ yes Support for
Qt
Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes
Qt
Scxml: ECMAScript data model for
Qt
Scxml ...... yes
Qt
Gamepad: SDL2 ................................... no
Qt
3D: Assimp ................................. yes System Assimp .......................... no Output
Qt
3D Job traces ................. no Output
Qt
3D
GL
traces .................. no Use SSE2 instructions .................. no Use AVX2 instructions .................. no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes
Qt
3D Renderers: Open
GL
Renderer ........................ yes
Qt
3D GeometryLoaders: Autodesk FBX ........................... no
Qt
Wayland Client ........................ no
Qt
Wayland Compositor .................... no
Qt
Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API (desktop & UWP) .... no
Qt
Sensors: sensorfw ............................... no
Qt
Quick Controls 2: Styles ................................. Default Fusion Imagine Material Universal
Qt
Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes
Qt
Positioning: Gypsy GPS Daemon ....................... no WinRT Geolocation API .................. no
Qt
Location:
Qt
.labs.location experimental QML plugin . yes Geoservice plugins: OpenStreetMap ........................ yes HERE ................................. yes Esri ................................. yes Mapbox ............................... yes Mapbox
GL
............................. no Itemsoverlay ......................... yes
Qt
XmlPatterns: XML schema support ..................... yes
Qt
Multimedia: ALSA ................................... no GStreamer 1.0 .......................... no GStreamer 0.10 ......................... no Video for Linux ........................ yes OpenAL ................................. no PulseAudio ............................. no Resource Policy (libresource
qt
5) ....... no Windows Audio Services ................. no DirectShow ............................. no Windows Media Foundation ............... no
Qt
Tools: QDoc ................................... no
Qt
WebEngine: Embedded build ......................... yes Pepper Plugins ......................... no Printing and PDF ....................... no Proprietary Codecs ..................... no Spellchecker ........................... yes Native Spellchecker .................... no WebRTC ................................. no Use System Ninja ....................... no Geolocation ............................ yes WebChannel support ..................... yes Use v8 snapshot ........................ yes Kerberos Authentication ................ no Building v8 snapshot supported ......... yes Use ALSA ............................... no Use PulseAudio ......................... no Optional system libraries used: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no
gl
ib ................................. no zlib ................................. yes minizip .............................. no libevent ............................. no jsoncpp .............................. no protobuf ............................. no libxml2 and libxslt .................. no lcms2 ................................ no png .................................. no JPEG ................................. no harfbuzz ............................. no freetype ............................. no x11 .................................. no Required system libraries: fontconfig ........................... no dbus ................................. no nss .................................. no khr .................................. no
gl
ibc ................................ yes Required system libraries for qpa-xcb: libdrm ............................... no xcomposite ........................... no xcursor .............................. no xi ................................... no xrandr ............................... no xtst ................................. no Note: Also available for Linux: linux-clang linux-icc
Ubuntu
编译
Qt
6.0.0
ubuntu
编译
qt
6.0.0
Ubuntu ARMv8
编译
Qt
源码以及
Qt
Creator
最近需要在NVIDIA小盒子上面跑一个
程序
,一开始想着在Ubuntu x64下交叉
编译
一版,后来发现libqxcb.so这个
库
在configure时就会一直
报
错,多方查找怀疑可能是由于硬件不支持在x64环境下
编译
AMR架构的xcb
库
。所以最后在ARM下直接
编译
Qt
源码了,在ARM下是可以
编译
成功libqxcb.so的,由于没有ARM下的
Qt
Creator所以需要一起
编译
。
Ubuntu下
QT
静态
编译
教程
Ubuntu下
QT
静态
编译
教程
A40i使用笔记:Ubuntu
编译
qt
程序
提示
GL
/
gl
.h: (或
GL
ES2/
gl
2.h: )No such file or directory问题,
编译
QCustomPlot这个控件影响
1.原因是少东西,这时虚拟机需要联网更新一下资源即可 显示参照这个帖子https://blog.csdn.net/u010168781/article/details/80896797 2.如果中间提示“E: Package *** has no installation candidate” 错误,那么就插入这个帖子的方法https://blog.csdn.net/baiketeam/art...
Qt
16,224
社区成员
26,592
社区内容
发帖
与我相关
我的任务
Qt
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
复制链接
扫一扫
分享
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章