2022-06-27 19:11:35 +00:00
|
|
|
### Compiling ImHex on Linux
|
|
|
|
|
2022-08-09 20:50:02 +00:00
|
|
|
On Linux, ImHex is built through regular GCC (or optionally Clang).
|
2022-06-27 19:11:35 +00:00
|
|
|
|
2022-08-09 20:50:02 +00:00
|
|
|
1. Clone the repo using `git clone https://github.com/WerWolv/ImHex --recurse-submodules`
|
|
|
|
2. Install the dependencies using one of the `dist/get_deps_*.sh` scripts. Choose the one that matches your distro.
|
|
|
|
3. Build ImHex itself using the following commands:
|
2022-06-27 19:11:35 +00:00
|
|
|
```sh
|
2022-08-09 20:50:02 +00:00
|
|
|
cd ImHex
|
2022-06-27 19:11:35 +00:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2024-02-22 19:48:15 +00:00
|
|
|
CC=gcc-12 CXX=g++-12 \
|
|
|
|
cmake -G "Ninja" \
|
2022-06-27 19:11:35 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2024-02-22 19:48:15 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
2022-06-27 19:11:35 +00:00
|
|
|
..
|
2024-02-29 19:16:03 +00:00
|
|
|
ninja install
|
2022-06-27 19:11:35 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
All paths follow the XDG Base Directories standard, and can thus be modified
|
|
|
|
with the environment variables `XDG_CONFIG_HOME`, `XDG_CONFIG_DIRS`,
|
|
|
|
`XDG_DATA_HOME` and `XDG_DATA_DIRS`.
|