Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for macOS #10

Open
wonder-sk opened this issue Mar 5, 2021 · 0 comments
Open

Instructions for macOS #10

wonder-sk opened this issue Mar 5, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@wonder-sk
Copy link
Contributor

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
@wonder-sk wonder-sk added the documentation Improvements or additions to documentation label Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant