Giter Club home page Giter Club logo

snowflakes's Introduction

Qt Wasm project template, with deploy to Github Pages

This is a template repository for C++/Qt projects that can be deployed to Github Pages.

Build and deploy to GitHub Pages

Deploy example here: QtWasmTemplate. ⚠️ Wait ~20 seconds while it loads the Qt libraries.

Project structure

├── .github/workflows/BuildDeploy.yml # Github Actions workflow for build and deploy to Github Pages
├── CMakeLists.txt                    # Cmake file
├── CMakePresets.json                 # Cmake presets file
├── main.cpp                          # Main cpp file, with qml engine initialization
├── main.qml                          # Qml file with hello world
└── project.py                        # Main project script

Getting Started

To use this template, click the "Use this template" button at the top of the repository.

Also you need to activate Github Pages for your repository with Github actions way of deployment.

Dependencies

  • Cmake/Ninja
  • Qt 6.4.2
  • aqtinstall (script for qt installation. optional)

🛠️ Build

To build this project you can use a script

./project.py --install --build

or you can run commands from script manually:

# Install dependencies
pip install aqtinstall

# Install Qt [optional if you already have Qt installed]
aqt install-qt linux desktop 6.4.2 gcc_64 --outputdir ./Qt
aqt install-qt linux desktop 6.4.2 wasm_32 --outputdir ./Qt

# Configure cmake
cmake --preset=wasm_release -Wno-dev

# Build project
cmake --build --preset=wasm_release

# As result you will get folder, ready to deploy at
# ./build/wasm_release/deploy

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request.

snowflakes's People

Contributors

savenkovigor avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.