Skip to content

Instantly share code, notes, and snippets.

@1v
Last active November 12, 2021 05:01
Show Gist options
  • Save 1v/8fbac548d3b22a430c6fe3838e9b76e4 to your computer and use it in GitHub Desktop.
Save 1v/8fbac548d3b22a430c6fe3838e9b76e4 to your computer and use it in GitHub Desktop.

Install aqt https://github.com/miurahr/aqtinstall/

pip install aqtinstall

List Qt versions

aqt list-qt linux desktop

Install Qt

aqt install-qt linux desktop 6.2.1

Add to the end of .profile:

export PATH="$PATH:$HOME/6.2.1/gcc_64/bin"

In windows

%USERPROFILE%\6.2.1\mingw81_64\bin\

Install libGL

sudo apt install libgl-dev

Install clang-format

pip install clang-format

Create config

clang-format -style=google -dump-config > .clang-format

Format code

clang-format -i window.cpp

Download and add upx to PATH https://github.com/upx/upx/releases

Compile file bat

@echo off
clang-format -i %1 && g++ %1 -o out_c -s -Os && upx --best --ultra-brute -q -q -q out_c.exe && out_c.exe

where %1 is source file name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment