Git Product home page Git Product logo

qfield's Introduction

Read the documentation Join the chat at https://gitter.im/opengisch/QField Release

QField for QGIS

A simplified touch optimized interface for QGIS.

Perfect for field work on portable touch devices.

Get it

Check the documentation

Get in Google play

Contribute

QField is an open source project, licensed under the terms of the GPLv2 or later. This means that it is free to use and modify and will stay like that.

We are very happy if this app helps you to get your job done or in whatever creative way you may use it.

If you found it useful, we will be even happier if you could give something back. A couple of things you can do are

Build

For Android

Quick and dirty

Use the dockerized QField SDK.

# get the latest tag from https://hub.docker.com/r/opengisch/qfield-sdk/tags/
TAG=20180821
cd QField

git submodule init
git submodule update

docker run -v $(pwd):/usr/src/qfield docker.io/opengisch/qfield-sdk:$TAG /usr/src/qfield/scripts/docker-build.sh --rm

This will put the apk into a subfolder build-docker/out/build/outputs/apk

Go the hard way

Build OSGeo4A

cd QField

git submodule init
git submodule update

cp config.pri.default config.pri
# Edit config.pri

The advantage of this is, you will be able to build and deploy directly from QtCreator.

For Desktop

  • Get QGIS 2.99 (3.0) development libraries.
cd QField
git submodule init
git submodule update

cp config.pri.default config.pri
# Edit config.pri
  • open QField.pro with QtCreator (installed during OSGeo4A installation)
  • hit build

On Mac

Building on a Mac requires some adjustments:

  1. In Qt Creator > Projects > Run >
  • Check Use debug version of frameworks
  • In Run Environment, add QGIS frameworks by editing following variables (Homebrew path might require adjustments):
    • DYLD_FRAMEWORK_PATH add :/usr/local/Cellar/qgis3/3.2/QGIS.app/Contents/Frameworks
    • DYLD_LIBRARY_PATH add :/usr/local/Cellar/qgis3/3.2/QGIS.app/Contents/Frameworks/qgis_core.framework/Versions/Current
  1. If you get the error invalid version number in '-mmacosx-version-min=', you might need to modify some Qt file. In /usr/local/Cellar/qt/5.10.1/mkspecs/features/mac/default_post.prf, hardcode the minimum deployment target by setting version_min_flag = -m$${version_identifier}-version-min=10.10 Or by running gsed -i "s/version_min_flag = -m\$\${version_identifier}-version-min=\$\$deployment_target/version_min_flag = -m\$\${version_identifier}-version-min=10\.10/" /usr/local/Cellar/qt/5.11.1/mkspecs/features/mac/default_post.prf

  2. If you have any issue with qmake not finding the proper SDK, in /usr/local/Cellar/qt/5.11.1/mkspecs/features/mac/default_post.prf, replace $$QMAKE_MAC_SDK_PATH (3 occurences) by /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

  3. Instead of step 1, you can add a custom deployment step in Qt Creator (project config -> run). Use the scripts at ./scripts/mac_deploy.sh and give "${QGIS_INSTALL_PATH}" as argument.

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.