Mesa升级,请教大神

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
xrr
帖子: 2
注册时间: 2021-06-23 18:59
系统: Ubuntu 16.04.7 LTS
送出感谢: 0
接收感谢: 0

Mesa升级,请教大神

#1

帖子 xrr » 2021-06-23 20:14

本人第一次发帖 请多关照 :Adore

本人新手,使用的是MobaXterm SSH上的Ubuntu16.04

我现在因为python OCC(opencascade)想要离屏渲染,所以升级OpenGL Mesa的版本。之前用
sudo apt-get install build-essential
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt-get dist-upgrade
成功升级了Mesa,但是另一个用户重装了驱动导致Mesa又降为原来的版本

然后现在怎么用上面的代码都没办法升级了,而且重装了驱动以后nvidia-settings和prime-select都报ERROR(原来报不报错不清楚)

求大神赐教,如何解决上面的问题,orz :Cry
头像
astolia
论坛版主
帖子: 5198
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 880 次

Re: Mesa升级,请教大神

#2

帖子 astolia » 2021-06-24 20:48

具体错误信息?
xrr
帖子: 2
注册时间: 2021-06-23 18:59
系统: Ubuntu 16.04.7 LTS
送出感谢: 0
接收感谢: 0

Re: Mesa升级,请教大神

#3

帖子 xrr » 2021-06-25 12:06

我用export DISPLAY=:1解决了X11没法连接的情况 其实离屏渲染的问题已经解决了

不过还是可以再看看

>>prime-select nvidia
Info: the current GL alternatives in use are: [None, None]
Info: the current EGL alternatives in use are: [None, None]
Error: the installed packages do not support PRIME
Error: nvidia mode can't be enabled

>>glxinfo
name of display: :1
display: :1 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_stereo_tree, GLX_EXT_swap_control,
GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer,
GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer,
GLX_NV_multigpu_context, GLX_NV_multisample_coverage,
GLX_NV_robustness_video_memory_purge, GLX_NV_swap_group,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control,
GLX_SGI_video_sync
GLX version: 1.2
GLX extensions:
GLX_ARB_get_proc_address, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias

7 GLX Visuals
visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat
----------------------------------------------------------------------------
0x025 16 tc 1 16 0 r y . 6 5 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x026 16 tc 1 16 0 r y . 6 5 5 0 . . 0 16 8 16 16 16 0 0 0 None
0x027 16 tc 1 16 0 r y . 6 5 5 8 . . 0 16 8 16 16 16 16 0 0 None
0x028 16 dc 1 16 0 r y . 6 5 5 0 . . 0 16 0 0 0 0 0 0 0 None
0x029 16 dc 1 16 0 r y . 6 5 5 0 . . 0 16 8 16 16 16 0 0 0 None
0x02a 16 dc 1 16 0 r y . 6 5 5 8 . . 0 16 8 16 16 16 16 0 0 None
0x02b 16 dc 1 16 0 r . . 6 5 5 8 . . 0 16 8 16 16 16 16 0 0 None
回复

回到 “系统安装和升级”