On Debian or Debian derivatives:
Since the project uses xmake to manage Qt, you need to remove the local Qt installation:
sudo apt remove qt6-base-dev qt6-base-dev-tools qmake6 If you encounter Qt dependency issues, you can use this command to delete xmake's Qt global cache:
rm -rf ~/.xmake/cache ~/.xmake/packages/qtInstall xmake and related dependencies:
sudo apt install xmake
sudo apt update
sudo apt install -y gcc git 7zip unzip curl build-essential fonts-noto-cjk libcurl4-openssl-dev libfreetype-dev libfontconfig-dev libmimalloc-dev libgit2-dev zlib1g-dev libssl-dev libjpeg62-turbo-dev cmake pandoc xmake python3.13 ninja-build libdbus-1-3 libglib2.0-0t64 libegl1 libgl-dev libxkbcommon0Keep xrepo updated:
xrepo update-repo-vD shows detailed debug logs. Qt installation cache is located at: /home/username/.xmake/packages For example: /home/jiadong/.xmake/packages/q/qt6base/6.8.3/7c1ea54729db483fa6eee7744bd4a333
xmake config --yes -vD
xmake build stemRefer to How to Test
xmake run stemCache directory:
rm -rf ~/.cache/MoganLab Runtime cache:
rm -rf ~/.local/share/moganlabInstall VSCode, Clangd, and the Clangd extension for VSCode. Then execute the following command in the mogan folder:
xmake project -k compile_commandsThis command will generate a compile_commands.json file in the mogan folder. Clangd reads this file to understand the project's structure, thereby avoiding errors related to missing header files.