[QGIS-Developer] Trouble compiling QGIS mapserver only
Asger Sigurd Skovbo Petersen
asgerpetersen at gmail.com
Mon May 27 00:52:41 PDT 2019
For future reference:
Issue 21382 (Fails to build with SERVER_PLUGINS disabled) is fixed in master.
/Asger
> On 22 May 2019, at 11.25, Asger Sigurd Skovbo Petersen <asgerpetersen at gmail.com> wrote:
>
> Inspired by bitner's mapserver AWS Lambda layer [0] I wanted to try and compile a QGIS mapserver for AWS Lambda. Keeping the build to an absolute minimum is important for several reasons
> 1) Amazon Linux having basically no package support means compiling all dependencies from scratch
> 2) Lambda has a 250MB limit on deployment package size [1]
> 3) Minimizing complexity
>
> Initially I tried compiling qgis mapserver without gui and python support at all. INSTALL document [2] states fastcgi as the only dependency, but I am hit by issue 21382 [3] which means qgis mapserver cannot compile with SERVER_PLUGINS disabled.
>
> Enabling SERVER_PLUGINS seems to require enabling BINDINGS. As mentioned I would prefer not having python support at all, but if I make with WITH_SERVER_PLUGINS=ON, WITH_BINDINGS=ON and WITH_STAGED_PLUGINS=OFF then `make install` fails when installing db_manager (!):
>
> CMake Error at python/plugins/db_manager/cmake_install.cmake:41 (file):
> file INSTALL cannot find
> "/build/qgis/python/plugins/db_manager/resources_rc.py".
> Call Stack (most recent call first):
> python/plugins/cmake_install.cmake:42 (include)
> python/cmake_install.cmake:144 (include)
> cmake_install.cmake:63 (include)
>
> My dockerfile resulting in the above error can be seen at [4]. It is quite messy as a result of many trial and error iterations.
>
> Shouldnt it be possible to build QGIS mapserver without all the other stuff? Is it at all possible to build QGIS mapserver as a server application without all the gui related stuff and preferable without python?
>
> Any advice on how to proceed is extremely welcome!
>
> Thanks in advance
> Asger
>
> [0] https://github.com/bitner/mapserverless-layer
> [1] https://dashbird.io/blog/exploring-lambda-limitations/
> [2] https://github.com/qgis/QGIS/blob/152a556887fe4c762ef03411a5825d0c120488dd/INSTALL#L123
> [3] https://issues.qgis.org/issues/21382
> [4] https://gist.github.com/AsgerPetersen/3b98b02461d745813dda92a10185b22a#file-dockerfile
More information about the QGIS-Developer
mailing list