Opened 6 years ago

Closed 6 years ago

#55408 closed defect (fixed)

QGIS, qgis3: missing spatialite dependency

Reported by: Liontooth (David Liontooth) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: QGIS, qgis3

Description

On High Sierra, QGIS 2_18_13 fails to configure because of a missing spatialite dependency. Configures fine once spatialite is installed.

:info:configure CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
:info:configure Please set them or make sure they are set and tested correctly in the CMake files:
:info:configure SPATIALITE_INCLUDE_DIR
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/core
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/analysis
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/analysis/network
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/providers/spatialite
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/providers/virtual
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/app
:info:configure    used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/plugins/offline_editing
:info:configure SPATIALITE_LIBRARY
:info:configure     linked by target "qgis_core" in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/core
:info:configure     linked by target "spatialiteprovider" in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/providers/spatialite
:info:configure     linked by target "virtuallayerprovider" in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/providers/virtual
:info:configure     linked by target "offlineeditingplugin" in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/src/plugins/offline_editing
:info:configure -- Configuring incomplete, errors occurred!
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work/QGIS-2_18_13/build/CMakeFiles/CMakeOutput.log".

Change History (7)

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

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

comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Port: qgis3 added
Summary: QGIS missing spatialite dependencyQGIS, qgis3: missing spatialite dependency

This affects the recently-added qgis3 port as well.

comment:3 Changed 6 years ago by Veence (Vincent)

Should be fixed in the new Portfile. But the qgis portfile was already fixed.

comment:4 Changed 6 years ago by Liontooth (David Liontooth)

I'm getting this with the latest qgis3 makefile:

:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f tests/src/gui/CMakeFiles/qgis_valuerelationwidgetwrapper_autogen.dir/build.make tests/src/gui/CMakeFiles/qgis_valuerelationwidgetwrapper_autogen.dir/build
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis3/qgis3/work/QGIS-1c1de3a/src/app/qgisapp.cpp:417:
:info:build /opt/local/include/spatialite/spatialite.h:45:10: fatal error: 'spatialite_private.h' file not found
:info:build #include <spatialite_private.h>

So spatialite does not have a file called spatialite_private.h:

# port contents spatialite | grep '\.h'
  /opt/local/include/spatialite.h
  /opt/local/include/spatialite/control_points.h
  /opt/local/include/spatialite/debug.h
  /opt/local/include/spatialite/gaiaaux.h
  /opt/local/include/spatialite/gaiaexif.h
  /opt/local/include/spatialite/gaiageo.h
  /opt/local/include/spatialite/gaiamatrix.h
  /opt/local/include/spatialite/geopackage.h
  /opt/local/include/spatialite/gg_advanced.h
  /opt/local/include/spatialite/gg_const.h
  /opt/local/include/spatialite/gg_core.h
  /opt/local/include/spatialite/gg_dxf.h
  /opt/local/include/spatialite/gg_dynamic.h
  /opt/local/include/spatialite/gg_formats.h
  /opt/local/include/spatialite/gg_mbr.h
  /opt/local/include/spatialite/gg_structs.h
  /opt/local/include/spatialite/gg_wfs.h
  /opt/local/include/spatialite/gg_xml.h
  /opt/local/include/spatialite/spatialite.h
  /opt/local/include/spatialite/sqlite.h

It seems to be in libspatialite -- Debian has it in libspatialite-dev. How does macports handle dev files?

comment:5 Changed 6 years ago by Veence (Vincent)

Problem is, there are actually two spatialite.h files, one in ${prefix}/include the other in ${prefix}/include/spatialite. I chose the latter while it appears only the former is correct. I’ve modified the Portfile, please try again.

comment:6 Changed 6 years ago by Liontooth (David Liontooth)

Confirmed, this works; please close.

comment:7 Changed 6 years ago by Veence (Vincent)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.