GithubHelp home page GithubHelp logo

Comments (3)

dbaston avatar dbaston commented on August 24, 2024

This looks related to isciences/exactextractr#79. I don't have access to a machine to troubleshoot it.

from exactextract.

beaugunderson avatar beaugunderson commented on August 24, 2024

I did a little more research and figured out that I can force x86_64 using this incantation:

cmake \
  -DCMAKE_OSX_ARCHITECTURES=x86_64 \
  -DCMAKE_BUILD_TYPE=Release \
  ..

The build completes but now I get this:

$ ./exactextract

dyld[57743]: Library not loaded: /usr/local/pgsql-12/lib/libpq.5.dylib
  Referenced from: <7E2C5AE7-94FF-311B-B475-92F15948B296> /Library/Frameworks/GDAL.framework/Versions/3.1/GDAL
  Reason: tried: '/libpq.5.dylib' (no such file), '/usr/local/pgsql-12/lib/libpq.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/pgsql-12/lib/libpq.5.dylib' (no such file), '/usr/local/pgsql-12/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5.dylib' (no such file, not in dyld cache)
Abort trap: 6

The only usable copies of the dylib I have are installed as part of arm64 homebrew:

/opt/homebrew/Cellar/libpq/15.4/lib/libpq.5.dylib
/opt/homebrew/Cellar/postgresql@14/14.9/lib/postgresql@14/libpq.5.dylib

from exactextract.

beaugunderson avatar beaugunderson commented on August 24, 2024

Oh, I see what happened! I had old versions of GEOS and GDAL in /Library/Frameworks. I removed those, re-ran cmake WITHOUT specifying CMAKE_OSX_ARCHITECTURES and it picked up the homebrew versions I have installed and succeeded in building an arm64 version. Awesome!

$  ./exactextract --help

Zonal statistics using exactextract: version 0.1.0 (f14e007)
Usage: ./exactextract [OPTIONS]

Options:
  -h,--help                   Print this help message and exit
  -p,--polygons TEXT REQUIRED polygon dataset
  -r,--raster TEXT ... REQUIRED
                              raster dataset
  -f,--fid TEXT REQUIRED      id from polygon dataset to retain in output
  -o,--output TEXT REQUIRED   output filename
  -s,--stat TEXT ... REQUIRED statistics
  --max-cells UINT=30         maximum number of raster cells to read in memory at once, in millions
  --strategy TEXT=feature-sequential
                              processing strategy
  --id-type TEXT              override type of id field in output
  --id-name TEXT              override name of id field in output
  --progress
  --config TEXT               Read an ini file

from exactextract.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.