-
Notifications
You must be signed in to change notification settings - Fork 1
Linux build instructions
adazem009 edited this page Mar 18, 2024
·
3 revisions
ScratchCPP Player needs Qt 6.6. You can use the aqt-install
tool to install it (make sure you have Python installed):
pip install -U pip
pip install aqtinstall
aqt install-qt linux desktop 6.6 gcc_64 -m qtimageformats --outputdir ~/Qt
Qt will be installed in the ~/Qt
directory.
Alternatively, the official Qt installer can be used. Just make sure you check the required Qt modules (Qt Image Formats).
Clone the ScratchCPP Player repository:
git clone https://github.com/scratchcpp/scratchcpp-player --recurse-submodules
cd scratchcpp-player
Create a build directory:
mkdir build_files
cd build_files
Tell CMake to use the Qt installation you've installed and configure the project:
export CMAKE_PREFIX_PATH=~/Qt/6.6.*/gcc_64:$CMAKE_PREFIX_PATH
cmake ..
And to build and run the application:
cmake --build . -j$(nproc --all)
./src/scratchcpp-player