adrg / libvlc-go-examples

libvlc-go usage examples
MIT License
33 stars 5 forks source link

Cannot build "player.go" example #4

Closed stevstrong closed 3 weeks ago

stevstrong commented 1 year ago

Hi, I am struggling since one day with this issue, I have Go on Win 10, installed libvlc-go v3 following the readme.md, and wanted to build the basic player example. The output:

# command-line-arguments
.\player.go:12:16: undefined: vlc.Init
.\player.go:15:12: undefined: vlc.Release
.\player.go:18:21: undefined: vlc.NewPlayer

I am missing something for sure, but cannot find out what.

My environment on Win10:

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\user\AppData\Local\go-build
set GOENV=C:\Users\user\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\user\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\user\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.4
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=C:\Users\user\projects\go_test\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\user\AppData\Local\Temp\go-build3918217318=/tmp/go-build -gno-record-gcc-switches   

Exactly the same thing happens on Linux. Any idea?

adrg commented 3 weeks ago

Issue addressed at https://github.com/adrg/libvlc-go/issues/105. Closing.