mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-21 12:04:50 +00:00
fix(dependencies): correct packages for GL/gl.h
This commit is contained in:
parent
0b54808d20
commit
a813015885
4 changed files with 16 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
use super::{
|
||||
boost_deps::boost_deps,
|
||||
common::{dep_cmake, dep_eigen, dep_gpp, dep_libglvnd, dep_ninja, dep_opencv},
|
||||
common::{dep_cmake, dep_eigen, dep_gpp, dep_libgl, dep_ninja, dep_opencv},
|
||||
DepType, Dependency, DependencyCheckResult,
|
||||
};
|
||||
use crate::linux_distro::LinuxDistro;
|
||||
|
@ -11,7 +11,7 @@ fn basalt_deps() -> Vec<Dependency> {
|
|||
dep_gpp(),
|
||||
dep_cmake(),
|
||||
dep_ninja(),
|
||||
dep_libglvnd(),
|
||||
dep_libgl(),
|
||||
Dependency {
|
||||
name: "lz4-dev".into(),
|
||||
dep_type: DepType::Include,
|
||||
|
|
|
@ -223,19 +223,20 @@ pub fn dep_libudev() -> Dependency {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn dep_libglvnd() -> Dependency {
|
||||
pub fn dep_libgl() -> Dependency {
|
||||
Dependency {
|
||||
name: "libglvnd-dev".into(),
|
||||
dep_type: DepType::Include,
|
||||
filename: "GL/gl.h".into(),
|
||||
packages: HashMap::from([
|
||||
(LinuxDistro::Arch, "libglvnd".into()),
|
||||
(LinuxDistro::Debian, "libglvnd-dev".into()),
|
||||
(LinuxDistro::Fedora, "libglvnd-devel".into()),
|
||||
// WARN: can't find anything exact for alpine, mesa-dev offers
|
||||
// GL/gl.h hopefully that's the only one needed
|
||||
// the right debian package would be libgl-dev but the mesa one
|
||||
// has it as a dependency
|
||||
(LinuxDistro::Debian, "libgl1-mesa-dev".into()),
|
||||
// as above, the right package would be libglvnd-devel
|
||||
(LinuxDistro::Fedora, "mesa-libGL-devel".into()),
|
||||
(LinuxDistro::Alpine, "mesa-dev".into()),
|
||||
(LinuxDistro::Suse, "libglvnd-devel".into()),
|
||||
(LinuxDistro::Suse, "Mesa-libGL-devel".into()),
|
||||
]),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use super::{
|
||||
common::{
|
||||
dep_cmake, dep_eigen, dep_gcc, dep_git, dep_glslang_validator, dep_gpp, dep_libdrm,
|
||||
dep_libglvnd, dep_libudev, dep_libx11, dep_libxcb, dep_ninja, dep_openxr,
|
||||
dep_libgl, dep_libudev, dep_libx11, dep_libxcb, dep_ninja, dep_openxr,
|
||||
dep_vulkan_headers, dep_vulkan_icd_loader,
|
||||
},
|
||||
DepType, Dependency, DependencyCheckResult,
|
||||
|
@ -74,7 +74,7 @@ fn monado_deps() -> Vec<Dependency> {
|
|||
(LinuxDistro::Suse, "Mesa-dri-devel".into()),
|
||||
]),
|
||||
},
|
||||
dep_libglvnd(),
|
||||
dep_libgl(),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,10 @@ use super::{
|
|||
},
|
||||
DepType, Dependency, DependencyCheckResult,
|
||||
};
|
||||
use crate::{depcheck::common::dep_libxrandr, linux_distro::LinuxDistro};
|
||||
use crate::{
|
||||
depcheck::common::{dep_libgl, dep_libxrandr},
|
||||
linux_distro::LinuxDistro,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
|
||||
fn wivrn_deps() -> Vec<Dependency> {
|
||||
|
@ -23,6 +26,7 @@ fn wivrn_deps() -> Vec<Dependency> {
|
|||
dep_libxcb(),
|
||||
dep_libx11(),
|
||||
dep_libxrandr(),
|
||||
dep_libgl(),
|
||||
Dependency {
|
||||
name: "patch".into(),
|
||||
dep_type: DepType::Executable,
|
||||
|
|
Loading…
Add table
Reference in a new issue