r-spatial / lwgeom

bindings to the liblwgeom library
https://r-spatial.github.io/lwgeom/
60 stars 24 forks source link

Github actions and R-CMD-Check with lwgeom failing #54

Closed jhollist closed 4 years ago

jhollist commented 4 years ago

Sorry if this isn't the best spot for this issue.

I am trying to set up a Github Actions workflow for R-CMD-Check with a package that has lwgeom as an Imports. Builds and checks fine locally, and works fine on a Windows build via gh workflows, On Ubuntu the lwgeom package install fails with:

* installing *source* package ‘lwgeom’ ...
** package ‘lwgeom’ successfully unpacked and MD5 sums checked
** using staged installation
configure: CC: gcc
configure: CXX: g++ -std=gnu++11
configure: pkg-config proj exists, will use it
checking proj_api.h usability... no
checking proj_api.h presence... no
configure: error: proj_api.h not found in standard or given locations.
checking for proj_api.h... no
ERROR: configuration failed for package ‘lwgeom’
* removing ‘/home/runner/work/_temp/Library/lwgeom’

The downloaded source packages are in
    ‘/tmp/RtmpdW5KbT/downloaded_packages’
Warning message:
In i.p(...) : installation of package ‘lwgeom’ had non-zero exit status

sf installs and works fine, but lwgeom isn't. I am not very familiar with the GitHub actions so I am very likely missing something obvious and I have searched for example workflows that use lwgeom but couldn't find any.

I have a small package example at https://github.com/jhollist/testpkg.

Any obvious insights appreciated!

edzer commented 4 years ago

Hi Jeff! This has been solved in #28 - the github version for now.

jhollist commented 4 years ago

Perfect! Thanks, Edzer!

On Tue, Apr 14, 2020 at 4:54 PM Edzer Pebesma notifications@github.com wrote:

Hi Jeff! This has been solved in #28 https://github.com/r-spatial/lwgeom/issues/28 - the github version for now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/r-spatial/lwgeom/issues/54#issuecomment-613676342, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPYS4XHO7X7YAUHBJKCD3RMTEQ5ANCNFSM4MIBM6CA .

-- Jeffrey W. Hollister email: jeff.w.hollister@gmail.com cell: 401 556 4087 https://jwhollister.com

jhollist commented 4 years ago

That did the trick. Thanks and closing issue now!