构建 Mesa3d 时缺少依赖项

构建 Mesa3d 时缺少依赖项

使用了Meson,缺少的依赖项如下:

Found pkg-config: /usr/bin/pkg-config (0.29.1)
Dependency vdpau found: NO
Dependency xvmc found: NO
Dependency libomxil-bellagio found: NO
Dependency libtizonia found: NO
Dependency libtizplatform found: NO
Dependency tizilheaders found: NO
Dependency libva found: NO
meson.build:1088:0: ERROR: Native dependency 'zlib' not found

更新:

libegl1-mesa:
  Installed: 18.2.2-0ubuntu1~18.04.2
  Candidate: 18.2.2-0ubuntu1~18.04.2
  Version table:
 *** 18.2.2-0ubuntu1~18.04.2 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     18.0.0~rc5-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
libgl1-mesa-dri:
  Installed: 18.2.2-0ubuntu1~18.04.2
  Candidate: 18.2.2-0ubuntu1~18.04.2
  Version table:
 *** 18.2.2-0ubuntu1~18.04.2 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     18.0.0~rc5-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
libgl1-mesa-glx:
  Installed: 18.2.2-0ubuntu1~18.04.2
  Candidate: 18.2.2-0ubuntu1~18.04.2
  Version table:
 *** 18.2.2-0ubuntu1~18.04.2 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     18.0.0~rc5-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
N: Unable to locate package libglx-mesa

答案1

你应该:

  1. 使能够源代码存储库软件与更新software-properties-gtk
  2. 获取构建依赖项Mesa 源码包

    sudo apt-get build-dep mesa
    
  3. 重试编译方法。

相关内容