Skip to content

Cannot compile for Linux #21

Description

@dacalin

It works well for windows and mac. But when I try to compile for Linux using this command:
GOOS=linux GOARCH=arm64 go build -o ../bin/card-reader-driver-amd64-linux

I get:

github.com/ebfe/scard

../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:35:12: undefined: scardEstablishContext
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:45:7: undefined: scardIsValidContext
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:58:7: undefined: scardCancel
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:67:7: undefined: scardReleaseContext
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:76:15: undefined: scardListReaders
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:81:14: undefined: strbuf
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:271:11: undefined: strbuf
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:275:11: undefined: strbuf
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:291:37: undefined: strbuf
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:304:21: undefined: strbuf
../../../../go/pkg/mod/github.com/ebfe/scard@v0.0.0-20230420082256-7db3f9b7c8a7/scard.go:81:14: too many errors

Any idea?

I tried to compile it from mac and linux machines.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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