Make sure you have all the following dependencies installed:
sudo apt install build-essential gcc g++ cmake ninja-build libmpfr-dev libmpc-dev libgmp-dev qemu-system-x86 qemu-utils grub2-common xorriso patch wget
sudo pacman -S --needed base-devel gcc g++ cmake nasm ninja mpfr libmpc gmp qemu qemu-arch-extra grub2-common xorriso patch wget
First you have to build the custom MeetixOS toolchain by running the following commands:
cd MeetixOS/Toolchain
./Build.sh
If the script fails you could restart it by typing:
./Build.sh --rebuild
If you are intentioned to do debugging you may want to keep the toolchain build file instead of deleting them, then you
could pass to the script --skip-last-clean
to do that:
./Build.sh --skip-last-clean
After the completion of this script your host should be able to build MeetixOS
MeetixOS is a CLion
project, then If you have the CLion IDE
check the use instructions.
Otherwise, go to the MeetixOS/Build
directory and type the following commands.
mkdir -p Debug
pushd Debug
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=Build/CMakeToolchain.txt -DCMAKE_BUILD_TYPE=Debug ../..
popd
mkdir -p Release
pushd Release
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=Build/CMakeToolchain.txt -DCMAKE_BUILD_TYPE=Release ../..
popd
Then, lets build and run the system:
cd MeetixOS/Build/BUILD_TYPE_CHOSEN
ninja run
The last command will compile the code, pack a ramdisk image, build the ISO then run it via QEMU