Detect-It-Easy/docs/BUILD.md
2026-06-10 22:11:44 +02:00

9.6 KiB
Executable file

How to build on Docker

git clone https://github.com/horsicq/DIE-engine.git
cd DIE-engine
sudo docker build . -t horsicq:diec

How to build on Linux based on Debian

Install packages:

sudo apt-get install qtbase5-dev qtscript5-dev qttools5-dev-tools libqt5svg5-dev git build-essential -y
  • Ubuntu 14.04-20.04:
sudo apt-get install qt5-default -y
  • Ubuntu 21.04-26.04
sudo apt-get install qtchooser qt5-qmake pkg-config -y

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Run build script:

bash -x build_dpkg.sh

Install deb package:

sudo dpkg -i release/$(ls release)

How to build on Linux based on Fedora (DNF)

Install packages:

sudo dnf install qt5-qtbase-devel qt5-qtscript-devel qt5-qttools-devel git make gcc-c++
sudo dnf install qt6-qtbase-devel qt6-qtscript-devel qt6-qttools-devel qt6-qt5compat-devel qt6-qtdeclarative-devel git make gcc-c++

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

chmod a+x configure
./configure
make -j4

How to build on Linux based on openSuse (zypper)

Install packages:

sudo zypper install libqt5-qtbase-devel libqt5-qtscript-devel libqt5-qttools-devel libqt5-qtsvg-devel git gcc-c++ make

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

chmod a+x configure
./configure
make -j4

How to build on Linux based on Arch Linux (pacman)

Install packages:

sudo pacman -S --needed git base-devel qt5-base qt5-tools qt5-script

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

chmod a+x configure
./configure
make -j4

How to build on Linux (Automake)

Qt framework has to be installed on the system.

(Ubuntu) Install Qt Framework:

sudo apt-get install --quiet --assume-yes build-essential qt5-default qtbase5-dev qttools5-dev-tools qtscript5-dev libqt5svg5-dev

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

Might require sudo privileges

chmod a+x configure
./configure
make -j4
sudo make install

How to build on Linux (Qt6)

Qt framework has to be installed on the system.

(Ubuntu) Install Qt Framework:

sudo apt-get install --quiet --assume-yes build-essential qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools qt6-5compat-dev libqt6svg6-dev qt6-declarative-dev

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

mkdir build
cd build
qmake6 ../die_source.pro CONFIG+=release
make

How to build on macOS

Install Qt 5.15.2: https://github.com/horsicq/build_tools

Clone project: git clone --recursive https://github.com/horsicq/DIE-engine.git

Edit build_mac.sh (check QMAKE_PATH variable)

Run build script: bash -x build_mac.sh

How to build on Windows (XP)

Install Visual Studio 2013: https://github.com/horsicq/build_tools

Install Qt 5.6.3 for VS2013: https://github.com/horsicq/build_tools

Install 7-Zip: https://github.com/horsicq/build_tools

Clone project: git clone --recursive https://github.com/horsicq/DIE-engine.git

Edit build_winxp.bat (check VSVARS_PATH, SEVENZIP_PATH, QMAKE_PATH variables)

Run build_winxp.bat

How to build on Windows (7-11)

Install Visual Studio 2019: https://github.com/horsicq/build_tools

Install Qt 5.15.2 for VS2019: https://github.com/horsicq/build_tools

Install 7-Zip: https://github.com/horsicq/build_tools

Clone project: git clone --recursive https://github.com/horsicq/DIE-engine.git

Edit build_win32.bat ( check VSVARS_PATH, SEVENZIP_PATH, QMAKE_PATH variables)

Edit build_win64.bat ( check VSVARS_PATH, SEVENZIP_PATH, QMAKE_PATH variables)

Run build_win32.bat

Run build_win64.bat

How to build with CMAKE

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

mkdir -p build
cmake . -B build
cd build
make -j4
# To use it as a command, uncomment the following line:
# sudo make install -j4

How to build with MinGW/MSYS2

Install MSYS2: https://www.msys2.org/

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Install libaries

pacman -S mingw-w64-ucrt-x86_64-gcc
pacman -S mingw-w64-x86_64-qt5-tools

Build

chmod a+x configure
./configure
make -j4

How to build with WSL

  • Activate Windows Subsystem for Linux
  • Download from the Microsoft Store any distribution

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Install libaries

sudo apt-get install --quiet --assume-yes build-essential qtbase5-dev qttools5-dev-tools qtscript5-dev libqt5svg5-dev

Build

chmod a+x build_dpkg.sh
./build_dpkg.sh

How to build on Linux (Debug)

Qt framework has to be installed on the system.

(Ubuntu) Install Qt Framework:

sudo apt-get install --quiet --assume-yes build-essential qt5-default qtbase5-dev qttools5-dev-tools qtscript5-dev libqt5svg5-dev

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

mkdir build
cd build
qmake ../die_source.pro CONFIG+=debug CONFIG-=release
make

How to build on Linux (Qt6/Debug)

Qt framework has to be installed on the system.

(Ubuntu) Install Qt Framework:

sudo apt-get install --quiet --assume-yes build-essential qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools qt6-5compat-dev libqt6svg6-dev qt6-declarative-dev

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

mkdir build
cd build
qmake6 ../die_source.pro CONFIG+=debug CONFIG-=release
make

How to build on Linux (Qt5/AppImage)

Qt framework has to be installed on the system.

(Ubuntu) Install Qt Framework:

sudo apt-get install --quiet --assume-yes build-essential qt5-default qtbase5-dev qttools5-dev-tools qtscript5-dev libqt5svg5-dev

Setup linuxdeploy

wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
sudo mv linuxdeploy-x86_64.AppImage /usr/local/bin/linuxdeploy
sudo chmod +x /usr/local/bin/linuxdeploy

wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
sudo mv linuxdeploy-plugin-qt-x86_64.AppImage /usr/local/bin/linuxdeploy-plugin-qt

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build

chmod a+x configure
./configure
make
chmod a+x create_appimage.sh
./create_appimage.sh

How to build on nixOS (Qt5)

Qt framework has to be installed on the system.

Download dependencies

nix-shell -p git gcc gnumake pkg-config qt5.qtbase qt5.qtscript qt5.qttools qt5.qtsvg qt5.qtwayland

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build (Release)

mkdir build
cd build
qmake ../die_source.pro CONFIG+=release
make

Build (Debug)

mkdir build
cd build
qmake ../die_source.pro CONFIG+=debug
make

Run

export QT_QPA_PLATFORM=wayland
./die

How to build on Alpine Linux (Qt5)

Qt framework has to be installed on the system.

Download dependencies

apk update
apk add qt5-qtbase-dev qt5-qtscript-dev qt5-qttools-dev qt5-qtsvg-dev git build-base pkgconf

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build (Release)

mkdir build
cd build
qmake ../die_source.pro CONFIG+=release
make

Build (Debug)

mkdir build
cd build
qmake ../die_source.pro CONFIG+=debug
make

How to build on openBSD (Qt5)

Qt framework has to be installed on the system.

Download dependencies

su -
pkg_add git gmake cmake qtbase qtsvg qtscript qttools
exit

Clone this repo recursively:

git clone --recursive https://github.com/horsicq/DIE-engine.git
cd DIE-engine

Build (Release)

mkdir build
cd build
qmake-qt5 ../die_source.pro CONFIG+=release
gmake

Build (Debug)

mkdir build
cd build
qmake-qt5 ../die_source.pro CONFIG+=debug
gmake