How To Install libmojoshader-dev on Debian 12
Introduction
In this tutorial we learn how to install libmojoshader-dev
on Debian 12.
What is libmojoshader-dev
libmojoshader-dev is:
MojoShader is a library to work with Direct3D shaders on alternate 3D APIs and non-Windows platforms. The primary motivation is moving shaders to OpenGL languages on the fly. The developer deals with “profiles” that represent various target languages, such as GLSL or ARB_*_program.
This allows a developer to manage one set of shaders, presumably written in Direct3D HLSL, and use them across multiple rendering backends. This also means that the developer only has to worry about one (offline) compiler to manage program complexity, while MojoShader itself deals with the reduced complexity of the bytecode at runtime.
MojoShader provides both a simple API to convert bytecode to various profiles, and (optionally) basic glue to rendering APIs to abstract the management of the shaders at runtime.
This package contains the header files and static library for libmojoshader0.
There are three methods to install libmojoshader-dev
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libmojoshader-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libmojoshader-dev
using apt-get
by running the following command:
sudo apt-get -y install libmojoshader-dev
Install libmojoshader-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmojoshader-dev
using apt
by running the following command:
sudo apt -y install libmojoshader-dev
Install libmojoshader-dev Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libmojoshader-dev
using aptitude
by running the following command:
sudo aptitude -y install libmojoshader-dev
How To Uninstall libmojoshader-dev on Debian 12
To uninstall only the libmojoshader-dev
package we can use the following command:
sudo apt-get remove libmojoshader-dev
Uninstall libmojoshader-dev And Its Dependencies
To uninstall libmojoshader-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libmojoshader-dev
Remove libmojoshader-dev Configurations and Data
To remove libmojoshader-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libmojoshader-dev
Remove libmojoshader-dev configuration, data, and all of its dependencies
We can use the following command to remove libmojoshader-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmojoshader-dev
Dependencies
libmojoshader-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libmojoshader-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.