Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maplibre/maplibre-native-qt
MapLibre Native Qt Bindings and Qt Location Plugin
https://github.com/maplibre/maplibre-native-qt
Last synced: 3 days ago
JSON representation
MapLibre Native Qt Bindings and Qt Location Plugin
- Host: GitHub
- URL: https://github.com/maplibre/maplibre-native-qt
- Owner: maplibre
- Created: 2022-06-06T09:56:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T21:34:06.000Z (26 days ago)
- Last Synced: 2025-01-02T07:08:44.955Z (10 days ago)
- Language: C++
- Homepage: https://maplibre.org/maplibre-native-qt/docs/
- Size: 1.62 MB
- Stars: 45
- Watchers: 8
- Forks: 17
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSES/BSD-2-Clause.txt
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
- awesome-maplibre - maplibre-native-qt - MapLibre Native Qt bindings and Qt Location MapLibre Plugin (Bindings / Qt (C++))
README
![MapLibre Logo](https://maplibre.org/img/maplibre-logo-big.svg)
# maplibre-native-qt
MapLibre Native Qt bindings and Qt Location MapLibre Plugin
**Important notice:** the repository and code have been reorganised for Qt 6.5 support.
Version 3.0 is a major release that includes a lot of build-related changes
and improvements and is not backwards compatible.## Qt support
This library fully supports Qt 6.5 and newer.
Qt 5.15 is fully supported only on desktop platforms, previous Qt 5 versions
down to 5.6 only support widgets but not Qt Location.## Get and build
The project uses submodules, so you need to clone it with the following commands:
```shell
git clone https://github.com/maplibre/maplibre-native-qt.git
cd maplibre-native-qt
git submodule update --init --recursive
```(On some file systems, the submodule update may yield a `Filename too long` error
which can be ignored.)For more details on building the project, see [How to build](docs/Building.md).
## How to use?
Once installed `QMapLibre` can be used in any Qt and CMake project.
Two example projects based on Qt 6 are available in the
[examples](examples) directory.To build an example, run the following commands:
```shell
export QMapLibre_DIR=""
cmake --workflow --preset default
```or alternatively
```shell
mkdir build-example && cd build-example
qt-cmake ../maplibre-native-qt/examples/ -GNinja \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_PREFIX_PATH=""
ninja
```For more details on using the library, see [Usage](docs/Usage.md).
## Copyright
Copyright (C) 2023 MapLibre contributors
The core library may be used under 2-Clause BSD License.
QML bindings may be used under the terms of either GNU General Public License version 2.0,
GNU General Public License version 3.0 or GNU Lesser General Public License version 3.0.
Examples are licensed under MIT.
Full texts of the licenses can be found in the [LICENSES](LICENSES) directory.Each file contains corresponding license information with SPDX license identifiers
to clarify how it can be used.