Comments (4)
Hi,
could you show the output of these commands: go env
and then go build -x ./cmd/worker/
?
from cloud-game.
Hello!
go env comand:
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/root1/Document/go/go/bin"
GOCACHE="/Users/root1/Library/Caches/go-build"
GOENV="/Users/root1/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE="gitlab.kpy.com"
GOMODCACHE="/Users/root1/go/pkg/mod"
GONOPROXY="gitlab.kpy.com"
GONOSUMDB="gitlab.kpy.com"
GOOS="linux"
GOPATH="/Users/root1/go"
GOPRIVATE="gitlab.kpy.com"
GOPROXY="http://mirrors.aliyun.com/goproxy/"
GOROOT="/Users/root1/Document/go/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/root1/Document/go/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="0"
GOMOD="/Users/root1/Downloads/cloud-desk/server/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5_/w_5tmz1n2m5cjryngxcjzr7m0000gn/T/go-build1190487919=/tmp/go-build -gno-record-gcc-switches"
command go build -x ./cmd/worker/:
WORK=/var/folders/5_/w_5tmz1n2m5cjryngxcjzr7m0000gn/T/go-build155744172
mkdir -p $WORK/b306/
cat >$WORK/b306/importcfg << 'EOF' # internal
import config
EOF
cd /Users/root1/Downloads/cloud-game
/Users/root1/Document/go/go/pkg/tool/darwin_amd64/compile -o $WORK/b306/pkg.a -trimpath "$WORK/b306=>" -p github.com/giongto35/cloud-game/v2/pkg/encoder/yuv -lang=go1.13 -complete -buildid 4f32F6mkhXIOiuzmPqqR/4f32F6mkhXIOiuzmPqqR -goversion go1.16.4 -D "" -importcfg $WORK/b306/importcfg -pack -c=4 ./pkg/encoder/yuv/options.go
github.com/giongto35/cloud-game/v2/pkg/encoder/yuv
pkg/encoder/yuv/options.go:4:11: undefined: ChromaPos
pkg/encoder/yuv/options.go:29:17: undefined: ChromaPos
mkdir -p $WORK/b308/
cat >$WORK/b308/importcfg << 'EOF' # internal
import config
packagefile fmt=/Users/root1/Document/go/go/pkg/linux_amd64/fmt.a
packagefile github.com/hashicorp/go-multierror=/Users/root1/Library/Caches/go-build/7b/7bc50c64c3f67dfa07b5e5c3460ffd1befbfbfece2ebeb5c0d532a3e06c9c1f7-d
EOF
mkdir -p $WORK/b304/
/Users/root1/Document/go/go/pkg/tool/darwin_amd64/compile -o $WORK/b308/pkg.a -trimpath "$WORK/b308=>" -p github.com/giongto35/cloud-game/v2/pkg/encoder/opus -lang=go1.13 -complete -buildid 2ETk2vldPnkrxavQE6DI/2ETk2vldPnkrxavQE6DI -goversion go1.16.4 -D "" -importcfg $WORK/b308/importcfg -pack -c=4 ./pkg/encoder/opus/encoder.go
cat >$WORK/b304/importcfg << 'EOF' # internal
import config
packagefile io/ioutil=/Users/root1/Library/Caches/go-build/f9/f9f27a5afa599642bc3c9ecf9ff4e1de82ed12f525b3865082b28d903a4d11af-d
packagefile path/filepath=/Users/root1/Library/Caches/go-build/f9/f9b57a823e0c96d7b360847c1f5e6427d8d9f2c2dee464ac8dd4316d9cd71201-d
packagefile sync=/Users/root1/Document/go/go/pkg/linux_amd64/sync.a
EOF
/Users/root1/Document/go/go/pkg/tool/darwin_amd64/compile -o $WORK/b304/pkg.a -trimpath "$WORK/b304=>" -p github.com/giongto35/cloud-game/v2/pkg/emulator/libretro/nanoarch -lang=go1.13 -complete -buildid yUdptAycvtnytcsXVvbn/yUdptAycvtnytcsXVvbn -goversion go1.16.4 -D "" -importcfg $WORK/b304/importcfg -pack -c=4 ./pkg/emulator/libretro/nanoarch/input.go ./pkg/emulator/libretro/nanoarch/persistence.go ./pkg/emulator/libretro/nanoarch/storage.go
github.com/giongto35/cloud-game/v2/pkg/encoder/opus
pkg/encoder/opus/encoder.go:10:2: undefined: LibOpusEncoder
pkg/encoder/opus/encoder.go:16:18: undefined: NewOpusEncoder
pkg/encoder/opus/encoder.go:16:50: undefined: AppRestrictedLowdelay
github.com/giongto35/cloud-game/v2/pkg/emulator/libretro/nanoarch
pkg/emulator/libretro/nanoarch/persistence.go:7:11: undefined: naEmulator
pkg/emulator/libretro/nanoarch/persistence.go:11:18: undefined: getSaveRAM
pkg/emulator/libretro/nanoarch/persistence.go:14:23: undefined: getSaveState
pkg/emulator/libretro/nanoarch/persistence.go:22:11: undefined: naEmulator
pkg/emulator/libretro/nanoarch/persistence.go:27:3: undefined: restoreSaveRAM
pkg/emulator/libretro/nanoarch/persistence.go:30:10: undefined: restoreSaveState
Thanks very much!
from cloud-game.
Try with the env variable CGO_ENABLED=1 (it is disabled on your system for some reason).
from cloud-game.
I set CGO_ENABLED=1 ,now it works!Thank you for your enthusiastic help!
from cloud-game.
Related Issues (20)
- Error "couldn't find 'n load the lib" starting a game HOT 2
- Very slow video performance HOT 16
- error Debian 11 EC2: folder build already exist to first make HOT 3
- Only 2 person can control the game characters HOT 9
- Fix busy-wait termination with OpenGL HOT 1
- Game not starting as expected. Tried in GCP (Debian and Ubuntu) servers HOT 4
- Seems like only webui is loaded HOT 2
- dosbox_pure_libretro.so keyboard mapping HOT 11
- controller support (game controller mode) for edge(chromium) on xbox one/series consoles
- To fix Libretro generated file paths HOT 1
- error: core mapping not found for darwin:arm64 HOT 2
- Site not working HOT 3
- Can I change the streaming screen to a desktop or a the program's ui? HOT 1
- handle save/load for no SRM cores HOT 1
- Issue with N64 emulation crashing on launch and crashing on share in docker image HOT 7
- Support function parameters when bypassing LibCo cores HOT 1
- make dev-run error~ HOT 1
- unable to use turn servers with credentials or multiple stun servers. HOT 4
- Only player one slot works HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-game.