AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[opengl](ubuntu)

Martin Hope
Diegro
Asked: 2022-03-08 12:39:47 +0800 CST

OPENGL (glfw) - 找不到 -lGLFW

  • 0

我尝试为 Ubuntu (Code::Blocks) 设置 GLFW,但我找不到问题所在。所以我glfw通过以下方式安装了软件包:

sudo apt-get install libglfw3-dev

然后,我将 GLFW 添加到我的 Code::Blocks 项目的构建属性中。

为了测试它,我写了这个小代码并尝试了它:

#include <iostream>
#include <GLFW/glfw3.h>

using namespace std;

int main(){
    if (!glfwInit())
{
    // Handle initialization failure
}
    return 0;
}

我还有这个:

||=== Build: Debug in test (compiler: GNU GCC Compiler) ===|
ld||cannot find -lGLFW|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

有人能帮我吗?

opengl
  • 1 个回答
  • 214 Views
Martin Hope
Anik Nath
Asked: 2021-08-07 07:36:50 +0800 CST

Minecraft 在 Windows 上运行流畅,但在 Ubuntu 20.04 中崩溃

  • 0

嗨,根据标题它崩溃了,错误是

glfw error 65543: Failed to create context: GLXBadFBConfig.
Please update your drivers. (see aka.ms/minecraft for more instructions)

如果需要更多信息,请评论我,我会提供。

我的内置 VGA 控制器:

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
        Flags: bus master, fast devsel, latency 0, IRQ 28
        Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

而且我没有显卡。

opengl
  • 1 个回答
  • 317 Views
Martin Hope
Porcupine Andrew
Asked: 2020-12-11 08:24:14 +0800 CST

Ubuntu 20.04 没有为 Intel Iris Xe Graphics 加载驱动程序

  • 13

我为华硕 ZenBook UX393EA 设置了双启动 Ubuntu 20.04,它具有集成显卡“英特尔(R) Iris(R) Xe Graphics”。但是我发现使用了 llvmpipe(LLVM 11.0.0,256 位),但没有使用集成显卡。

我相信其他一些问题是由于这个原因,例如:

  • xrandr未能获得输出默认值的 gamma 大小
  • 屏幕分辨率只能设置为一个值
  • 没有屏幕亮度控制栏

以下是一些信息:

  • linux内核
➜  ~ uname -r 
5.4.0-56-generic
  • lspci
➜  ~ lspci -nnk | grep -iA2 VGA   
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9a49] (rev 01)
    DeviceName: VGA
    Subsystem: ASUSTeK Computer Inc. Device [1043:13e2]
    Kernel modules: i915
  • 印西

(如您所见,未加载英特尔显卡驱动程序)

➜  ~ inxi -G  
Graphics:  Device-1: Intel driver: N/A 
           Device-2: IMC Networks USB2.0 HD IR UVC WebCam type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.8 driver: fbdev unloaded: modesetting resolution: 3300x2200~90Hz 
           OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 21.0.0-devel (git-3f0da80 2020-12-10 focal-oibaf-ppa)
  • glxinfo
➜  ~ glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 11.0.0, 256 bits) (0xffffffff)
    Version: 21.0.0
    Accelerated: no
    Video memory: 15694MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 11.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.0.0-devel (git-3f0da80 2020-12-10 focal-oibaf-ppa)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 21.0.0-devel (git-3f0da80 2020-12-10 focal-oibaf-ppa)
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.0.0-devel (git-3f0da80 2020-12-10 focal-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
  • lshw
➜  ~ sudo lshw -c video
  *-display UNCLAIMED       
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: iomemory:600-5ff iomemory:400-3ff memory:603e000000-603effffff memory:4000000000-400fffffff ioport:3000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
  • dmesg
➜  ~ dmesg | grep drm 
[    1.420124] systemd[1]: Starting Load Kernel Module drm...
[    1.428692] systemd[1]: [email protected]: Succeeded.
[    1.428949] systemd[1]: Finished Load Kernel Module drm.
[    1.667732] [drm] Your graphics device 9a49 is not properly supported by the driver in this

最后一个日志是:

[drm] Your graphics device 9a49 is not properly supported by the driver in this
kernel version. To force driver probe anyway, use i915.force_probe=9a49
module parameter or CONFIG_DRM_I915_FORCE_PROBE=9a49 configuration option,
or (recommended) check for kernel updates.

还有另一个关于 i915 的日志,我不确定它是否相关:

snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec

我猜根本原因是当前驱动i915不支持显卡。我不知道该怎么做,或者这个问题是否还有其他原因。这是我尝试过的:

  • 将 /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT 更改为“”,就像Ubuntu 20.04 Intel HD 615 中的方式:没有亮度控制或没有启动/卡在启动屏幕上
  • 将 xorg 配置为首选 Intel 或禁用 IGD 的模式切换,就像在Ubuntu 18.04 中无法使用 Intel Integrated Graphics的方式一样
  • 删除 xserver-xorg-video-fbdev,如https://forums.linuxmint.com/viewtopic.php?t=287323中的方式,这只会使启动过程卡在启动屏幕中。

它们都不适合我。如果有人可以提供任何帮助或想法,我将不胜感激。

drivers graphics intel-graphics opengl 20.04
  • 3 个回答
  • 45809 Views
Martin Hope
rtnF14
Asked: 2020-12-05 19:28:44 +0800 CST

升级 OpenGL(英特尔赛扬 1037U)

  • 0

这是我当前计算机的规格:

  • 英特尔赛扬 CPU 1037U
  • 英特尔核芯显卡 2500 (IVB GT1)
  • OpenGL ES 3.0
  • 台面 20.0.8
  • Ubuntu 20.04 LTS 64 位

我想安装需要OpenGL 3.3的 OBS

据此,英特尔赛扬 1037U 是英特尔赛扬 1000 系列的一部分。而据此, Intel Celeron 1000 系列最高可以支持 OpenGL 4。

现在我该如何升级我的 OpenGL?

intel-graphics opengl
  • 1 个回答
  • 178 Views
Martin Hope
Sean Fitzpatrick
Asked: 2020-11-24 11:32:19 +0800 CST

询问软件包升级(在本例中为 freeglut)的最佳位置是什么?[复制]

  • 1
这个问题在这里已经有了答案:
为什么 Ubuntu 存储库没有最新版本的软件? (6 个回答)
1 年前关闭。

我不像以前在 Ubuntu 论坛和 Launchpad 之类的地方那么活跃,所以我不确定引导功能请求的最佳位置在哪里。

目前 Ubuntu 20.10 附带了 freeglut 2.8,它可以追溯到 2013 年。当前版本是 3.2。奇怪的是,freeglut 2.8 在存储库中被列为 freeglut3,尽管它在技术上仍然是 freeglut2。

查询原因:当您尝试将 3D 图像编译为 PDF 时,Ubuntu 20.10(通过 TeXLive 2020)附带的 Asymptote (2.67) 版本会引发段错误。特别是:以任何加载three库并运行的 Asymptote 示例为例asy -f pdf -noprc example.asy。

你会得到输出,但你也会得到一个分段错误。(在与一位 Asymptote 开发人员进行大量通信后,我了解到它实际上是一个浮点异常,但无论如何......)如果您使用 Asymptote 网站上提供的说明从源代码安装最新的 freeglut3,一切正常.

我不太确定为什么 freeglut 一直保留到 7 年前的版本。

libraries opengl
  • 1 个回答
  • 48 Views
Martin Hope
SomeGuy04
Asked: 2020-10-05 07:05:59 +0800 CST

libGL 错误:MESA-LOADER:无法打开 radeonsi(搜索路径 /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)

  • 2

尝试运行 VirtScreen 并在执行后显示错误

libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)

ubuntu 20.04.1 AMD fx-8800 radeon r8 m350dx

drivers opengl radeon amd-graphics
  • 1 个回答
  • 11023 Views
Martin Hope
Philippe Laurent
Asked: 2020-07-17 11:48:27 +0800 CST

Radeon 3200U 竖条纹

  • 0

我在安装全新的 Ubuntu 20.04 时遇到了一个奇怪的问题。一切正常,除了原生 Linux 游戏。在 Rimworld 上,我在 Stardew Valley (Steam) 中得到了一张条纹图片,充其量所有文本框都显示亚洲语言。我已经尝试了很多东西,oibaf 驱动程序,奇怪的 grub 选项等等......但无济于事。 边缘世界截图

最奇怪的是,我所有使用 WINE 的 Windows 游戏都能完美运行。你有没有遇到过这样的事情?

TIA

此外,我尝试重新安装与 openGL 相关的所有内容,但仍然... Unigine Valley screenshot

我也试过改变记忆......同样的区别。我重新安装了 Windows 10,没有任何问题,因此排除了硬件故障。这真让人生气。

opengl opencl mesa amdgpu 20.04
  • 1 个回答
  • 124 Views
Martin Hope
Ahmet Ulusoy
Asked: 2020-04-25 18:58:40 +0800 CST

965gm GPU 的杂乱性能问题

  • 1

我目前使用的是 Ubuntu 16.04,当我查看系统详细信息时,我的 gpu 被命名为 Intel® 965GM,但如果我安装 Ubuntu 20.04,它被命名为 Intel® 965GM (CL)。系统 ui 和 google chrome 在 16.04 的驱动程序中非常流畅,但在 20.04 的驱动程序中则不然。我尝试将统一桌面安装到 20.04,但 chrome 又不如 16.04 流畅。这两个版本的驱动有什么区别?如果我弄清楚了,我最终可以升级到 20.04。谢谢。

intel-graphics opengl clutter 16.04 20.04
  • 1 个回答
  • 190 Views
Martin Hope
ghedger42
Asked: 2020-02-08 14:10:09 +0800 CST

OpenGL 最近有更新吗?

  • 2

我在 VariCAD 中从事工程工作。它为每个对象提供三个显示选项:“着色”、“透明”和“线框”。

直到最近,这一直非常有效。现在,当我启动程序时,我收到一条错误消息,指出它无法“初始化 OpenGL 扩展”并且它正在恢复为“OpenGL 1.1”。

我联系了他们的技术支持,同时卸载并重新安装了旧版本,认为这是一个 VariCAD 问题。现在我在旧版本的 VariCAD 上看到了相同的行为,并且考虑到这个问题最近才开始发生,我开始怀疑它是否是 Ubuntu 的内脏/内核中的某些东西已经更新并破坏了启动 OpenGL 的能力.

结果是,我们现在没有“透明”功能,以前效果很好。

的输出lspci -k | grep -EA3 'VGA|3D|Display'

    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    Subsystem: Dell 3rd Gen Core processor Graphics Controller
    Kernel driver in use: i915
    Kernel modules: i915

    01:00.0 VGA compatible controller: NVIDIA Corporation GK104GLM [Quadro K3000M] (rev a1)
    Subsystem: Dell GK104GLM [Quadro K3000M]
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

的输出glxinfo | grep OpenGL

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 4.2 (Core Profile) Mesa 19.2.8
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 19.2.8
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 19.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

drivers nvidia opengl 18.04
  • 1 个回答
  • 225 Views
Martin Hope
Faust
Asked: 2020-02-05 19:37:23 +0800 CST

如何在 Ubuntu 18.04 上获取 MuPDF OpenGL 查看器?

  • 7

TLDR

如何mupdf-gl在 Ubuntu 18.04 上安装(最好不要从源代码构建)?


我最近开始使用 MuPDF。我尝试将它安装在带有 Ubuntu 18.04.3 的台式机上。但是,我只能得到它的 X11 版本。我更喜欢用 OpenGL 渲染的那个;那是我一直在笔记本电脑上使用的那个。我更喜欢它,但此时我只想知道我做错了什么,并学会做对:)

我做了什么

我首先使用sudo apt install mupdf. 直截了当。但这不是我所期望的:我立即注意到键绑定不同。

我检查了版本。它是 MuPDF 1.12。最新版本是 1.16。想可能是这样,我去寻找如何安装更新的版本。

我发现这篇关于安装 1.13 版的 UbuntuHandbook 帖子。我清除了我的安装,添加了他们的 PPA,更新并重新安装,这让我得到了 1.14 版。但是,仍然没有运气。当我运行mupdf时,它的行为仍然相同。

在研究我的问题时,我看到了一些对mupdf-gl命令mupdf-x11的引用。所以我在我的文件中挖掘。我发现/usr/bin/mupdf运行/usr/lib/mupdf/mupdf-x11. 但是没有mupdf-gl找到。

在这一点上,我意识到我的问题与版本无关。查看 MuPDF 的发布历史,我看到 OpenGL 查看器是在 1.8 版上推出的。

我还没有尝试从源代码构建库。从我所见,其他人似乎没有通过存储库安装相同的问题。我什至发现有人无意中使用了 OpenGL 查看器并抱怨旧的键绑定不起作用的这个Gentoo 论坛帖子。

如果相关,glxinfo | grep "OpenGL version"在我的终端中运行会产生OpenGL version string: 3.3 (Compatibility Profile) Mesa 19.2.8.

这是我在任何 Stack Exchange 上的第一篇文章,因此对我的格式的任何反馈将不胜感激。

opengl 18.04 mupdf
  • 2 个回答
  • 1381 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve