Skip to content

Cannot build on Go 1.17 amd64 Linux - "could not determine kind of name for C.OAMS..." #80

@chris

Description

@chris

I'm attempting to build a Go program using this gdal lib on an Amazon EC2 Ubunutu 18.04 instance. I've installed Go directly via downloading Go 1.17.8 from the Go downloads page, and have installed GDAL via sudo apt-get install libgdal-dev. Note, my program builds and runs fine on Mac. I believe I am using the latest go package, my go.mod has:

	github.com/lukeroth/gdal v0.0.0-20211109203239-b571df3ee436

Here's what I get when I do go build:

# github.com/lukeroth/gdal
../../../go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/osr.go:18:49: could not determine kind of name for C.OAMS_AUTHORITY_COMPLIANT
../../../go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/osr.go:19:49: could not determine kind of name for C.OAMS_CUSTOM
../../../go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/osr.go:17:49: could not determine kind of name for C.OAMS_TRADITIONAL_GIS_ORDER
../../../go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/osr.go:39:39: could not determine kind of name for C.OSRAxisMappingStrategy
../../../go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/osr.go:39:2: could not determine kind of name for C.OSRSetAxisMappingStrategy

Any guidance on what I may be missing or not doing right would be appreciated. And/or let me know what other info to provide to help. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions