Opened 4 years ago

Closed 4 years ago

#60913 closed defect (duplicate)

qgis3 @3.14.1 fails to build on Mojave (failed to find 'gl.h').

Reported by: gwright83 Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: qgis3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

qgis3 fails build on Mojave. The failure is in the configuration step, and is caused by a failure to find the header file gl.h.

The workaround is simple (and was mentioned in a comment on commit f2ee940/macports-ports by i0ntempest). On Mojave (and perhaps earlier version of macOS), the patch

- configure.sdkroot       ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
+ configure.sdkroot       ${developer_dir}/Developer/SDKs/MacOSX.sdk
  cmake.install_prefix    ${applications_dir}

needs to be reverted.

I did this manually and qgis3 built to completion.

Veence, are you building on Catalina? The configure.sdkroot line probably needs to be conditioned on the OS version.

Change History (1)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: qgis3 added
Resolution: duplicate
Status: newclosed

Duplicate of #60901. That change is incorrect on all OS versions.

Note: See TracTickets for help on using tickets.