#18
failed to run `go run github.com/xlab/libvpx-go/cmd/webm-player@latest`
Hi,
I tried to run the command, but failed like this:
% go run github.com/xlab/libvpx-go/cmd/webm-player@latest
go: finding module for package github.com/golang-ui/nuklear/nk
go: finding module for package github.com/xlab/vorbis-go/decoder
go: finding module for package github.com/xlab/opus-go/opus
go: finding module for package github.com/xlab/closer
go: finding module for package github.com/go-gl/gl/v3.2-core/gl
go: finding module for package github.com/ebml-go/webm
go: finding module for package github.com/go-gl/glfw/v3.2/glfw
go: finding module for package github.com/xlab/vorbis-go/vorbis
go: finding module for package github.com/xlab/portaudio-go/portaudio
go: found github.com/ebml-go/webm in github.com/ebml-go/webm v0.0.0-20221117133942-84fa5245cf70
go: found github.com/go-gl/gl/v3.2-core/gl in github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71
go: found github.com/go-gl/glfw/v3.2/glfw in github.com/go-gl/glfw v0.0.0-20240506104042-037f3cc74f2a
go: found github.com/golang-ui/nuklear/nk in github.com/golang-ui/nuklear v0.0.0-20231115163627-2440a671efc5
go: found github.com/xlab/closer in github.com/xlab/closer v1.1.0
go: found github.com/xlab/opus-go/opus in github.com/xlab/opus-go v0.0.0-20160927191724-e36bd15a5261
go: found github.com/xlab/portaudio-go/portaudio in github.com/xlab/portaudio-go v0.0.0-20170905165025-132d041879db
go: found github.com/xlab/vorbis-go/decoder in github.com/xlab/vorbis-go v0.0.0-20210911202351-b5b85f1ec645
go: found github.com/xlab/vorbis-go/vorbis in github.com/xlab/vorbis-go v0.0.0-20210911202351-b5b85f1ec645
# github.com/go-gl/glfw/v3.2/glfw
In file included from go/pkg/mod/github.com/go-gl/glfw@v0.0.0-20240506104042-037f3cc74f2a/v3.2/glfw/c_glfw_darwin.go:8:
go/pkg/mod/github.com/go-gl/glfw@v0.0.0-20240506104042-037f3cc74f2a/v3.2/glfw/glfw/src/cocoa_window.m:989:9: warning: multiple methods named 'center' found [-Wobjc-multiple-method-names]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionViewCompositionalLayout.h:602:19: note: using
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:417:1: note: also found
# github.com/xlab/opus-go/opus
go/pkg/mod/github.com/xlab/opus-go@v0.0.0-20160927191724-e36bd15a5261/opus/cgo_helpers.go:10:10: fatal error: 'opus/opus.h' file not found
#include "opus/opus.h"
^~~~~~~~~~~~~
1 error generated.
# github.com/golang-ui/nuklear/nk
cgo-dwarf-inference:1:17: error: expected identifier or '{'
__typeof__(enum ) *__cgo__0;
^
cgo-dwarf-inference:1:28: error: expected ')'
__typeof__(enum ) *__cgo__0;
^
cgo-dwarf-inference:1:11: note: to match this '('
__typeof__(enum ) *__cgo__0;
^
2 errors generated.Opus is installed by brew. I can confirm this was installed correctly:
% pkg-config --cflags opus
-I/opt/homebrew/Cellar/opus/1.5.2/include/opusMy environment is like this:
..' hajimehoshi@Hajimes-MacBook-Pro
,xNMM. -------------------------------
.OMMMMo OS: macOS 15.0.1 arm64
lMM" Host: MacBook Pro (14-inch, Nov 2023, Three Thunderbolt 4 ports)
.;loddo:. .olloddol;. Kernel: 24.0.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 6 days, 22 hours, 26 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 148 (brew), 2 (brew-cask)
XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: zsh 5.9
;MMMMMMMMMMMMMMMMMMMMMMMM: Display (Color LCD): 3600x2338 @ 120Hz (as 1800x1169) [Built-in]
:MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Quartz Compositor
kMMMMMMMMMMMMMMMMMMMMMMMMWd. WM Theme: Multicolor (Light)
'XMMMMMMMMMMMMMMMMMMMMMMMMMMk Font: .AppleSystemUIFont [System], Helvetica [User]
'XMMMMMMMMMMMMMMMMMMMMMMMMK. Cursor: Fill - Black, Outline - White (32px)
kMMMMMMMMMMMMMMMMMMMMMMd Terminal: tmux 3.3a
;KMMMMMMMWXXWMMMMMMMk. CPU: Apple M3 Pro (12) @ 4.06 GHz
"cooc*" "*coo'" GPU: Apple M3 Pro (18) [Integrated]
Memory: 14.76 GiB / 18.00 GiB (82%)
Swap: 13.02 GiB / 14.00 GiB (93%)
Disk (/): 318.85 GiB / 926.35 GiB (34%) - apfs [Read-only]
Local IP (en0): 192.168.0.10/24 *
Battery: 80% [AC connected]
Power Adapter: 96W USB-C Power Adapter
Locale: C% go version
go version go1.23.1 darwin/arm64% go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/hajimehoshi/Library/Caches/go-build'
GOENV='/Users/hajimehoshi/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/hajimehoshi/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/hajimehoshi/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.1'
GODEBUG=''
GOTELEMETRY='on'
GOTELEMETRYDIR='/Users/hajimehoshi/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/cj/73zbb35j0qx5t4b6rnqq0__h0000gn/T/go-build3600191535=/tmp/go-build -gno-record-gcc-switches -fno-common'Thanks,
Activity
0No activity yet.