[Qgis-user] compiling from source, how to build qgis-mapserver qgis_map_serv.fcgi ?
dear list Im trying to compile qgis from source in order to generate the qgis-mapserver qgis_map_serv.fcgi file. I followed the documentation on http://www.qgis.org/wiki/Installation_Guide and on http://karlinapp.ethz.ch/qgis_wms/documentation/index.html I can build a working qgis both on Linux (ubuntu) and on Windows, but I must be missing something as the .fcgi file is never generated. The Qgis-mapserver documentation say I need the FCGI library but is there some configuration somewhere I need to change to instruct the build to use that library in order to generate the .fcgi file? I know there is a qgis-mapserver debian package available, I installed it and it works fine, but I would really like to be able to build the .fcgi file Thanks a lot in advance Regards Oliver Christen ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] compiling from source, how to build qgis-mapserver qgis_map_serv.fcgi ?
hello Marco thank you very much! it's working now :) best regards Oliver - Original Message - From: "Marco Hugentobler" To: Sent: Thursday, February 10, 2011 4:02 PM Subject: Re: [Qgis-user] compiling from source,how to build qgis-mapserver qgis_map_serv.fcgi ? Hi Oliver You need to enable the compilation of the server in the cmake configuration: cd /build ccmake .. then set WITH_MAPSERVER to ON Regards, Marco Am Donnerstag, 10. Februar 2011, um 15.02:52 schrieb Oliver Christen: dear list Im trying to compile qgis from source in order to generate the qgis-mapserver qgis_map_serv.fcgi file. I followed the documentation on http://www.qgis.org/wiki/Installation_Guide and on http://karlinapp.ethz.ch/qgis_wms/documentation/index.html I can build a working qgis both on Linux (ubuntu) and on Windows, but I must be missing something as the .fcgi file is never generated. The Qgis-mapserver documentation say I need the FCGI library but is there some configuration somewhere I need to change to instruct the build to use that library in order to generate the .fcgi file? I know there is a qgis-mapserver debian package available, I installed it and it works fine, but I would really like to be able to build the .fcgi file Thanks a lot in advance Regards Oliver Christen ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Dr. Marco Hugentobler Sourcepole - Linux & Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] qgis-mapserver on Windows ignore my postgis and shapefile layers
Hi list Im having some teoubles with qgis-mapserver on Windows. In my QGIS test project, I have 1 postgis layer, 2 shapefile layers (one point and one polygon) and 2 external wms layers. I created the two shapefile layers directly inside QGIS. I succeded to have the qgis_mapserv.fcgi.exe working correctly as cgi under Apaches, meaning I sucessfuly get an answer to a GetCapabilities, but the GetCapabilities result doesnt contains any of the postgis or shapefile based layers within my qgis project. I only see the 2 external wms layers in the list. I get this behaviour with both the qgis_mapserv.fcgi.exe packaged with the QGIS 1.6.0 and the one I compiled using the QGIS 1.7.0 (trunk) sources. The shapefiles are currently located at the same place as the QGIS project in my apache/cgi-bin/ folder. If I open the project in QGIS, the postgis and shapefiles layers are displayed ok, without any path error message. (The project is the same I used on Linux, but I had to correct the path to the shapefiles as they seems to be stored as absolut path in the QGIS project and obviously the apache cgi-bin folder is not at the same place on both OS) Any idea why the postgis and shapefile layers are ignored? thanks in advance best regards Oliver ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] qgis-mapserver on Windows ignore my postgis andshapefile layers
Hello Jürgen Thank you for your answer I presume the dll needed are the ones available in the apps\qgis\plugins folder in the Qgis installation (postgresprovider.dll and ogrprovider.dll) I tried to add that folder to my PATH environement variable but it didnt change anything. I also ran qgis_mapserv.fcgi.exe into Dependency Walker to see if there was some dll not found, but I dont see anything wrong beside the fact none of the dll in the plugins folder are even wanted at all. the only qgis dll loaded are: QGIS_CORE.dll and QGIS_ANALYSIS.dll, there are also a bunch of osgeo dll loaded from C:\OSGeo4W\bin (I wont list them here) maybe the dll are dynamically loaded when the correct parameter are passed to the cgi? sadly I didnt found any way to simulate the passing of the SERVICE=WMS&REQUEST=GetCapabilities query string when accessing the qgis_mapserv.fcgi.exe directly in commandline. I tried to copy all the dll from apps\qgis\plugins into the C:\OSGeo4W\bin folder, and restart apache, it didnt solve the problem either. Did anyone succeded to make qgis-mapserver work correctly on windows ? regards Oliver - Original Message - From: "Jürgen E. Fischer" To: Sent: Friday, February 11, 2011 9:16 PM Subject: Re: [Qgis-user] qgis-mapserver on Windows ignore my postgis andshapefile layers Hi Oliver, On Fri, 11. Feb 2011 at 15:38:10 +0100, Oliver Christen wrote: (The project is the same I used on Linux, but I had to correct the path to the shapefiles as they seems to be stored as absolut path in the QGIS project and obviously the apache cgi-bin folder is not at the same place on both OS) Any idea why the postgis and shapefile layers are ignored? Is suspect that mapserver doesn't find some DLLs an therefore cannot load the postgres and OGR provider. Unfortunately I think with the current apache in OSGeo4W one cannot SetEnv PATH for CGIs (this could be [1]) and so you'd have to change the PATH for the service is running in. IIRC running apache manually from a cmd with proper PATH did help. I didn't find time to debug that further, but now that the Qt update is done... Jürgen [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=43906 -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20 Dipl.-Inf. (FH) Rheinstraße 13Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] qgis-mapserver on Windows ignore my postgis and shapefile layers
sadely no I gave up, as it was mostly for testing only and I had no more time to spend on this problem. the setup is mostly the same between linux and windows but for the fact you must use cgi and not fastcgi as indicated in http://karlinapp.ethz.ch/qgis_wms/configuration/index.html also here is my apache conf, though it may NOT be ok AllowOverride None Options +ExecCGI Order allow,deny Allow from all SetEnv LD_LIBRARY_PATH "C:/prog/dev/gis/Quantum GIS 1.6/apps/qgis/plugins" regards Oliver Christen Camptocamp SA PSE-A, Parc Scientifique EPFL 1015 Lausanne, Switzerland +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) oliver.chris...@camptocamp.com www.camptocamp.com - Original Message - From: "Giovanni Manghi" To: "Oliver Christen" Cc: ; "Nelson" ; Sent: Friday, April 29, 2011 9:59 AM Subject: Re: [Qgis-user] qgis-mapserver on Windows ignore my postgis and shapefile layers Hi, Im having some teoubles with qgis-mapserver on Windows. Did you managed to solve this problems in qgis-mapaserver under Windows? By the way, there is some guide about installing/making it work under Windows? Thanks in advance -- Giovanni -- ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user