LdDl / go-darknet

Go bindings for Darknet (YOLO v4 / v7-tiny / v3)
Apache License 2.0
82 stars 19 forks source link

[BUG] Build error on golang:1.15.7-alpine3.13 docker image #17

Closed arthurhenrique closed 3 years ago

arthurhenrique commented 3 years ago

Describe the bug #20 4.538 vendor/github.com/LdDl/go-darknet/network.go:61:2: could not determine kind of name for C.free_network_ptr

To Reproduce Docker: golang:1.15.7-alpine3.13 Run: CGO_ENABLED=1 go install -v -a --installsuffix --ldflags="-s"

Expected behavior #20 4.538 vendor/github.com/LdDl/go-darknet/network.go:61:2: could not determine kind of name for C.free_network_ptr

arthurhenrique commented 3 years ago

I think you should rollback this https://github.com/LdDl/go-darknet/pull/16/commits/40df8cce9143f5f46d4ea82482c96dd4ca32168b

LdDl commented 3 years ago

I forgot that we have had docker-build :) I'll check it later. Have not that much time due the regular job to be honest...