<div dir="ltr"><div dir="ltr"><div>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</div><div>1) Amazon Linux having basically no package support means compiling all dependencies from scratch</div><div>2) Lambda has a 250MB limit on deployment package size [1]</div><div>3) Minimizing complexity</div><div><br></div><div>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.</div><div><br></div><div>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 (!):</div><div><br></div><div>CMake Error at python/plugins/db_manager/cmake_install.cmake:41 (file):</div><div>  file INSTALL cannot find</div><div>  "/build/qgis/python/plugins/db_manager/resources_rc.py".</div><div>Call Stack (most recent call first):</div><div>  python/plugins/cmake_install.cmake:42 (include)</div><div>  python/cmake_install.cmake:144 (include)</div><div>  cmake_install.cmake:63 (include)</div><div><br></div><div>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.</div><div><br></div><div>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?</div><div><br></div><div>Any advice on how to proceed is extremely welcome!</div><div><br></div><div>Thanks in advance</div><div>Asger</div><div><br></div><div>[0] <a href="https://github.com/bitner/mapserverless-layer">https://github.com/bitner/mapserverless-layer</a></div><div>[1] <a href="https://dashbird.io/blog/exploring-lambda-limitations/">https://dashbird.io/blog/exploring-lambda-limitations/</a></div><div>[2] <a href="https://github.com/qgis/QGIS/blob/152a556887fe4c762ef03411a5825d0c120488dd/INSTALL#L123">https://github.com/qgis/QGIS/blob/152a556887fe4c762ef03411a5825d0c120488dd/INSTALL#L123</a></div><div>[3] <a href="https://issues.qgis.org/issues/21382">https://issues.qgis.org/issues/21382</a></div><div>[4] <a href="https://gist.github.com/AsgerPetersen/3b98b02461d745813dda92a10185b22a#file-dockerfile">https://gist.github.com/AsgerPetersen/3b98b02461d745813dda92a10185b22a#file-dockerfile</a></div></div></div>