No description
Find a file
2025-05-17 11:41:33 +09:00
src/app init 2025-05-15 16:16:29 +09:00
CMakeLists.txt init 2025-05-15 16:16:29 +09:00
README.md README.md を更新 2025-05-17 11:41:33 +09:00

インストール

https://doc.qt.io/qt-6/linux.html を参考に、

sudo apt-get install build-essential libgl1-mesa-dev

したあとに、 https://www.qt.io/download-qt-installer-oss からQt本体をインストール

インストール中にlibxcb-cursor0, libxcb-cursor-devもないぜって言われるので、これもインストール

sudo apt install libxcb-cursor0 libxcb-cursor-dev

あと、cmakeも必要なので、これもインストール

sudo apt install cmake

build

jj git clone https://tea.qozl.ink/15km/Qt-Cmake_HelloWorld

set(Qt6_DIR "/home/q15km/Qt/6.9.0/gcc_64/lib/cmake/Qt6/")

ここが各環境で異なるので(ほんとはcmakeのオプションで渡してあげるのが正解だと思うのだけれど、)変更して、

cmake .
cmake --build .

すればとりあえずbuildできる。