FAQ
So I somehow managed to compile all libraries needed for cairo.
Now i have this folder structure:

src
--cairo
----(lot of C header files here)
----cairo.lib
--gocairo
----(bindings from https://github.com/ungerik/go-cairo here)
--painttest.go <- my main file to check if everything is working


Trying to run all that with command:
go run "-gccgoflags=-L src/cairo/ -lcairo-static" C:/Users/Fenx/IdeaProjects
/DrawServer3/src/painttest.go


Getting errors like:
# gocairo
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o
: In function `_cgo_a5472978ebd0_Cfunc_cairo_format_stride_for_width':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:40: undefined
reference to `cairo_format_stride_for_width'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o:
In function `_cgo_a5472978ebd0_Cfunc_cairo_pdf_version_to_string':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:51: undefined
reference to `cairo_pdf_version_to_string'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o:
In function `_cgo_a5472978ebd0_Cfunc_cairo_ps_level_to_string':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:62: undefined
reference to `cairo_ps_level_to_string'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o
: In function `_cgo_a5472978ebd0_Cfunc_cairo_status_to_string':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:73: undefined
reference to `cairo_status_to_string'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o:
In function `_cgo_a5472978ebd0_Cfunc_cairo_svg_version_to_string':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:84: undefined
reference to `cairo_svg_version_to_string'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o:
In function `_cgo_a5472978ebd0_Cfunc_cairo_version':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:94: undefined
reference to `cairo_version'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\cairo.cgo2.o
: In function `_cgo_a5472978ebd0_Cfunc_cairo_version_string':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/cairo.go:103: undefined
reference to `cairo_version_string'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\matrix.cgo2.o:
In function `_cgo_a5472978ebd0_Cfunc_cairo_matrix_invert':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/matrix.go:75: undefined
reference to `cairo_matrix_invert'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\matrix.cgo2.o:
In function `_cgo_a5472978ebd0_Cfunc_cairo_matrix_init_identity':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/matrix.go:32: undefined
reference to `cairo_matrix_init_identity'
C:\Users\Fenx\AppData\Local\Temp\go-build726188299\gocairo\_obj\matrix.cgo2.
o: In function `_cgo_a5472978ebd0_Cfunc_cairo_matrix_init_rotate':
C:/Users/Fenx/IdeaProjects/DrawServer3/src/gocairo/matrix.go:42: undefined
reference to `cairo_matrix_init_rotate'

I assume library isn't linked propertly. Can please somebody help me with
that?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJul 21, '14 at 4:20p
activeJul 21, '14 at 4:20p
posts1
users1
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase