Code Monkey home page Code Monkey logo

Comments (4)

sergystepanov avatar sergystepanov commented on May 24, 2024

Hi,
could you show the output of these commands: go env and then go build -x ./cmd/worker/?

from cloud-game.

yangyuguo avatar yangyuguo commented on May 24, 2024

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.

sergystepanov avatar sergystepanov commented on May 24, 2024

Try with the env variable CGO_ENABLED=1 (it is disabled on your system for some reason).

from cloud-game.

yangyuguo avatar yangyuguo commented on May 24, 2024

I set CGO_ENABLED=1 ,now it works!Thank you for your enthusiastic help!

from cloud-game.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.