GithubHelp home page GithubHelp logo

oslandia / docker-qgis Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 6.0 102 KB

Migrated to: https://gitlab.com/Oslandia/qgis/docker-qgis

License: Other

Shell 21.94% Makefile 9.81% HTML 13.99% Dockerfile 54.27%
debian docker gis ogc-services qgis qgis-server ubuntu

docker-qgis's People

Contributors

benoitdm-oslandia avatar elemoine avatar lbartoletti avatar vmora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-qgis's Issues

Issues during QGIS compilation

Hi @elemoine,

I have the next error when I'm building deb packages according to the command line described in the README:

$ docker run -it --rm -v $(pwd):/qgis -u $(id -u):$(id -g) qgis-build
...
...
...
ccache: error: Failed to create directory //.ccache/tmp: Permission denied
[6/4070] Generating qgsversion.h, qgsversion.inc
Files "/qgis/QGIS/debian/build/qgsversion.h.temp" to "/qgis/QGIS/debian/build/qgsversion.h" are different.
[7/4070] Building /qgis/QGIS/debian/build/doc/INSTALL from /qgis/QGIS/doc/INSTALL.t2t
txt2tags wrote /qgis/QGIS/debian/build/doc/INSTALL
[8/4070] Building /qgis/QGIS/debian/build/doc/INSTALL.html from /qgis/QGIS/doc/INSTALL.t2t
txt2tags wrote /qgis/QGIS/debian/build/doc/INSTALL.html
[9/4070] Building /qgis/QGIS/debian/build/doc/news from /qgis/QGIS/doc/news.t2t
txt2tags wrote /qgis/QGIS/debian/build/doc/news
[10/4070] Building /qgis/QGIS/debian/build/doc/news.html from /qgis/QGIS/doc/news.t2t
txt2tags wrote /qgis/QGIS/debian/build/doc/news.html
ninja: build stopped: subcommand failed.
debian/rules:238: recipe for target 'override_dh_auto_build-arch' failed
make[2]: *** [override_dh_auto_build-arch] Error 1
make[2]: Leaving directory '/qgis/QGIS'
debian/rules:221: recipe for target 'build-arch' failed
make[1]: *** [build-arch] Error 2
make[1]: Leaving directory '/qgis/QGIS'
debian/rules:221: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

I had to mount some volumes to make it work:

$ docker run -it --rm -v $(pwd):/qgis -u $(id -u):$(id -g) \
-v /etc/passwd:/etc/passwd:ro \ 
-v /etc/group:/etc/group:ro \
-v $HOME/.ccache/:$HOME/.ccache/:rw \
qgis-build

undefined reference to `openpty'

On a fresh image build today and a fresh QGIS master:

[1/2] Building C object CMakeFiles/cmTC_69d3d.dir/CheckFunctionExists.c.o
[2/2] Linking C executable cmTC_69d3d
FAILED: cmTC_69d3d 
: && /usr/bin/cc -g -O2 -fdebug-prefix-map=/qgis/QGIS=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=openpty  -Wl,-z,relro -Wl,-z,now   -rdynamic CMakeFiles/cmTC_69d3d.dir/CheckFunctionExists.c.o  -o cmTC_69d3d   && :
/usr/bin/ld: CMakeFiles/cmTC_69d3d.dir/CheckFunctionExists.c.o: in function `main':
/usr/share/cmake-3.13/Modules/CheckFunctionExists.c:17: undefined reference to `openpty'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.


dh_auto_configure: cd debian/build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -G Ninja -DBUILDNAME=buster-amd64 -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_INSTALL_PREFIX=/usr -DBINDINGS_GLOBAL_INSTALL=TRUE -DPEDANTIC=TRUE -DSERVER_SKIP_ECW=TRUE -DQGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin -DWITH_APIDOC=TRUE -DGENERATE_QHP=TRUE -DWITH_CUSTOM_WIDGETS=TRUE -DWITH_GLOBE=FALSE -DWITH_SERVER=TRUE -DWITH_SERVER_PLUGINS=TRUE -DWITH_QWTPOLAR=FALSE -DQT_PLUGINS_DIR=usr/lib/x86_64-linux-gnu/qt5/plugins -DPYTHON_LIBRARY=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7m.so -DDOXYGEN_ON_DEMAND=TRUE -DWITH_GRASS=TRUE -DWITH_GRASS7=TRUE -DGRASS_PREFIX7=/usr/lib/grass76 -DWITH_QSPATIALITE=TRUE -DPOSTGRES_LIBRARY=/usr/lib/x86_64-linux-gnu/libpq.so -DWITH_3D=TRUE -DGEOS_LIBRARY=/usr/lib/x86_64-linux-gnu/libgeos_c.so -DCMAKE_PREFIX_PATH=/qgis/QGIS/external/qt3dextra-headers/cmake -DQT5_3DEXTRA_INCLUDE_DIR=/qgis/QGIS/external/qt3dextra-headers -DQT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so -DSPATIALINDEX_LIBRARY=/usr/lib/x86_64-linux-gnu/libspatialindex.so -DENABLE_TESTS=FALSE ../.. returned exit code 1
make[2]: *** [debian/rules:229: override_dh_auto_configure] Error 2
make[2]: Leaving directory '/qgis/QGIS'
make[1]: *** [debian/rules:221: build-arch] Error 2
make[1]: Leaving directory '/qgis/QGIS'
make: *** [debian/rules:221: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Installing QGIS on Debian Jessie doesn't work anymore

We get this error at image build time when using Dockerfile-official:

W: GPG error: http://qgis.org/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG CAEB3DC3BDF7FB45 QGIS Archive Automatic Signing Key (2017) <[email protected]>
W: The repository 'http://qgis.org/debian stretch InRelease' is not signed.

It looks like the QGIS 2017 GPG key has expired, but the Jessie repo (http://qgis.org/debian/dists/jessie/) still uses it.

Sounds like a good excuse for switching to Debian buster.

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.