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

QGIS 2.18 branch 2.18 release 2.18 and over don't compile #26720

Closed
qgib opened this issue Apr 30, 2018 · 11 comments
Closed

QGIS 2.18 branch 2.18 release 2.18 and over don't compile #26720

qgib opened this issue Apr 30, 2018 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Apr 30, 2018

Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 18888
Affected QGIS version: 2.18.19
Redmine category:qgis_server


Hi,
I see the QGS-Server section of QGIS branch 2_18 release 2.19 or 2.18 don't compile at all.
It return this error log:

[ 94%] Building CXX object
src/server/CMakeFiles/qgis_server.dir/qgssoaprequesthandler.cpp.o
[ 94%] Building CXX object
src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o
In file included from
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/src/server/qgsowsserver.cpp:18:0:
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/src/server/qgsowsserver.h:84:40:
error: âQgsFeatureâ does not name a type
     static QString featureGmlId( const QgsFeature* f, const
QgsAttributeList& pkAttributes );
                                        ^~~~~~~~~~
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/src/server/qgsowsserver.cpp:68:9:
error: prototype for âQString QgsOWSServer::featureGmlId(const QgsFeature*,
const QgsAttributeList&)â does not match any in class âQgsOWSServerâ
 QString QgsOWSServer::featureGmlId( const QgsFeature* f, const
QgsAttributeList& pkAttributes )
         ^~~~~~~~~~~~
In file included from
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/src/server/qgsowsserver.cpp:18:0:
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/src/server/qgsowsserver.h:84:20:
error: candidate is: static QString QgsOWSServer::featureGmlId(const int*,
const QgsAttributeList&)
     static QString featureGmlId( const QgsFeature* f, const
QgsAttributeList& pkAttributes );
                    ^~~~~~~~~~~~
src/server/CMakeFiles/qgis_server.dir/build.make:260: recipe for target
'src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o' failed
make[2]: *** [src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o]
Error 1
CMakeFiles/Makefile2:1829: recipe for target
'src/server/CMakeFiles/qgis_server.dir/all' failed
make[1]: *** [src/server/CMakeFiles/qgis_server.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

-----

I'm using libux debian 64 bit stretch.

Instead I have a succesful compile using the code branch 2_18 release 2.15



@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: Jürgen Fischer (@jef-n)


aperi2007 - wrote:

Hi,
I see the QGS-Server section of QGIS branch 2_18 release 2.19 or 2.18 don't compile at all.
It return this error log:

[...]

Compiles fine on stretch here - include a full log please.


  • version was changed from 2.18.18 to 2.18.19

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: aperi2007 - (aperi2007 -)


I try newly.

I download
https://github.com/qgis/QGIS/archive/final-2_18_19.tar.gz

After do these steps:

cd QGIS-final-2_18_19

rm -Rf build-master
mkdir build-master
cd build-master

ccmake \
	-DCMAKE_INSTALL_PREFIX="/usr/local" \
	-DENABLE_TESTS=FALSE \
	-DFCGI_INCLUDE_DIR="/usr/local/include" \
	-DFCGI_LIBRARY="/usr/lib/x86_64-linux-gnu/libfcgi.so" \
	-DMAPSERVER_SKIP_ECW=ON \
	-DGDAL_CONFIG="/usr/local/bin/gdal-config" \
	-DGDAL_INCLUDE_DIR="/usr/local/include" \
	-DGDAL_LIBRARY="/usr/local/lib/libgdal.so" \
	-DGEOS_CONFIG="/usr/local/bin/geos-config" \
	-DGEOS_INCLUDE_DIR="/usr/local/include" \
	-DGEOS_LIBRARY="/usr/local/lib/libgeos_c.so" \
	-DPEDANTIC=ON \
	-DPOSTGRES_CONFIG="/usr/local/pgsql/bin/pg_config" \
	-DPOSTGRES_CONFIG_PREFER_PATH="/bin" \
	-DPOSTGRES_INCLUDE_DIR="/usr/local/pgsql/include" \
	-DPOSTGRES_LIBRARY="/usr/local/pgsql/lib/libpq.so" \
	-DPROJ_INCLUDE_DIR="/usr/local/include" \
	-DPROJ_LIBRARY="/usr/local/lib/libproj.so" \
	-DTXT2TAGS_EXECUTABLE=OFF \
	-DWITH_APIDOC=OFF \
	-DWITH_ASTYLE=OFF \
	-DWITH_BINDINGS=OFF \
	-DWITH_DESKTOP=OFF \
	-DWITH_GLOBE=OFF \
	-DWITH_GRASS=OFF \
	-DWITH_GRASS7=OFF \
	-DWITH_INTERNAL_QEXTSERIALPORT=ON \
	-DWITH_INTERNAL_QWTPOLAR=ON \
	-DWITH_INTERNAL_SPATIALITE=OFF \
	-DWITH_SERVER=ON \
	-DWITH_SERVER_PLUGINS=OFF \
	-DWITH_ORACLE=OFF \
	-DWITH_POSTGRESQL=ON \
	-DWITH_PY_COMPILE=OFF \
	-DWITH_QSPATIALITE=OFF \
	-DWITH_QTMOBILITY=OFF \
	-DWITH_TOUCH=OFF \
	-SERVER_SKIP_ECW=ON \
	-DWITH_TXT2TAGS_PDF=OFF .. 

These are my usual settings used with qgis 2.14 I do some little change for 2.18 and the compile is ok with rel. 2.15
Now retry it with rel. 2.19

cd build-master
make >> compile_log.txt 2>&1

I post also the log .


  • 12660 was configured as compile_log.zip

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: Jürgen Fischer (@jef-n)


Please also include the configuration step (esp. important as you are not using stretch's dependencies)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: aperi2007 - (aperi2007 -)


The configuration are these:

After download the package:

I explode it in the QGIS-final-2_18_19 folder.

After I do:

cd QGIS-final-2_18_19
mkdir build-master
cd build-master

In that folder I call a script with these settings in it:

ccmake
-DCMAKE_INSTALL_PREFIX="/usr/local"
-DENABLE_TESTS=FALSE
-DFCGI_INCLUDE_DIR="/usr/local/include"
-DFCGI_LIBRARY="/usr/lib/x86_64-linux-gnu/libfcgi.so"
-DMAPSERVER_SKIP_ECW=ON
-DGDAL_CONFIG="/usr/local/bin/gdal-config"
-DGDAL_INCLUDE_DIR="/usr/local/include"
-DGDAL_LIBRARY="/usr/local/lib/libgdal.so"
-DGEOS_CONFIG="/usr/local/bin/geos-config"
-DGEOS_INCLUDE_DIR="/usr/local/include"
-DGEOS_LIBRARY="/usr/local/lib/libgeos_c.so"
-DPEDANTIC=ON
-DPOSTGRES_CONFIG="/usr/local/pgsql/bin/pg_config"
-DPOSTGRES_CONFIG_PREFER_PATH="/bin"
-DPOSTGRES_INCLUDE_DIR="/usr/local/pgsql/include"
-DPOSTGRES_LIBRARY="/usr/local/pgsql/lib/libpq.so"
-DPROJ_INCLUDE_DIR="/usr/local/include"
-DPROJ_LIBRARY="/usr/local/lib/libproj.so"
-DTXT2TAGS_EXECUTABLE=OFF
-DWITH_APIDOC=OFF
-DWITH_ASTYLE=OFF
-DWITH_BINDINGS=OFF
-DWITH_DESKTOP=OFF
-DWITH_GLOBE=OFF
-DWITH_GRASS=OFF
-DWITH_GRASS7=OFF
-DWITH_INTERNAL_QEXTSERIALPORT=ON
-DWITH_INTERNAL_QWTPOLAR=ON
-DWITH_INTERNAL_SPATIALITE=OFF
-DWITH_SERVER=ON
-DWITH_SERVER_PLUGINS=OFF
-DWITH_ORACLE=OFF
-DWITH_POSTGRESQL=ON
-DWITH_PY_COMPILE=OFF
-DWITH_QSPATIALITE=OFF
-DWITH_QTMOBILITY=OFF
-DWITH_TOUCH=OFF
-SERVER_SKIP_ECW=ON
-DWITH_TXT2TAGS_PDF=OFF ..

It start and I press the "c" two times.
After the second time I press the "g" to generate and exit from cmake environment.

After I execute the

"make"

And have the error.

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: Jürgen Fischer (@jef-n)


aperi2007 - wrote:

The configuration are these:
After the second time I press the "g" to generate and exit from cmake environment.

run cmake instead of ccmake.

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: aperi2007 - (aperi2007 -)


done.
I attach the log result from cmake.


  • 12661 was configured as log_cmake.zip

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: Jürgen Fischer (@jef-n)


Do you have qgis headers installed in /usr/local/include?

@qgib
Copy link
Contributor Author

qgib commented May 1, 2018

Author Name: aperi2007 - (aperi2007 -)


When and if the compile is completed without error.
I can do the "make install"
After this I have in /usr/local/includeùa subfolder named "qgis" with its includes.

@qgib
Copy link
Contributor Author

qgib commented Oct 18, 2018

Author Name: Paul Blottiere (Paul Blottiere)


I also tried to compile https://github.com/qgis/QGIS/archive/final-2_18_19.tar.gz on Debian Stretch and I didn't have any problems.

@aperi2007, do you still have your issue with the latest 2.18 release (2.18.24)?

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

Author Name: Jürgen Fischer (@jef-n)


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2019

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to wontfix
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Mar 8, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant