Skip to content

macos build cross platform doesn't work #23

@dzpt

Description

@dzpt

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/goheif@v0.0.0-20200323230657-a0d6a8b3e68f/libde265/libde265-all.inl:37:
../pkg/mod/github.com/jdeng/goheif@v0.0.0-20200323230657-a0d6a8b3e68f/libde265/libde265/slice.cc:2447:9: warning: 'MAX_PREFIX' macro redefined [-Wmacro-redefined]
../pkg/mod/github.com/jdeng/goheif@v0.0.0-20200323230657-a0d6a8b3e68f/libde265/libde265/cabac.cc:419:9: note: previous definition is here
Error: exit status 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions