Opened 3 months ago

Closed 3 months ago

#69507 closed defect (fixed)

qgis3-ltr @3.34.4 configure failure on macOS Sonoma 14.4

Reported by: arthurhoney Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: nilason (Nicklas Larsson)
Port: qgis3

Description

I recently wanted to port qgis3 native to arm64 on my MacBook Pro with M1 Pro chip running the most current version to date of the Sonoma 14.4 system, however when doing the final configuration, the Terminal gives me the error that the qgis3 configuration with the legend command execution failed "Error: Processing of port qgis3 failed", but does not highlight another error.

--->  Computing dependencies for qgis3-ltr
--->  Fetching archive for qgis3-ltr
--->  Attempting to fetch qgis3-ltr-3.34.4_0+draco+plugin_support311+postgresql15+proj9+python311.darwin_23.arm64.tbz2 from https://packages.macports.org/qgis3-ltr
--->  Attempting to fetch qgis3-ltr-3.34.4_0+draco+plugin_support311+postgresql15+proj9+python311.darwin_23.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/qgis3-ltr
--->  Attempting to fetch qgis3-ltr-3.34.4_0+draco+plugin_support311+postgresql15+proj9+python311.darwin_23.arm64.tbz2 from http://mirror.fcix.net/macports/packages/qgis3-ltr
--->  Configuring qgis3-ltr
Error: Failed to configure qgis3-ltr: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3-ltr/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port qgis3-ltr failed

I don't know what it is exactly, it would be great if you could help me solve the problem or if there is something else to install.

Attachments (1)

main.log.bz2 (37.3 KB) - added by jmroot (Joshua Root) 3 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 months ago by jmroot (Joshua Root)

Keywords: Failed configure qgis3 command failed removed
Owner: set to Veence
Status: newassigned
Summary: Error: Command execution failed to configure qgis3 on macOS Sonoma 14.4qgis3-ltr @3.34.4 configure failure on macOS Sonoma 14.4
:info:configure CMake Error at src/core/CMakeLists.txt:2395 (target_link_libraries):
:info:configure   Target "qgis_core" links to:
:info:configure     PROJ::proj
:info:configure   but the target was not found.  Possible reasons include:
:info:configure     * There is a typo in the target name.
:info:configure     * A find_package call is missing for an IMPORTED target.
:info:configure     * An ALIAS target is missing.

comment:2 Changed 3 months ago by jmroot (Joshua Root)

Cc: nilason added

Changed 3 months ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added

comment:3 Changed 3 months ago by tydalforce (Michael)

I am receiving the same error, installing qgis3 (not qgis3-ltr as mentioned in the description), except the line number is different

:info:configure CMake Error at src/core/CMakeLists.txt:2446 (target_link_libraries):
:info:configure   Target "qgis_core" links to:
:info:configure     PROJ::proj
:info:configure   but the target was not found.  Possible reasons include:
:info:configure     * There is a typo in the target name.
:info:configure     * A find_package call is missing for an IMPORTED target.
:info:configure     * An ALIAS target is missing.

Earlier in the log I spotted this about sqlite3 which just seems confusing. Reinstalling the sqlite3 port didn't resolve it

:info:configure -- Found Sqlite3: /opt/local/lib/libsqlite3.dylib
:info:configure CMake Warning at cmake/FindProj.cmake:21 (find_package):
:info:configure   Found package configuration file:
:info:configure     /opt/local/lib/proj9/lib/cmake/proj/proj-config.cmake
:info:configure   but it set PROJ_FOUND to FALSE so package "PROJ" is considered to be NOT
:info:configure   FOUND.  Reason given by package:
:info:configure   PROJ could not be found because dependency SQLite3 could not be found.
:info:configure Call Stack (most recent call first):
:info:configure   CMakeLists.txt:361 (find_package)
:info:configure -- Found Proj: 9.4.0 /opt/local/lib/proj9/lib/cmake/proj
:info:configure -- Found Geos: 3.12.1 /opt/local/lib/cmake/GEOS
:info:configure -- Found GDAL: 3.8.4 /opt/local/lib/cmake/gdal
:info:configure -- Found EXPAT: /opt/local/lib/libexpat.dylib (found version "2.6.2")
:info:configure -- Found Spatialindex: /opt/local/lib/libspatialindex.dylib
:info:configure -- Found LibZip: /opt/local/lib/libzip.dylib
:info:configure -- Found libzip: /opt/local/lib/libzip.dylib
:info:configure -- Found Sqlite3: /opt/local/lib/libsqlite3.dylib

comment:4 Changed 3 months ago by nilason (Nicklas Larsson)

This is caused by changes with PROJ 9.4.0.

In short, the changes are:

- find_package(SQLite3 REQUIRED)
+ find_dependency(SQLite3)

where the CMake macro find_dependency fails, whereas find_package did work.

I'm looking for a way to address this, but would appreciate any suggestions.

comment:5 Changed 3 months ago by nilason (Nicklas Larsson)

Addressed by PR23077, reported upstream.

comment:6 Changed 3 months ago by nilason (Nicklas Larsson)

Resolution: fixed
Status: assignedclosed

In cd2faa3dd953e822dcea88ca61b6c55eeb00c8a2/macports-ports (master):

qgis3, qgis3-ltr: use CMake's default FindSQLite3 to configure with PROJ 9.4

Closes: #69507

Note: See TracTickets for help on using tickets.