{"id":24256060,"url":"https://github.com/kdablabs/mecaps","last_synced_at":"2025-07-04T11:04:43.780Z","repository":{"id":204737421,"uuid":"712519140","full_name":"KDABLabs/mecaps","owner":"KDABLabs","description":"Starter pack for your next C++ application using KDUtils and Slint.","archived":false,"fork":false,"pushed_at":"2024-11-07T20:57:17.000Z","size":162,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-07T21:31:15.823Z","etag":null,"topics":["cpp","cross-platform","embedded","kdab","slint-ui"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KDABLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-31T16:18:02.000Z","updated_at":"2024-09-26T14:41:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2605a64-5790-470c-befd-f2283d6e1f06","html_url":"https://github.com/KDABLabs/mecaps","commit_stats":null,"previous_names":["kdablabs/mecaps"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2Fmecaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2Fmecaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2Fmecaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2Fmecaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KDABLabs","download_url":"https://codeload.github.com/KDABLabs/mecaps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233993696,"owners_count":18762814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cross-platform","embedded","kdab","slint-ui"],"created_at":"2025-01-15T04:46:34.549Z","updated_at":"2025-01-15T04:46:35.407Z","avatar_url":"https://github.com/KDABLabs.png","language":"C++","readme":"# MECAPS\n\n**M**odern **E**mbedded **C**++ **AP**plication **S**tarter.\n\nA template for a C++ application using\n[KDUtils](https://github.com/KDAB/KDUtils) as cross-platform application core library, [Slint](https://slint.dev) for the user interface and CMake for the build system.\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/images/MadeWithSlint-logo-dark.svg\"\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"docs/images/MadeWithSlint-logo-light.svg\"\u003e\n  \u003cimg alt=\"#MadeWithSlint logo.\" src=\"docs/images/MadeWithSlint-logo-light.svg\"\u003e\n\u003c/picture\u003e\n\n## About\n\nThis starter pack helps you to get started developing a C++ application with KDUtils as cross-platform application core library and Slint as toolkit for the user interface.\n\nThe starter pack comes with the following integrations that are all hooked into KDFoundations' event loop and come with neat APIs using KDBindings providing properties, signals and slots:\n\n* curl integration\n* mosquito integration\n\n## Prerequisites\n\nIn order to use this template and build a C++ application, you need to install a few tools:\n\n  * **[cmake](https://cmake.org/download/)** (3.21 or newer)\n  * **[git](https://git-scm.com/)** (to fetch dependencies)\n  * **[slint](https://slint.dev/)** (optional)\n  * C++ compiler that supports C++ 20\n\nIf your target environment is Linux or Windows on an x86-64 architecture, then you may also opt into downloading one of Slint's binary packages. These are pre-compiled and require no further tools. You can find setup instructions and download links at\n\n\u003chttps://slint.dev/docs/cpp/cmake.html#binary-packages\u003e\n\nAlternatively, this template will automatically download the Slint sources and compile them. This option requires you to install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). Once this is done, you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.\n\n### Linux\n\nSome packages are needed on Linux to compile mecaps and its dependencies. On Debian/Ubuntu these\nare:\n\n```\nsudo apt install build-essential cmake git libxkbcommon-dev libxcb-xkb-dev libxkbcommon-x11-dev wayland-scanner++ wayland-protocols libwayland-dev libmosquittopp-dev\n```\n\n## Usage\n\n1. Clone or download this repository\n    ```\n    git clone \"https://\u003cuser.name\u003e@codereview.kdab.com/a/kdab/mecaps\" my-project\n    cd my-project\n    ```\n2. Configure with CMake\n   ```\n   mkdir build\n   cmake -B build\n   ```\n3. Build with CMake\n   ```\n   cmake --build build\n   ```\n4. Run the application binary\n    * Linux/macOS:\n        ```\n        ./build/demo/mecaps_demo_ui\n        ```\n    * Windows:\n        ```\n        build\\demo\\mecaps_demo_ui.exe\n        ```\n\n## Licensing\n\nMecaps is (C) 2023 Klarälvdalens Datakonsult AB, and is available under\nthe terms of the [MIT](https://github.com/KDABLabs/mecaps/blob/main/LICENSES/MIT.txt)\nor the [Apache-2.0](https://github.com/KDABLabs/mecaps/blob/main/LICENSES/Apache-2.0.txt)\nlicenses.\n\nContact KDAB at \u003cinfo@kdab.com\u003e to inquire about additional features or\nservices related to this project.\n\n## About KDAB\n\nMecaps is supported and maintained by Klarälvdalens Datakonsult AB (KDAB).\n\nThe KDAB Group is the global No.1 software consultancy for Qt, C++ and\nOpenGL applications across desktop, embedded and mobile platforms.\n\nThe KDAB Group provides consulting and mentoring for developing Qt applications\nfrom scratch and in porting from all popular and legacy frameworks to Qt.\nWe continue to help develop parts of Qt and are one of the major contributors\nto the Qt Project. We can give advanced or standard trainings anywhere\naround the globe on Qt as well as C++, OpenGL, 3D and more.\n\nPlease visit https://www.kdab.com to meet the people who write code like this.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdablabs%2Fmecaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdablabs%2Fmecaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdablabs%2Fmecaps/lists"}