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

Cannot build on Windows with given command #2

Open
amortaza opened this issue Apr 3, 2021 · 2 comments
Open

Cannot build on Windows with given command #2

amortaza opened this issue Apr 3, 2021 · 2 comments

Comments

@amortaza
Copy link

amortaza commented Apr 3, 2021

On Windows 10, using GCC 9.2.0, Go version 1.15.5 windows/amd64

Using command

go get github.com/golang-ui/cairo/cmd/cairo-example-glfw
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b047\_x002.o: in function `_cgo_612e7540b286_Cfunc_cairo_arc':
/tmp/go-build/cgo-gcc-prolog:67: undefined reference to `cairo_arc'
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b047\_x002.o: in function `_cgo_612e7540b286_Cfunc_cairo_arc_negative':
/tmp/go-build/cgo-gcc-prolog:84: undefined reference to `cairo_arc_negative'
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b047\_x002.o: in function `_cgo_612e7540b286_Cfunc_cairo_clip_extents':
/tmp/go-build/cgo-gcc-prolog:112: undefined reference to `cairo_clip_extents'
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b047\_x002.o: in function `_cgo_612e7540b286_Cfunc_cairo_copy_clip_rectangle_list':
/tmp/go-build/cgo-gcc-prolog:151: undefined reference to `cairo_copy_clip_rectangle_list'

And so on...

Any help would be appreciated.

@xlab
Copy link
Member

xlab commented Apr 3, 2021

Seems that the headers version and your shared objects (DLL) are mismatching. The ABI is different

@xlab
Copy link
Member

xlab commented Apr 5, 2021

Oh, btw I remembered that by default this package builds only on macOS. Since it has static libs built-in and proper flags only for that platform. I coded it while was moving on train for half a day, so didn't have motivation nor time to extend it beyond that trip xD

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

2 participants