Opened 8 years ago

Closed 8 years ago

#53231 closed defect (fixed)

QGIS @2_18_2_2: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')

Reported by: gcarlino (Giuseppe Carlino) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc: basmac, aaschwanden (Andy Aschwanden), michaelld (Michael Dickens), ForTozs, akhenakh (Fabrice Aneche), stromnov (Andrey Stromnov), cmutel (Chris Mutel), julgp (Julio Garcia), fgassert (Francis Gassert), gcarlino (Giuseppe Carlino)
Port: QGIS

Description

Hello, I am using MacPorts 2.3.5 on OSX 10.12.2 and I am not able to build QGIS anymore:

--->  Computing dependencies for QGIS
--->  Fetching distfiles for QGIS
--->  Verifying checksums for QGIS
--->  Extracting QGIS
--->  Applying patches to QGIS
--->  Configuring QGIS
--->  Building QGIS
Error: org.macports.build for port QGIS returned: command execution failed
Please see the log file for port QGIS for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port QGIS failed

It happens also with +grass variant.

You can find the full log attached. Any help is welcome! Giuseppe

Attachments (12)

main.log.bz2 (90.3 KB) - added by gcarlino (Giuseppe Carlino) 8 years ago.
main-QGIS+qt5.log (239.0 KB) - added by EJFielding (Eric Fielding) 8 years ago.
main log with +qt5
QGIS_head.tgz (5.7 KB) - added by Veence (Vincent) 8 years ago.
Portfiles for compiling QGIS HEAD
stacktrace.txt (1.8 KB) - added by edhackett 8 years ago.
SagaUtils.py.diff (636 bytes) - added by edhackett 8 years ago.
main.log (595.0 KB) - added by aaschwanden (Andy Aschwanden) 8 years ago.
main.log for fresh MacPorts on Sierra
patch-cmake_FindQScintilla.cmake.diff (485 bytes) - added by michaelld (Michael Dickens) 8 years ago.
qgis.tgz (2.9 KB) - added by Veence (Vincent) 8 years ago.
Latest HEAD portfile
qgis_Portfile (6.8 KB) - added by michaelld (Michael Dickens) 8 years ago.
main.2.log (257.2 KB) - added by aaschwanden (Andy Aschwanden) 8 years ago.
Portfile (8.9 KB) - added by Veence (Vincent) 8 years ago.
Portfile to build QGIS with QT5 and Python3
Portfile.2 (9.3 KB) - added by Veence (Vincent) 8 years ago.
Portfile working for QT4/Py2.7 or QT5/Py3.6

Download all attachments as: .zip

Change History (90)

Changed 8 years ago by gcarlino (Giuseppe Carlino)

Attachment: main.log.bz2 added

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: Veence removed
Owner: set to Veence
Status: newassigned

comment:2 Changed 8 years ago by EJFielding (Eric Fielding)

My attempt on MacOS 10.10.5 also failed (QGIS-2_18_2_2+postgresql94+qt4.darwin_14.x86_64). Looks like my failure is due to some change in "sip" as there are several errors mentioning sip modules, e.g.:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sip_corepart2.cpp:130799:27: error: call to implicitly-deleted copy constructor of '::QgsVectorLayerFeatureIterator'
:info:build             sipCpp = new  ::QgsVectorLayerFeatureIterator(*a0);
:info:build                           ^                               ~~~

comment:3 Changed 8 years ago by EJFielding (Eric Fielding)

I also tried to build on MacOS 10.11.6, but I get the same errors. Can I step back to an older version of "py27-sip" or will that cause problems for other programs?

comment:4 Changed 8 years ago by EJFielding (Eric Fielding)

I tried an earlier version of py27-sip @4.18.1_0, but that caused many problems with the QGIS build. Using the present py27-sip @4.19_0, here are more of the errors with sip components:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sip_corepart1.cpp:86260:9: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')
:info:build     int dataType(int) const;
:info:build     ~~~ ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/../src/core/raster/qgsrasterprojector.h:101:20: note: overridden virtual function is here
:info:build     QGis::DataType dataType( int bandNo ) const override;
:info:build     ~~~~~~~~~~~~~~ ^
:info:build Loaded 182/183 from /opt/local/share/gdal/vertcs.csv
:info:build Loaded 153/154 from /opt/local/share/gdal/compdcs.csv
:info:build Loaded 148/149 from /opt/local/share/gdal/geoccs.csv
:info:build Loading epsg.wkt
:info:build Loading esri_extra.wkt
:info:build 6063 WKTs loaded
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
:info:build make[2]: Nothing to be done for `src/gui/CMakeFiles/qgis_gui.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
:info:build [ 59%] Built target qgis_gui
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/auth/basic/CMakeFiles/basicauthmethod.dir/build.make src/auth/basic/CMakeFiles/basicauthmethod.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/auth/identcert/CMakeFiles/identcertauthmethod.dir/build.make src/auth/identcert/CMakeFiles/identcertauthmethod.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/auth/pkipaths/CMakeFiles/pkipathsauthmethod.dir/build.make src/auth/pkipaths/CMakeFiles/pkipathsauthmethod.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/auth/pkipkcs12/CMakeFiles/pkcs12authmethod.dir/build.make src/auth/pkipkcs12/CMakeFiles/pkcs12authmethod.dir/depend
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sip_corepart2.cpp:130799:27: error: call to implicitly-deleted copy constructor of '::QgsVectorLayerFeatureIterator'
:info:build             sipCpp = new  ::QgsVectorLayerFeatureIterator(*a0);
:info:build                           ^                               ~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/../src/core/qgsvectorlayerfeatureiterator.h:196:42: note: copy constructor of 'QgsVectorLayerFeatureIterator' is implicitly deleted because field 'mExpressionContext' has an inaccessible copy constructor
:info:build     QScopedPointer<QgsExpressionContext> mExpressionContext;
:info:build                                          ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                  ^

comment:5 Changed 8 years ago by EJFielding (Eric Fielding)

I ran the usual "port upgrade outdated" with "not QGIS" to upgrade other ports, and the check at the end found some broken files:

--->  Scanning binaries for linking errors
--->  Found 4 broken file(s), matching files to ports
--->  Found 4 broken port(s), determining rebuild order
--->  Rebuilding in order
     gspell @1.2.2
     gvfs @1.30.3 +python34
     py27-spatialite @3.0.1
     py27-matplotlib-basemap @1.0.7

The system then re-activated py27-spatialite @3.0.1_3 even though QGIS depends on it.

Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating py27-spatialite @3.0.1_3
--->  Unable to deactivate py27-spatialite @3.0.1_3, the following ports depend on it:
--->  	QGIS @2_18_2_0+postgresql95+qt4
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning py27-spatialite
--->  Uninstalling py27-spatialite @3.0.1_3
--->  Cleaning py27-spatialite
--->  Computing dependencies for py27-spatialite
--->  Installing py27-spatialite @3.0.1_3
--->  Activating py27-spatialite @3.0.1_3
--->  Cleaning py27-spatialite

I did a port clean QGIS and tried the build again, but it still fails with very similar errors.

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                     ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                     ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                     ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                     ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                     ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
:info:build   PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
:info:build                   ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20150:37: note: expanded from macro 'sipException_QgsCsException'
:info:build #define sipException_QgsCsException sipExportedExceptions__core[0]
:info:build                                     ^

comment:6 Changed 8 years ago by EJFielding (Eric Fielding)

I also tried building with +qt5 instead of +qt4 on my 10.11.6 machine, but it seems the QGIS configuration is missing something for qt5:

:info:configure -- The C compiler identification is AppleClang 8.0.0.8000042
:info:configure -- The CXX compiler identification is AppleClang 8.0.0.8000042
:info:configure -- Check for working C compiler: /usr/bin/clang
:info:configure -- Check for working C compiler: /usr/bin/clang -- works
:info:configure -- Detecting C compiler ABI info
:info:configure -- Detecting C compiler ABI info - done
:info:configure -- Detecting C compile features
:info:configure -- Detecting C compile features - done
:info:configure -- Check for working CXX compiler: /usr/bin/clang++
:info:configure -- Check for working CXX compiler: /usr/bin/clang++ -- works
:info:configure -- Detecting CXX compiler ABI info
:info:configure -- Detecting CXX compiler ABI info - done
:info:configure -- Detecting CXX compile features
:info:configure -- Detecting CXX compile features - done
:info:configure -- QGIS version: 2.18.2 Las Palmas (21802)
:info:configure -- Looking for openpty
:info:configure -- Looking for openpty - found
:info:configure -- Found Proj: /opt/local/lib/libproj.dylib
:info:configure -- Found GEOS: /opt/local/lib/libgeos_c.dylib (3.6.1)
:info:configure -- Found GDAL: /opt/local/lib/libgdal.dylib (2.1.2)
:info:configure -- Found Expat: /opt/local/lib/libexpat.dylib
:info:configure -- Found Spatialindex: /opt/local/lib/libspatialindex.dylib
:info:configure -- Found Sqlite3: /opt/local/lib/libsqlite3.dylib
:info:configure -- Found PostgreSQL: /opt/local/lib/postgresql95/libpq.dylib
:info:configure -- Found SpatiaLite: /opt/local/lib/libspatialite.dylib
:info:configure -- Looking for gaiaDropTable in /opt/local/lib/libspatialite.dylib
:info:configure -- Looking for gaiaDropTable in /opt/local/lib/libspatialite.dylib - found
:info:configure -- Looking for gaiaStatisticsInvalidate in /opt/local/lib/libspatialite.dylib
:info:configure -- Looking for gaiaStatisticsInvalidate in /opt/local/lib/libspatialite.dylib - found
:info:configure -- Looking for spatialite_init_ex in /opt/local/lib/libspatialite.dylib
:info:configure -- Looking for spatialite_init_ex in /opt/local/lib/libspatialite.dylib - found
:info:configure -- Qt WebKit support enabled
:info:configure CMake Error at CMakeLists.txt:263 (FIND_PACKAGE):
:info:configure   By not providing "FindQt5WebKit.cmake" in CMAKE_MODULE_PATH this project
:info:configure   has asked CMake to find a package configuration file provided by
:info:configure   "Qt5WebKit", but CMake did not find one.
:info:configure 
:info:configure   Could not find a package configuration file provided by "Qt5WebKit" with
:info:configure   any of the following names:
:info:configure 
:info:configure     Qt5WebKitConfig.cmake
:info:configure     qt5webkit-config.cmake
:info:configure 
:info:configure   Add the installation prefix of "Qt5WebKit" to CMAKE_PREFIX_PATH or set
:info:configure   "Qt5WebKit_DIR" to a directory containing one of the above files.  If
:info:configure   "Qt5WebKit" provides a separate development package or SDK, be sure it has
:info:configure   been installed.

Changed 8 years ago by EJFielding (Eric Fielding)

Attachment: main-QGIS+qt5.log added

main log with +qt5

comment:7 Changed 8 years ago by basmac

Cc: basmac added

comment:8 Changed 8 years ago by aaschwanden (Andy Aschwanden)

Cc: aaschwanden added

comment:9 Changed 8 years ago by michaelld (Michael Dickens)

Cc: michaelld added

comment:10 Changed 8 years ago by michaelld (Michael Dickens)

I see these same issues. Makes debugging tickets like #53273 difficult ... Updating SIP seems like it's causing sporadic headaches ... fun times!

comment:11 Changed 8 years ago by Veence (Vincent)

Sorry to chime in quite late. Yes, the recent SIP update broke QGis, saw that on my own yesterday. I’m not a SIP specialist, so I suppose there’s not really much I can do barring forwarding this problem upstream to get a patch.

comment:13 Changed 8 years ago by Veence (Vincent)

Still no news from upstream, BTW

comment:14 Changed 8 years ago by ForTozs

Cc: ForTozs added

comment:15 Changed 8 years ago by akhenakh (Fabrice Aneche)

Cc: akhenakh added

comment:16 Changed 8 years ago by akhenakh (Fabrice Aneche)

upstream updated in master https://hub.qgis.org/issues/16071

comment:17 Changed 8 years ago by Veence (Vincent)

Oui, j'ai vu, merci.

I’m currently working on it.

HEADS-UP: the master branch uses Qt5 and Python 3. So if this work, committing it will imply a major overhaul.

comment:18 Changed 8 years ago by stromnov (Andrey Stromnov)

Cc: stromnov added

comment:19 Changed 8 years ago by Veence (Vincent)

I‘m going to have a crack at compiling HEAD tomorrow hoping upstream has made headway, but do not count on it too much :(

comment:20 Changed 8 years ago by Veence (Vincent)

Still nothing new. HEAD fails with a missing .h file. There’s hardly anything I can do.

comment:21 Changed 8 years ago by michaelld (Michael Dickens)

Would you post either a diff or a tarball of where you're at? Others might have a try at this, too.

comment:22 Changed 8 years ago by Veence (Vincent)

Oh, yeah, sorry. Hold on.

Changed 8 years ago by Veence (Vincent)

Attachment: QGIS_head.tgz added

Portfiles for compiling QGIS HEAD

comment:23 Changed 8 years ago by Veence (Vincent)

I’ve attached the new version of the Portfile, along with some tinkering I had to do with QWT. It’s raw, and I apologise about that. I had planned to sort everything out once I had a clean build, which did not happen yet. Please by all means give a shot at it, and report any problem here. I’m sorry I didn’t listen much during the previous days, I was snowed under somewhat.

comment:24 Changed 8 years ago by akhenakh (Fabrice Aneche)

Not sure if it can help, but the folks maintaining QGIS for Arch suffered the same compilation issues, but recently a 2.18.3 ports landed and compile against qt4.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qgis

comment:26 Changed 8 years ago by cmutel (Chris Mutel)

Cc: cmutel added

comment:27 Changed 8 years ago by cmutel (Chris Mutel)

Created pull request to apply this patch: https://github.com/macports/macports-ports/pull/318. Compiles cleanly on my machine (10.11.6).

comment:28 Changed 8 years ago by akhenakh (Fabrice Aneche)

Hey Chris tested your pull and it works. Thanks. (10.12.3)

Last edited 8 years ago by akhenakh (Fabrice Aneche) (previous) (diff)

comment:29 in reply to:  28 Changed 8 years ago by cmutel (Chris Mutel)

Replying to akhenakh:

Hey Chris tested your pull and it works. Thanks. (10.12.3)

Actually, you get most of the credit - I just turned your suggestion into a patch and a delta to the Portfile.

comment:30 Changed 8 years ago by akhenakh (Fabrice Aneche)

Team work!

comment:31 Changed 8 years ago by basmac

QGIS on Sierra still fails for me after an outdated update Feb 16.
end of log file

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
[ 54%] Built target qgis_gui
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build" && /usr/bin/make -j8 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build QGIS: command execution failed
DEBUG: Error code: CHILDSTATUS 63185 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$nice $fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed
[mac27:/Volumes/User/bmcinnes] root#
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:32 Changed 8 years ago by plablo09 (pablo lopez)

I'm seeing the exact same error, also on Sierra

comment:33 Changed 8 years ago by edhackett

Chris, tested your pull, works for me too. However, on startup, I got an error "Couldn't load plugin processing due to an error when calling its classFactory() method" and caused the Processing Plugin not to load. Following the stack trace, I replaced "SagaUtils.py" with another copy from a different machine and upon restart the Processing Plugin loaded successfully. I'll upload a copy of the stack trace and a diff file for SagaUtils.py

Changed 8 years ago by edhackett

Attachment: stacktrace.txt added

Changed 8 years ago by edhackett

Attachment: SagaUtils.py.diff added

comment:34 Changed 8 years ago by basmac

After port upgrade outdated (Feb 21) and port clean, on Sierra QGIS still fails to install.

End of debug log below -

/usr/bin/clang++   -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Qunused-arguments -F/Library/Frameworks CMakeFiles/qgis_composerobject.dir/testqgscomposerobject.cpp.o CMakeFiles/qgis_composerobject.dir/qgis_composerobject_automoc.cpp.o  -o ../../../output/bin/qgis_composerobject  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/core  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/gui -Wl,-rpath,/opt/local/lib  /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtTest.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib ../../../output/lib/qgis_core.framework/Versions/2.18/qgis_core -framework CoreFoundation -framework IOKit /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtGui.dylib /opt/local/libexec/qt4/lib/libQtNetwork.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtWebKit.dylib /opt/local/libexec/qt4/lib/libQtSql.dylib /opt/local/libexec/qt4/lib/libqca.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib /opt/local/lib/libspatialindex.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libsqlite3.dylib /opt/local/lib/libspatialite.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sip_corepart1.cpp:86365:9: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')
    int dataType(int) const;
    ~~~ ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/../src/core/raster/qgsrasterprojector.h:101:20: note: overridden virtual function is here
    QGis::DataType dataType( int bandNo ) const override;
    ~~~~~~~~~~~~~~ ^
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
[ 33%] Built target qgis_composerobject
[ 33%] Building CXX object tests/src/core/CMakeFiles/qgis_maprotationtest.dir/qgis_maprotationtest_automoc.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /usr/bin/clang++   -DENABLE_TESTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -isystem /opt/local/libexec/qt4/include -isystem /opt/local/libexec/qt4/include/QtSvg -isystem /opt/local/libexec/qt4/include/QtWebKit -isystem /opt/local/libexec/qt4/include/QtGui -isystem /opt/local/libexec/qt4/include/QtXml -isystem /opt/local/libexec/qt4/include/QtSql -isystem /opt/local/libexec/qt4/include/QtNetwork -isystem /opt/local/libexec/qt4/include/QtCore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/auth -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/composer -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/geometry -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/effects -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/layertree -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/raster -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/symbology-ng -isystem /opt/local/include -isystem /opt/local/libexec/qt4/include/QtCrypto  -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -fvisibility=hidden   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DTEST_DATA_DIR="\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/testdata\"" -DINSTALL_PREFIX="\"/Applications/MacPorts/QGIS.app/Contents/MacOS\"" -o CMakeFiles/qgis_maprotationtest.dir/qgis_maprotationtest_automoc.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/qgis_maprotationtest_automoc.cpp
[ 33%] Building CXX object tests/src/core/CMakeFiles/qgis_linefillsymboltest.dir/qgis_linefillsymboltest_automoc.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /usr/bin/clang++   -DENABLE_TESTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -isystem /opt/local/libexec/qt4/include -isystem /opt/local/libexec/qt4/include/QtSvg -isystem /opt/local/libexec/qt4/include/QtWebKit -isystem /opt/local/libexec/qt4/include/QtGui -isystem /opt/local/libexec/qt4/include/QtXml -isystem /opt/local/libexec/qt4/include/QtSql -isystem /opt/local/libexec/qt4/include/QtNetwork -isystem /opt/local/libexec/qt4/include/QtCore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/auth -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/composer -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/geometry -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/effects -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/layertree -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/raster -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/symbology-ng -isystem /opt/local/include -isystem /opt/local/libexec/qt4/include/QtCrypto  -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -fvisibility=hidden   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DTEST_DATA_DIR="\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/testdata\"" -DINSTALL_PREFIX="\"/Applications/MacPorts/QGIS.app/Contents/MacOS\"" -o CMakeFiles/qgis_linefillsymboltest.dir/qgis_linefillsymboltest_automoc.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/qgis_linefillsymboltest_automoc.cpp
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/build.make tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/depend
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/src/core /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/gui/CMakeFiles/qgis_gui.dir/build.make src/gui/CMakeFiles/qgis_gui.dir/build
Dependee "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/DependInfo.cmake" is newer than depender "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/depend.internal".
Dependee "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/depend.internal".
Scanning dependencies of target qgis_svgmarkertest
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/build.make tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/build
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
[ 33%] Building CXX object tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/testqgssvgmarker.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /usr/bin/clang++   -DENABLE_TESTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -isystem /opt/local/libexec/qt4/include -isystem /opt/local/libexec/qt4/include/QtSvg -isystem /opt/local/libexec/qt4/include/QtWebKit -isystem /opt/local/libexec/qt4/include/QtGui -isystem /opt/local/libexec/qt4/include/QtXml -isystem /opt/local/libexec/qt4/include/QtSql -isystem /opt/local/libexec/qt4/include/QtNetwork -isystem /opt/local/libexec/qt4/include/QtCore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/auth -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/composer -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/geometry -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/effects -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/layertree -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/raster -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/symbology-ng -isystem /opt/local/include -isystem /opt/local/libexec/qt4/include/QtCrypto  -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -fvisibility=hidden   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DTEST_DATA_DIR="\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/testdata\"" -DINSTALL_PREFIX="\"/Applications/MacPorts/QGIS.app/Contents/MacOS\"" -o CMakeFiles/qgis_svgmarkertest.dir/testqgssvgmarker.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/src/core/testqgssvgmarker.cpp
EPSG 6966: not imported
EPSG 7082: not imported
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sip_corepart2.cpp:130711:114: error: call to implicitly-deleted copy constructor of '::QgsVectorLayerFeatureIterator'
sipQgsVectorLayerFeatureIterator::sipQgsVectorLayerFeatureIterator(const  ::QgsVectorLayerFeatureIterator& a0):  ::QgsVectorLayerFeatureIterator(a0), sipPySelf(0)
                                                                                                                 ^                               ~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/../src/core/qgsvectorlayerfeatureiterator.h:196:42: note: copy constructor of 'QgsVectorLayerFeatureIterator' is implicitly deleted because field 'mExpressionContext' has an inaccessible copy constructor
    QScopedPointer<QgsExpressionContext> mExpressionContext;
                                         ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
  PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20151:37: note: expanded from macro 'sipException_QgsCsException'
#define sipException_QgsCsException sipExportedExceptions__core[0]
                                    ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
  PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20151:37: note: expanded from macro 'sipException_QgsCsException'
#define sipException_QgsCsException sipExportedExceptions__core[0]
                                    ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
  PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20151:37: note: expanded from macro 'sipException_QgsCsException'
#define sipException_QgsCsException sipExportedExceptions__core[0]
                                    ^
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
make[2]: *** No rule to make target `/opt/local/libexec/qt4/lib/libqscintilla2.dylib', needed by `output/lib/qgis_gui.framework/Versions/2.18/qgis_gui'.  Stop.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
  PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20151:37: note: expanded from macro 'sipException_QgsCsException'
#define sipException_QgsCsException sipExportedExceptions__core[0]
                                    ^
make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 33%] Building CXX object tests/src/core/CMakeFiles/qgis_svgmarkertest.dir/qgis_svgmarkertest_automoc.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /usr/bin/clang++   -DENABLE_TESTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -isystem /opt/local/libexec/qt4/include -isystem /opt/local/libexec/qt4/include/QtSvg -isystem /opt/local/libexec/qt4/include/QtWebKit -isystem /opt/local/libexec/qt4/include/QtGui -isystem /opt/local/libexec/qt4/include/QtXml -isystem /opt/local/libexec/qt4/include/QtSql -isystem /opt/local/libexec/qt4/include/QtNetwork -isystem /opt/local/libexec/qt4/include/QtCore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/auth -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/composer -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/geometry -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/effects -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/layertree -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/raster -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/core/symbology-ng -isystem /opt/local/include -isystem /opt/local/libexec/qt4/include/QtCrypto  -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -fvisibility=hidden   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DTEST_DATA_DIR="\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/tests/testdata\"" -DINSTALL_PREFIX="\"/Applications/MacPorts/QGIS.app/Contents/MacOS\"" -o CMakeFiles/qgis_svgmarkertest.dir/qgis_svgmarkertest_automoc.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core/qgis_svgmarkertest_automoc.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
  PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20151:37: note: expanded from macro 'sipException_QgsCsException'
#define sipException_QgsCsException sipExportedExceptions__core[0]
                                    ^
Loaded 4631/4709 from /opt/local/share/gdal/pcs.csv
Loaded 182/183 from /opt/local/share/gdal/vertcs.csv
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/python/core/qgsexception.sip:8:19: error: use of undeclared identifier 'sipExportedExceptions__core'
  PyErr_SetString(sipException_QgsCsException, sipExceptionRef.what().toUtf8().constData() );
                  ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/core/sipAPI_core.h:20151:37: note: expanded from macro 'sipException_QgsCsException'
#define sipException_QgsCsException sipExportedExceptions__core[0]
                                    ^
Loaded 153/154 from /opt/local/share/gdal/compdcs.csv
Loaded 148/149 from /opt/local/share/gdal/geoccs.csv
Loading epsg.wkt
Loading esri_extra.wkt
6063 WKTs loaded
[ 33%] Linking CXX executable ../../../output/bin/qgis_maprotationtest
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/qgis_maprotationtest.dir/link.txt --verbose=ON
/usr/bin/clang++   -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Qunused-arguments -F/Library/Frameworks CMakeFiles/qgis_maprotationtest.dir/testqgsmaprotation.cpp.o CMakeFiles/qgis_maprotationtest.dir/qgis_maprotationtest_automoc.cpp.o  -o ../../../output/bin/qgis_maprotationtest  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/core  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/gui -Wl,-rpath,/opt/local/lib  /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtTest.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib ../../../output/lib/qgis_core.framework/Versions/2.18/qgis_core -framework CoreFoundation -framework IOKit /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtGui.dylib /opt/local/libexec/qt4/lib/libQtNetwork.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtWebKit.dylib /opt/local/libexec/qt4/lib/libQtSql.dylib /opt/local/libexec/qt4/lib/libqca.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib /opt/local/lib/libspatialindex.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libsqlite3.dylib /opt/local/lib/libspatialite.dylib
[ 33%] Linking CXX executable ../../../output/bin/qgis_linefillsymboltest
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/qgis_linefillsymboltest.dir/link.txt --verbose=ON
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
/usr/bin/clang++   -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Qunused-arguments -F/Library/Frameworks CMakeFiles/qgis_linefillsymboltest.dir/testqgslinefillsymbol.cpp.o CMakeFiles/qgis_linefillsymboltest.dir/qgis_linefillsymboltest_automoc.cpp.o  -o ../../../output/bin/qgis_linefillsymboltest  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/core  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/gui -Wl,-rpath,/opt/local/lib  /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtTest.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib ../../../output/lib/qgis_core.framework/Versions/2.18/qgis_core -framework CoreFoundation -framework IOKit /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtGui.dylib /opt/local/libexec/qt4/lib/libQtNetwork.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtWebKit.dylib /opt/local/libexec/qt4/lib/libQtSql.dylib /opt/local/libexec/qt4/lib/libqca.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib /opt/local/lib/libspatialindex.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libsqlite3.dylib /opt/local/lib/libspatialite.dylib
[ 33%] Built target qgis_maprotationtest
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
[ 33%] Built target qgis_linefillsymboltest
6 errors generated.
make[2]: *** [python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart3.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 33%] Linking CXX executable ../../../output/bin/qgis_svgmarkertest
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/tests/src/core && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/qgis_svgmarkertest.dir/link.txt --verbose=ON
/usr/bin/clang++   -pipe -Os -stdlib=libc++ -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Qunused-arguments -DNDEBUG -arch x86_64 -mmacosx-version-min=10.12 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Qunused-arguments -F/Library/Frameworks CMakeFiles/qgis_svgmarkertest.dir/testqgssvgmarker.cpp.o CMakeFiles/qgis_svgmarkertest.dir/qgis_svgmarkertest_automoc.cpp.o  -o ../../../output/bin/qgis_svgmarkertest  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/core  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/src/gui -Wl,-rpath,/opt/local/lib  /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtTest.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib ../../../output/lib/qgis_core.framework/Versions/2.18/qgis_core -framework CoreFoundation -framework IOKit /opt/local/libexec/qt4/lib/libQtXml.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib /opt/local/libexec/qt4/lib/libQtGui.dylib /opt/local/libexec/qt4/lib/libQtNetwork.dylib /opt/local/libexec/qt4/lib/libQtSvg.dylib /opt/local/libexec/qt4/lib/libQtWebKit.dylib /opt/local/libexec/qt4/lib/libQtSql.dylib /opt/local/libexec/qt4/lib/libqca.dylib /opt/local/lib/libproj.dylib /opt/local/lib/libgeos_c.dylib /opt/local/lib/libgdal.dylib /opt/local/lib/libspatialindex.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libsqlite3.dylib /opt/local/lib/libspatialite.dylib
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
[ 33%] Built target qgis_svgmarkertest
CRS update (inserted:0 updated:0 deleted:0 errors:0)
No CRS updates were necessary.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
[ 33%] Built target synccrsdb
1 error generated.
make[2]: *** [python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart1.cpp.o] Error 1
1 error generated.
make[2]: *** [python/CMakeFiles/python_module_qgis__core.dir/core/sip_corepart2.cpp.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
make[1]: *** [python/CMakeFiles/python_module_qgis__core.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build" && /usr/bin/make -j8 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build QGIS: command execution failed
DEBUG: Error code: CHILDSTATUS 52744 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$nice $fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed
[mac27:/Volumes/User/bmcinnes] root#
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:35 Changed 8 years ago by aaschwanden (Andy Aschwanden)

On a new Macbook Pro with Sierra and a clean install of MacPorts, I get that far:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QSCINTILLA_LIBRARY
    linked by target "qgis_gui" in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_3/src/gui

-- Configuring incomplete, errors occurred!

(Note: same issue with the default 2.18.2_2, I just tried to update to see if the error goes away)

Qscintilla is installed:

port installed qscintilla
The following ports are currently installed:
  qscintilla @2.10_0 (active)

Changed 8 years ago by aaschwanden (Andy Aschwanden)

Attachment: main.log added

main.log for fresh MacPorts on Sierra

comment:36 Changed 8 years ago by michaelld (Michael Dickens)

qscintilla @2.10_0 changed the library install name to match that for linux installs. I'm looking into this.

comment:37 Changed 8 years ago by michaelld (Michael Dickens)

I'm attaching a patch to fix the Qsci cmake issue. QGIS still doesn't build for me, even with all of the patches attached or noted here.

Changed 8 years ago by michaelld (Michael Dickens)

comment:38 Changed 8 years ago by aaschwanden (Andy Aschwanden)

Thanks for the qscintilla patch.

comment:39 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: julgp added
Summary: QGIS @2_18_2_2 build failureQGIS @2_18_2_2: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType')

Has duplicate #53373.

comment:40 in reply to:  37 Changed 8 years ago by SiggyF

Replying to michaelld:

I'm attaching a patch to fix the Qsci cmake issue. QGIS still doesn't build for me, even with all of the patches attached or noted here.

This patch is also relevant for #53668. This same pattern should also be used for the qt5 version which is now called libqscintilla2_qt5.dylib.

comment:41 Changed 8 years ago by fgassert (Francis Gassert)

With the patches supplied here by Fabrice and Michael, I am able to get the build farther, but am still hitting an error with sip on Sierra 10.12.3.

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/gui/sip_guipart3.cpp:5968:7: 
error: deleted function '~sipQgsFileDownloader' cannot override a non-deleted function
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/python/gui/sip_guipart3.cpp:5968:30: 
error: base class '::QgsFileDownloader' has private destructor

comment:42 Changed 8 years ago by fgassert (Francis Gassert)

Cc: fgassert added

comment:43 Changed 8 years ago by Veence (Vincent)

So, I've that PORTFILE that pulls from HEAD and compiles 2.99 fine EXCEPT for a missing qgis_python.h file. Is anyone conversant with CMAKE to help me find the bug?

comment:44 in reply to:  43 Changed 8 years ago by michaelld (Michael Dickens)

Replying to Veence:

So, I've that PORTFILE that pulls from HEAD and compiles 2.99 fine EXCEPT for a missing qgis_python.h file. Is anyone conversant with CMAKE to help me find the bug?

I do a lot of CMake & maybe can help out. Can you post your Portfile or a "git diff" of the port or a tarball of the port?

comment:45 Changed 8 years ago by Veence (Vincent)

Thanks a bunch! Will do that in a short while. Hold on.

comment:46 Changed 8 years ago by Veence (Vincent)

Ok, sorry. Can you get the Portfile I posted a while ago and try it? What outwits me is how the "qgis_python.h" file is generated. I see it in a few Cmake text files, but not in a way that would indicate a creation. I’m a bit baffled/flummoxed/nonplussed (pick the relevant one).

Thanks a bunch

comment:47 Changed 8 years ago by michaelld (Michael Dickens)

You mean the tarball "QGIS_head.tgz"?

comment:48 in reply to:  47 Changed 8 years ago by Veence (Vincent)

Status: assignedaccepted

Replying to michaelld:

You mean the tarball "QGIS_head.tgz"?

Yup. You can substitute that one for your regular Portfile and see what happens. But no wait. I'm going to upload a fresh one with the correct Qscintilla library. Hold on.

Changed 8 years ago by Veence (Vincent)

Attachment: qgis.tgz added

Latest HEAD portfile

comment:49 Changed 8 years ago by Veence (Vincent)

Done

comment:50 Changed 8 years ago by michaelld (Michael Dickens)

OK; thx. I'll try to take a look over the weekend.

Last edited 8 years ago by michaelld (Michael Dickens) (previous) (diff)

comment:51 Changed 8 years ago by Veence (Vincent)

Thanks to you! :)

comment:52 Changed 8 years ago by michaelld (Michael Dickens)

After some work on your Portfile, I can get the recently released 2.18.5 to build. I can't get the current GIT master head to build, with the same issue as you encountered (no file "qgis_python.h"). I'm really not sure why you included the cmake and GitHub PortGroups without really using them, so I reenabled using them to simplify the Portfile. I'll look into the missing file situation a bit further before porting my updates, just in case it's an easy solution.

comment:53 Changed 8 years ago by Veence (Vincent)

Fantastic. Let me know when you're ready, I'll commit your Portfile. Thanks a bunch again.

(The Portfile I gave you was mainly experimental, that’s why I left a lot of cruft in it)

comment:54 Changed 8 years ago by michaelld (Michael Dickens)

Finally! Recent GIT master commits to QGIS allow it to build! But I have to fix some dependency ports first, because they don't handle SIP dependencies correctly .... grrr ... 2.18.5 does work as is, so maybe folks can find use in it. I'll attach my current Portfile for testing & work on getting these other commits in place for the devel version.

Changed 8 years ago by michaelld (Michael Dickens)

Attachment: qgis_Portfile added

comment:55 Changed 8 years ago by michaelld (Michael Dickens)

Updated Portfile to fix conflicts. My bad on the bad variable name.

comment:56 Changed 8 years ago by aaschwanden (Andy Aschwanden)

Thank you guys for all your efforts, I'm now (almost) able to build QGIS using python 3.5 instead of 3.6 as in the above port file. I don't know if its related to my choice of the python version, but I get

:info:configure -- Ctest Binary Directory set to: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/build/output/bin
:info:configure -- Configuring incomplete, errors occurred!
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/build/CMakeFiles/CMakeOutput.log".

I'll attach the main.log, I can't make much sense of it.

I assume it will not be possible to build QGIS 2.8.15 with python 2.7 instead? (I know that QGIS 3 will require python at QT5). There are still way too many python modules that are not python 3 compatible that I use on a daily basis (e.g. the PETSc build system, dolfin, ocgis), so making the switch to python 3 will be hard.

Changed 8 years ago by aaschwanden (Andy Aschwanden)

Attachment: main.2.log added

comment:57 Changed 8 years ago by Veence (Vincent)

I have successfully compiled a version of QGis with QT5 and Python 3.6 using the Portfile I will upload as soon as I finish typing this. The only problem you may encounter is qwt61. I have QWT6.1 installed (+qt5). Maybe it will work with QWT 6. Please let me know.

This is what I have installed in terms of Python 36 modules:

  py36-appdirs @1.4.3_0 (active)
  py36-certifi @2017.01.23_0 (active)
  py36-cython @0.25.2_0 (active)
  py36-gdal @2.1.0_0 (active)
  py36-nose @1.3.7_0 (active)
  py36-numpy @1.12.1_0+gfortran (active)
  py36-packaging @16.8_0 (active)
  py36-parsing @2.2.0_0 (active)
  py36-pyqt5 @5.8.1_0 (active)
  py36-qscintilla2 @2.10_0 (active)
  py36-setuptools @34.3.3_0 (active)
  py36-sip @4.19.2_0 (active)
  py36-six @1.10.0_0 (active)

I will be on holidays without computer all next week. Please don’t hesitate to test and amend the Portfile in the meantime.

Changed 8 years ago by Veence (Vincent)

Attachment: Portfile added

Portfile to build QGIS with QT5 and Python3

comment:58 Changed 8 years ago by aaschwanden (Andy Aschwanden)

Many thanks, Vince.

I tried to install QGIS with the QT5/Py3 variant and still get stuck here:

CMake Error at cmake/FindQwt.cmake:43 (FILE):
  file failed to open for reading (No such file or directory):

    /opt/local/libexec/qt5/include/qwt/qwt_global.h
Call Stack (most recent call first):
  CMakeLists.txt:202 (FIND_PACKAGE)

even after I made sure qwt61 was installed with the +qt5 variant.

I'll go ahead the try the py27 variant now.

By the way: I think "qt5-qtwebkit" should be added to "depends_lib-append" for the Qt5 variant.

comment:59 Changed 8 years ago by aaschwanden (Andy Aschwanden)

Alright, I'm making progress on the py27 version, getting about 38% in when I encounter:

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_5/build'
make[2]: *** No rule to make target `/opt/local/libexec/qt4/lib/libqwt-qt4.dylib', needed by `output/lib/qgis_gui.framework/Versions/2.18/qgis_gui'.  Stop.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_5/build'
make[1]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

I do have qwt61 with the qt4 variant active:

$ port installed qwt61
The following ports are currently installed:
  qwt61 @6.1.3_0+qt4 (active)
  qwt61 @6.1.3_0+qt5

so I'm not sure what causes the error.

comment:60 Changed 8 years ago by basmac

On Sierra I don't get very far at all, after self update (Apr 11), force clean, remove inactive

[mac27:/] root# port installed qwt61
The following ports are currently installed:
  qwt61 @6.1.3_0+qt4 (active)
[mac27:/]

-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- QGIS version: 2.18.2 Las Palmas (21802)
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /opt/local/lib/libproj.dylib
-- Found GEOS: /opt/local/lib/libgeos_c.dylib (3.6.1)
-- Found GDAL: /opt/local/lib/libgdal.dylib (2.1.2)
-- Found Expat: /opt/local/lib/libexpat.dylib
-- Found Spatialindex: /opt/local/lib/libspatialindex.dylib
-- Found Qwt: /opt/local/libexec/qt4/lib/libqwt.dylib (6.1.3)
-- Found Sqlite3: /opt/local/lib/libsqlite3.dylib
-- Found PostgreSQL: /Volumes/Cluster/opt/local/lib/postgresql96/libpq.dylib
-- Found SpatiaLite: /opt/local/lib/libspatialite.dylib
-- Looking for gaiaDropTable in /opt/local/lib/libspatialite.dylib
-- Looking for gaiaDropTable in /opt/local/lib/libspatialite.dylib - found
-- Looking for gaiaStatisticsInvalidate in /opt/local/lib/libspatialite.dylib
-- Looking for gaiaStatisticsInvalidate in /opt/local/lib/libspatialite.dylib - found
-- Looking for spatialite_init_ex in /opt/local/lib/libspatialite.dylib
-- Looking for spatialite_init_ex in /opt/local/lib/libspatialite.dylib - found
-- Qt WebKit support enabled
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /opt/local/libexec/qt4/bin/qmake (found suitable version "4.8.7", minimum required is "4.8.0")
-- Found Qt version: 4.8.7
-- Touch support disabled
-- Found QCA: /opt/local/libexec/qt4/lib/libqca.dylib (2.1.0)
-- Found QCA OpenSSL plugin
-- Pedantic compiler settings enabled
-- Found PythonInterp: /opt/local/bin/python2.7 (found suitable version "2.7.13", minimum required is "2.7")
-- Found PythonInterp: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python (found suitable version "2.7.13", minimum required is "2.7")
-- Found Python executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python
-- Found Python version: 2.7.13
-- Found Python library: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
-- Found PyQt4 version: 4.12
-- Found SIP version: 4.19.2
-- Found QScintilla2 PyQt module: 2.10
-- Found GSL: -L/opt/local/lib -lgsl -lgslcblas
-- Found FCGI: /opt/local/lib/libfcgi.dylib
-- txt2tags not found - disabled
-- Ctest Binary Directory set to: /Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/output/bin
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QSCINTILLA_LIBRARY
    linked by target "qgis_gui" in directory /Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/gui

-- Configuring incomplete, errors occurred!
See also "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/CMakeFiles/CMakeOutput.log".
See also "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/CMakeFiles/CMakeError.log".
Command failed:  cd "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build" && cmake .. -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DPYTHON_EXECUTABLE=/opt/local/bin/python2.7 -DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DWITH_QWTPOLAR=FALSE -DGIT_MARKER=NOTFOUND -DENABLE_TEST=NO -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DEXPAT_INCLUDE_DIR=/opt/local/include -DEXPAT_LIBRARY=/opt/local/lib/libexpat.dylib -DCMAKE_INSTALL_PREFIX=/Applications/MacPorts -DQGIS_MACAPP_BUNDLE=0 -DGDAL_CONFIG=/opt/local/bin/gdal-config -DGDAL_INCLUDE_DIR=/opt/local/include -DGDAL_LIBRARY=/opt/local/lib/libgdal.dylib -DGEOS_CONFIG=/opt/local/bin/geos-config -DGEOS_INCLUDE_DIR=/opt/local/include -DGEOS_LIBRARY=/opt/local/lib/libgeos_c.dylib -DGSL_CONFIG=/opt/local/bin/gsl-config -DPROJ_INCLUDE_DIR=/opt/local/include -DPROJ_LIBRARY=/opt/local/lib/libproj.dylib -DSPATIALINDEX_LIBRARY=/opt/local/lib/libspatialindex.dylib -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_QT5=OFF -DPYTHON_CUSTOM_FRAMEWORK=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 -DSIP_BINARY_PATH=/opt/local/bin/sip-2.7 -DPYUIC_PROGRAM=/opt/local/bin/pyuic4-2.7 -DPYRCC_PROGRAM=/opt/local/bin/pyrcc4-2.7 -DWITH_SERVER=TRUE -DWITH_SERVER_PLUGINS=TRUE -DQWT_INCLUDE_DIR=/opt/local/libexec/qt4/include/qwt -DQWT_LIBRARY=/opt/local/libexec/qt4/lib/libqwt.dylib -DQCA_INCLUDE_DIR=/opt/local/libexec/qt4/include/QtCrypto -DQCA_LIBRARY=/opt/local/libexec/qt4/lib/libqca.dylib -DPOSTGRES_CONFIG=/opt/local/lib/postgresql96/bin/pg_config -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.12" -DCMAKE_OSX_SYSROOT="/" /Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2
Exit code: 1
Error: Failed to configure QGIS: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed
[mac27:/]

comment:61 Changed 8 years ago by aaschwanden (Andy Aschwanden)

@basmac:

It looks like that either/or qscintilla2 and py27-qscintilla2 ports are missing. Can you check if they are installed?

comment:62 Changed 8 years ago by kencu (Ken)

qscintilla's libraries have been recently renamed - lots of ports broke due to that. Looks like you could set QSCINTILLA_LIBRARY to the new name using a cmake variable, something like this configure.args-append -DQSCINTILLA_LIBRARY=${prefix}/lib/whatever_it_is.dylib. But this seems to be a different error than the one this ticket stsrted out with.

comment:63 Changed 8 years ago by basmac

I did have to install both qscintilla2, but similar results -

[mac27:/Applications] root# port installed qscintilla2
The following ports are currently installed:
  qscintilla2 @2.10_0 (active)
[mac27:/Applications] root# port installed py27-qscintilla2
The following ports are currently installed:
  py27-qscintilla2 @2.10_0 (active)
[mac27:/Applications] root# port clean QGIS
--->  Cleaning QGIS
[mac27:/Applications]

-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- QGIS version: 2.18.2 Las Palmas (21802)
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /opt/local/lib/libproj.dylib
-- Found GEOS: /opt/local/lib/libgeos_c.dylib (3.6.1)
-- Found GDAL: /opt/local/lib/libgdal.dylib (2.1.2)
-- Found Expat: /opt/local/lib/libexpat.dylib
-- Found Spatialindex: /opt/local/lib/libspatialindex.dylib
-- Found Qwt: /opt/local/libexec/qt4/lib/libqwt.dylib (6.1.3)
-- Found Sqlite3: /opt/local/lib/libsqlite3.dylib
-- Found PostgreSQL: /Volumes/Cluster/opt/local/lib/postgresql96/libpq.dylib
-- Found SpatiaLite: /opt/local/lib/libspatialite.dylib
-- Looking for gaiaDropTable in /opt/local/lib/libspatialite.dylib
-- Looking for gaiaDropTable in /opt/local/lib/libspatialite.dylib - found
-- Looking for gaiaStatisticsInvalidate in /opt/local/lib/libspatialite.dylib
-- Looking for gaiaStatisticsInvalidate in /opt/local/lib/libspatialite.dylib - found
-- Looking for spatialite_init_ex in /opt/local/lib/libspatialite.dylib
-- Looking for spatialite_init_ex in /opt/local/lib/libspatialite.dylib - found
-- Qt WebKit support enabled
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /opt/local/libexec/qt4/bin/qmake (found suitable version "4.8.7", minimum required is "4.8.0")
-- Found Qt version: 4.8.7
-- Touch support disabled
-- Found QCA: /opt/local/libexec/qt4/lib/libqca.dylib (2.1.0)
-- Found QCA OpenSSL plugin
-- Pedantic compiler settings enabled
-- Found PythonInterp: /opt/local/bin/python2.7 (found suitable version "2.7.13", minimum required is "2.7")
-- Found PythonInterp: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python (found suitable version "2.7.13", minimum required is "2.7")
-- Found Python executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python
-- Found Python version: 2.7.13
-- Found Python library: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
-- Found PyQt4 version: 4.12
-- Found SIP version: 4.19.2
-- Found QScintilla2 PyQt module: 2.10
-- Found GSL: -L/opt/local/lib -lgsl -lgslcblas
-- Found FCGI: /opt/local/lib/libfcgi.dylib
-- txt2tags not found - disabled
-- Ctest Binary Directory set to: /Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/output/bin
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QSCINTILLA_LIBRARY
    linked by target "qgis_gui" in directory /Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/src/gui

-- Configuring incomplete, errors occurred!
See also "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/CMakeFiles/CMakeOutput.log".
See also "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build/CMakeFiles/CMakeError.log".
Command failed:  cd "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build" && cmake .. -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DPYTHON_EXECUTABLE=/opt/local/bin/python2.7 -DWITH_GRASS=OFF -DWITH_GRASS7=OFF -DWITH_QWTPOLAR=FALSE -DGIT_MARKER=NOTFOUND -DENABLE_TEST=NO -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DEXPAT_INCLUDE_DIR=/opt/local/include -DEXPAT_LIBRARY=/opt/local/lib/libexpat.dylib -DCMAKE_INSTALL_PREFIX=/Applications/MacPorts -DQGIS_MACAPP_BUNDLE=0 -DGDAL_CONFIG=/opt/local/bin/gdal-config -DGDAL_INCLUDE_DIR=/opt/local/include -DGDAL_LIBRARY=/opt/local/lib/libgdal.dylib -DGEOS_CONFIG=/opt/local/bin/geos-config -DGEOS_INCLUDE_DIR=/opt/local/include -DGEOS_LIBRARY=/opt/local/lib/libgeos_c.dylib -DGSL_CONFIG=/opt/local/bin/gsl-config -DPROJ_INCLUDE_DIR=/opt/local/include -DPROJ_LIBRARY=/opt/local/lib/libproj.dylib -DSPATIALINDEX_LIBRARY=/opt/local/lib/libspatialindex.dylib -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_QT5=OFF -DPYTHON_CUSTOM_FRAMEWORK=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 -DSIP_BINARY_PATH=/opt/local/bin/sip-2.7 -DPYUIC_PROGRAM=/opt/local/bin/pyuic4-2.7 -DPYRCC_PROGRAM=/opt/local/bin/pyrcc4-2.7 -DWITH_SERVER=TRUE -DWITH_SERVER_PLUGINS=TRUE -DQWT_INCLUDE_DIR=/opt/local/libexec/qt4/include/qwt -DQWT_LIBRARY=/opt/local/libexec/qt4/lib/libqwt.dylib -DQCA_INCLUDE_DIR=/opt/local/libexec/qt4/include/QtCrypto -DQCA_LIBRARY=/opt/local/libexec/qt4/lib/libqca.dylib -DPOSTGRES_CONFIG=/opt/local/lib/postgresql96/bin/pg_config -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.12" -DCMAKE_OSX_SYSROOT="/" /Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2
Exit code: 1
Error: Failed to configure QGIS: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed
[mac27:/Applications] root#

comment:64 Changed 8 years ago by basmac

The same procedure as above builds QGIS on El Cap, with identical Macports list of installed items, but eventually fails

[ 52%] Built target qgis_gui
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_2/build" && /usr/bin/make -j4 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build QGIS: command execution failed
DEBUG: Error code: CHILDSTATUS 18356 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$nice $fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qgis failed
bash-3.2#

Last edited 8 years ago by basmac (previous) (diff)

comment:65 Changed 8 years ago by gcarlino (Giuseppe Carlino)

Cc: gcarlino added

comment:66 Changed 8 years ago by basmac

I should have made the point that the El Cap build for QGIS actually compiles and makes before failing for long time (~10-15 mins), whereas Sierra fails almost immediately.

Last edited 8 years ago by basmac (previous) (diff)

comment:67 Changed 8 years ago by Veence (Vincent)

Sorry I was away on vacation. Will pick up and hopefully tidy up the Portfile in the following days.

Changed 8 years ago by Veence (Vincent)

Attachment: Portfile.2 added

Portfile working for QT4/Py2.7 or QT5/Py3.6

comment:68 Changed 8 years ago by Veence (Vincent)

Ok, I’ve attached a new Portfile.

This one lets you choose between QT4+Py2.7 or QT5+Py3.6. You cannot have QT5+Py2.7, this is forbidden by QGIS. I don't think that QT4+Py3.6 is allowed either, that would not make sense anyway.

QT5 is now the DEFAULT choice.

QT4+py2.7 is untested so far. Please by all means give it a crack (+qt4 option).

Grass 6 is obsolete. +grass hooks to Grass 7. Please install it (currently v 7.2).

That’s all folks. Please let me know. If it works, I shall commit it.

Thanks for you patience all those months. Much appreciated. ❤️

comment:69 Changed 8 years ago by basmac

Thanks for the work, on Sierra with Portfile.2 as Portfile set locally, and portindex parsed, and removing any py27-qscintilla that was installed as a workaround previously

--->  Computing dependencies for QGIS
DEBUG: QGIS has no conflicts
DEBUG: Searching for dependency: cmake
DEBUG: Found Dependency: receipt exists for cmake
DEBUG: Searching for dependency: bison
DEBUG: Found Dependency: receipt exists for bison
DEBUG: Searching for dependency: ld64
DEBUG: Found Dependency: receipt exists for ld64
DEBUG: Searching for dependency: pkgconfig
DEBUG: Found Dependency: receipt exists for pkgconfig
DEBUG: Searching for dependency: py36-sip
DEBUG: Found Dependency: receipt exists for py36-sip
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Searching for dependency: expat
DEBUG: Found Dependency: receipt exists for expat
DEBUG: Searching for dependency: openssl
DEBUG: Found Dependency: receipt exists for openssl
DEBUG: Searching for dependency: proj
DEBUG: Found Dependency: receipt exists for proj
DEBUG: Searching for dependency: geos
DEBUG: Found Dependency: receipt exists for geos
DEBUG: Searching for dependency: gdal
DEBUG: Found Dependency: receipt exists for gdal
DEBUG: Searching for dependency: sqlite3
DEBUG: Found Dependency: receipt exists for sqlite3
DEBUG: Searching for dependency: gsl
DEBUG: Found Dependency: receipt exists for gsl
DEBUG: Searching for dependency: fcgi
DEBUG: Found Dependency: receipt exists for fcgi
DEBUG: Searching for dependency: spatialindex
DEBUG: Found Dependency: receipt exists for spatialindex
DEBUG: Searching for dependency: postgis2
DEBUG: Found Dependency: receipt exists for postgis2
DEBUG: Searching for dependency: qjson
DEBUG: Found Dependency: receipt exists for qjson
DEBUG: Searching for dependency: python36
DEBUG: Found Dependency: receipt exists for python36
DEBUG: Searching for dependency: py36-pyqt5
DEBUG: Found Dependency: receipt exists for py36-pyqt5
DEBUG: Searching for dependency: py36-qscintilla2
DEBUG: Found Dependency: receipt exists for py36-qscintilla2
DEBUG: Searching for dependency: qt5-qtscript
DEBUG: Found Dependency: receipt exists for qt5-qtscript
DEBUG: Searching for dependency: qt5-sqlite-plugin
DEBUG: Found Dependency: receipt exists for qt5-sqlite-plugin
DEBUG: Searching for dependency: qwt61
DEBUG: Found Dependency: receipt exists for qwt61
DEBUG: Searching for dependency: qca-qt5
DEBUG: Found Dependency: receipt exists for qca-qt5
DEBUG: Searching for dependency: qca-qt5-ossl
DEBUG: Found Dependency: receipt exists for qca-qt5-ossl
DEBUG: Searching for dependency: py36-gdal
DEBUG: Found Dependency: receipt exists for py36-gdal
DEBUG: Searching for dependency: postgresql96
DEBUG: Found Dependency: receipt exists for postgresql96
DEBUG: Searching for dependency: qt5-qtbase
DEBUG: Found Dependency: receipt exists for qt5-qtbase
DEBUG: Searching for dependency: py36-psycopg2
DEBUG: Found Dependency: receipt exists for py36-psycopg2
DEBUG: Searching for dependency: py36-requests
DEBUG: Found Dependency: receipt exists for py36-requests
DEBUG: Executing org.macports.main (QGIS)
DEBUG: dropping privileges: euid changed to 504, egid changed to 501.
DEBUG: archivefetch phase started at Tue Apr 18 13:24:22 MDT 2017
DEBUG: Executing org.macports.archivefetch (QGIS)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: fetch phase started at Tue Apr 18 13:24:22 MDT 2017
--->  Fetching distfiles for QGIS
DEBUG: Executing org.macports.fetch (QGIS)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: checksum phase started at Tue Apr 18 13:24:22 MDT 2017
--->  Verifying checksums for QGIS
DEBUG: Executing org.macports.checksum (QGIS)
--->  Checksumming patch-app_info_plist_in.diff
Error: No checksum set for patch-app_info_plist_in.diff
--->  Checksumming patch-PyQtMacros.diff
Error: No checksum set for patch-PyQtMacros.diff
--->  Checksumming QGIS-2_18_5.tar.gz
Error: No checksum set for QGIS-2_18_5.tar.gz
The correct checksum line may be:
checksums           patch-app_info_plist_in.diff \
                    rmd160  50e9d6b126192eabbacc208cba29569de1ec5534 \
                    sha256  d76416adbe698907b2a5af703ec8d686dbaacc252a7497b1958d3327ec5fc187 \
                    patch-PyQtMacros.diff \
                    rmd160  50e9d6b126192eabbacc208cba29569de1ec5534 \
                    sha256  d76416adbe698907b2a5af703ec8d686dbaacc252a7497b1958d3327ec5fc187 \
                    QGIS-2_18_5.tar.gz \
                    rmd160  50e9d6b126192eabbacc208cba29569de1ec5534 \
                    sha256  d76416adbe698907b2a5af703ec8d686dbaacc252a7497b1958d3327ec5fc187
Error: Failed to checksum QGIS: Unable to verify file checksums
DEBUG: Error code: NONE
DEBUG: Backtrace: Unable to verify file checksums
    while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_Volumes_User_bmcinnes_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed

comment:70 Changed 8 years ago by basmac

On El Cap similar result

[mac27:/Users/bmcinnes/ports] root# cat /Publicmac//qgis.elcap.log
DEBUG: Removing directory: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qca/qca-qt5-ossl
DEBUG: Removing symlink: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/qca/work
DEBUG: Removing directory: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qca/qca-qt5-ossl
DEBUG: Executing org.macports.main (QGIS)
DEBUG: dropping privileges: euid changed to 504, egid changed to 503.
DEBUG: archivefetch phase started at Tue Apr 18 13:29:24 MDT 2017
DEBUG: Executing org.macports.archivefetch (QGIS)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: fetch phase started at Tue Apr 18 13:29:24 MDT 2017
--->  Fetching distfiles for QGIS
DEBUG: Executing org.macports.fetch (QGIS)
--->  patch-app_info_plist_in.diff does not exist in /opt/local/var/macports/distfiles/QGIS
--->  Attempting to fetch patch-app_info_plist_in.diff from https://distfiles.macports.org/QGIS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0DEBUG: Fetching distfile failed: The requested URL returned error: 404 Not Found
--->  Attempting to fetch patch-app_info_plist_in.diff from https://github.com/qgis/QGIS/tarball/final-2_18_5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130    0   130    0     0    146      0 --:--:-- --:--:-- --:--:--   146
100 94.6M    0 94.6M    0     0  4208k      0 --:--:--  0:00:23 --:--:-- 4789k
--->  patch-PyQtMacros.diff does not exist in /opt/local/var/macports/distfiles/QGIS
--->  Attempting to fetch patch-PyQtMacros.diff from https://distfiles.macports.org/QGIS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0DEBUG: Fetching distfile failed: The requested URL returned error: 404 Not Found
--->  Attempting to fetch patch-PyQtMacros.diff from https://github.com/qgis/QGIS/tarball/final-2_18_5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130    0   130    0     0    270      0 --:--:-- --:--:-- --:--:--   270
100 94.6M  100 94.6M    0     0  5328k      0  0:00:18  0:00:18 --:--:-- 7419k
--->  QGIS-2_18_5.tar.gz does not exist in /opt/local/var/macports/distfiles/QGIS
--->  Attempting to fetch QGIS-2_18_5.tar.gz from https://distfiles.macports.org/QGIS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0DEBUG: Fetching distfile failed: The requested URL returned error: 404 Not Found
--->  Attempting to fetch QGIS-2_18_5.tar.gz from https://github.com/qgis/QGIS/tarball/final-2_18_5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130    0   130    0     0    465      0 --:--:-- --:--:-- --:--:--   467
100 94.6M  100 94.6M    0     0  3654k      0  0:00:26  0:00:26 --:--:-- 4320k
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: checksum phase started at Tue Apr 18 13:30:33 MDT 2017
--->  Verifying checksums for QGIS
DEBUG: Executing org.macports.checksum (QGIS)
--->  Checksumming patch-app_info_plist_in.diff
Error: No checksum set for patch-app_info_plist_in.diff
--->  Checksumming patch-PyQtMacros.diff
Error: No checksum set for patch-PyQtMacros.diff
--->  Checksumming QGIS-2_18_5.tar.gz
Error: No checksum set for QGIS-2_18_5.tar.gz
The correct checksum line may be:
checksums           patch-app_info_plist_in.diff \
                    rmd160  50e9d6b126192eabbacc208cba29569de1ec5534 \
                    sha256  d76416adbe698907b2a5af703ec8d686dbaacc252a7497b1958d3327ec5fc187 \
                    patch-PyQtMacros.diff \
                    rmd160  50e9d6b126192eabbacc208cba29569de1ec5534 \
                    sha256  d76416adbe698907b2a5af703ec8d686dbaacc252a7497b1958d3327ec5fc187 \
                    QGIS-2_18_5.tar.gz \
                    rmd160  50e9d6b126192eabbacc208cba29569de1ec5534 \
                    sha256  d76416adbe698907b2a5af703ec8d686dbaacc252a7497b1958d3327ec5fc187
Error: Failed to checksum QGIS: Unable to verify file checksums
DEBUG: Error code: NONE
DEBUG: Backtrace: Unable to verify file checksums
    while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_Volumes_User_apsd_ports_gis_qgis/QGIS/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed
--->  Some of the ports you installed have notes:
  py36-cython has the following notes:
    To make the Python 3.6 version of Cython the one that is run when you execute the commands without a version suffix, e.g. 'cython', run:

    port select --set cython cython36
  py36-sip has the following notes:
    py36-sip is available under a PSF license with one addition:

        4. Licensee may not use SIP to generate Python bindings for any C or
           C++ library for which bindings are already provided by Riverbank.

    GPL-2 or GPL-3 licenses are also available. For details see
    /opt/local/share/doc/py36-sip/LICENSE [-GPL2 -GPL3]
  python36 has the following notes:
    To make this the default Python or Python 3 (i.e., the version run by the 'python' or 'python3' commands), run one or both of:

        sudo port select --set python python36
        sudo port select --set python3 python36

    ##############################################################
    # IF YOU ARE USING PYTHON FROM THE TERMINAL, PLEASE INSTALL:
    #   py36-readline
    # TO AVOID A LIBEDIT / PYTHON INTERACTION ISSUE.
    # REF: https://trac.macports.org/ticket/48807
    ##############################################################
bash-3.2#

comment:71 Changed 8 years ago by aaschwanden (Andy Aschwanden)

The new Portfile works for me on my OSX Sierra with

-qt5 +qt4 +grass

both for 2.18.5 as in the Portfile and for 2.8.16. (latest version)

I have not tested the py36/qt5 version.

Thanks to everyone!

comment:72 Changed 8 years ago by Veence (Vincent)

Ok, there are still some glitches to solve.

First off, I updated the QWT port so that QWT61 is built with Qt5 by default, so it can be pulled in by the automatic build process. Added some code to check QWT 6.1 is installed with the correct variant. Updated various dependencies too.

Removed the grass70 → grass72 patch as this is taken care of in the newest version.

Will commit later today. Let’s see what happens.

comment:73 Changed 8 years ago by Veence (Vincent)

Ok, it’s committed with an additional patch (because 2.18.6 is broken with QT4, apparently).

Please update and retry.

Thanks!

comment:74 Changed 8 years ago by basmac

Still no luck on Sierra for me using the install command 
port -d install QGIS +qt4 +grass -qt5
looks like grass7 issue now ?

--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Thu Apr 20 08:28:29 MDT 2017
make: *** [default] Error 1
make: Leaving directory `/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass7/grass7/work/grass-7.2.0'
Command failed:  cd "/Volumes/Cluster/opt/local/var/macports/build/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass7/grass7/work/grass-7.2.0" && /usr/bin/make -j8 -w default
Exit code: 2
Error: Failed to build grass7: command execution failed
DEBUG: Error code: CHILDSTATUS 29579 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$nice $fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
DEBUG: Failed to locate 'lbzip2' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
    while executing
"error "$eMessage or at its MacPorts configuration time location, did you move it?""
    invoked from within
"try -pass_signal {
            set cmd_path [macports::binaryInPath $prog]
            return $cmd_path
        } catch {{*} eCode eMessage} {
       ..."
    (procedure "macports::findBinary" line 5)
Error: See /opt/local/var/macports/logs/_Volumes_Cluster_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass7/grass7/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port QGIS failed
[mac27:local/etc/macports] root# port -d install QGIS +qt4 +grass -qt5

comment:75 Changed 8 years ago by Veence (Vincent)

Yeah, something’s wrong with Grass7 build, but the message you get points to a messed up MacPorts installation. Could you please post the full log? Thanks.

comment:76 Changed 8 years ago by basmac

Thanks for all the help, I think I now have it built on Sierra and will try and reproduce on El Cap -
could not install grass7 so install explicitly grass
could not install QGIS with +qt4 -qt5 +grass as suggested
uninstall py27-qscintilla2
remove all inactive installs
install qwt61 +qt4 -qt5 (has to have -qt5)
install QGIS +qt4
requires port -f activate QGIS

So now I have
[mac27:/opt/local/lib] root# port installed grass
The following ports are currently installed:
  grass @6.4.3_5+python26+wxgtk28 (active)
[mac27:/opt/local/lib] root# port installed qwt61
The following ports are currently installed:
  qwt61 @6.1.3_0+qt4 (active)
[mac27:/opt/local/lib] root# port installed QGIS
The following ports are currently installed:
  QGIS @2_18_6_0+postgresql96+qt4 (active)
[mac27:/opt/local/lib] root#
Last edited 8 years ago by basmac (previous) (diff)

comment:77 Changed 8 years ago by basmac

Builds on El Cap as well with the same sequence of events - thanks !!

comment:78 Changed 8 years ago by Veence (Vincent)

Resolution: fixed
Status: acceptedclosed

Please note that QGIS does not connect to grass 6 anymore, so if you want to call grass 6 functions inside QGIS you'll have to use the Python toolbox, as opposed to the Grass plugin.

Note: See TracTickets for help on using tickets.