Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos build cross platform doesn't work #23

Open
dzpt opened this issue Aug 7, 2022 · 0 comments
Open

macos build cross platform doesn't work #23

dzpt opened this issue Aug 7, 2022 · 0 comments

Comments

@dzpt
Copy link

dzpt commented Aug 7, 2022

CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc go build -platform windows
go version go1.18.4 darwin/amd64

ld: warning: ignoring file $WORK/b054/_x001.o, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x64 0x86 0x0A 0x00 0x00 0x00 0x00 0x00 0xCE 0x03 0x00 0x00 0x14 0x00 0x00 0x00 )
ld: warning: ignoring file $WORK/b054/_cgo_main.o, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x64 0x86 0x11 0x00 0x00 0x00 0x00 0x00 0xF0 0x0B 0x00 0x00 0x2C 0x00 0x00 0x00 )
ld: warning: ignoring file $WORK/b054/_x002.o, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x64 0x86 0x0E 0x00 0x00 0x00 0x00 0x00 0x22 0x44 0x00 0x00 0x40 0x00 0x00 0x00 )
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: _de265_get_version_number_maintenance)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
# github.com/jdeng/goheif/libde265
In file included from libde265.cc:2:
In file included from ../pkg/mod/github.com/jdeng/[email protected]/libde265/libde265-all.inl:37:
../pkg/mod/github.com/jdeng/[email protected]/libde265/libde265/slice.cc:2447:9: warning: 'MAX_PREFIX' macro redefined [-Wmacro-redefined]
../pkg/mod/github.com/jdeng/[email protected]/libde265/libde265/cabac.cc:419:9: note: previous definition is here
Error: exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant