OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
364 stars 111 forks source link

Can't build osgeo-saga from source #1270

Closed alazarolop closed 4 years ago

alazarolop commented 4 years ago

I want to use latest version of osgeo-saga (7.4.0) so I'm trying to build it from source. For this reason I've changed the formula and edit the link to download the tar file. I've also commented out osgeo-proj and osgeo-gdal dependencies, as I have them installed but I want to skip version 6 and 3 respectively.

When building from source I get this message:

==> autoreconf -i
==> ./configure --prefix=/usr/local/Cellar/osgeo-saga/7.4.0_1 --disable-libfire 
Last 15 lines from /Users/alazaro/Library/Logs/Homebrew/osgeo-saga/02.configure:
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking whether clang++ supports C++11 features with -std=gnu++11... yes
checking for local include/lib path... none
checking for pg_config... /usr/local/opt/osgeo-postgresql/bin/pg_config
checking for PostgreSQL libraries... yes
checking if PostgreSQL version is >= 8.0... yes
checking whether to enable postgresql... yes
        GUI and interactive tools will be built
        ODBC support will NOT be built
        libgomp not found, OpenMP support disabled
        using PROJ version 5
checking for gdal-config... no
configure: error: gdal-config does not exist or it is not an exectuable file

I wasn't expecting this kind of issue as I can use gdal-config in terminal. Any clue how could I fix it?