MerginMaps / work-packages

Mergin Maps Work Packages: manage field surveys for multiple teams
MIT License
7 stars 4 forks source link

Instructions for macOS #10

Open wonder-sk opened 3 years ago

wonder-sk commented 3 years ago

notes from @PeterPetrik - would be nice to have section quickstart

# Installation

/Applications/QGIS.app/Contents/MacOS/bin/python3 -m virtualenv venv
source venv/bin/activate
pip3 install mergin-client
git clone https://github.com/lutraconsulting/mergin-work-packages.git

# Project preparation
mkdir my_wp_test
cd my_wp_test
... copy data... create this ...

CREATE TABLE "wp_tables" (
    "table_name"    TEXT,
    "filter_column_name"    TEXT
);

...

to load mod_spatialite on macos I had to do this

cd mergin-work-packages
ln -s /Applications/QGIS.app/Contents/MacOS//lib/mod_spatialite.so mod_spatialite.dylib
DYLD_INSERT_LIBRARIES=/Applications/QGIS.app/Contents/MacOS/lib/libsqlite3.dylib python3 wp_mergin.py "peter.petrik/workpackageinitial" mydata.gpkg peter.petrik