evmar / gocairo Goto Github PK
View Code? Open in Web Editor NEWautogenerated full golang bindings for cairo
License: Apache License 2.0
autogenerated full golang bindings for cairo
License: Apache License 2.0
Hi there,
I'd like to get this Go library building on my Raspberry Pi, but I keep getting this error
pi@raspberrypi:~/gocairo $ make [60/1945]go install github.com/martine/gocairo/cairo
# github.com/martine/gocairo/cairo
../go/src/github.com/martine/gocairo/cairo/path.go:43:13: type [1073741824]PathPoint larger than address space
../go/src/github.com/martine/gocairo/cairo/path.go:43:13: type [1073741824]PathPoint too large
../go/src/github.com/martine/gocairo/cairo/cairo.go:110:17: type [1073741824]_Ctype_cairo_path_data_t larger than address space
../go/src/github.com/martine/gocairo/cairo/cairo.go:110:17: type [1073741824]_Ctype_cairo_path_data_t too large
../go/src/github.com/martine/gocairo/cairo/cairo.go:3654:13: type [1073741824]_Ctype_cairo_svg_version_t larger than address space
../go/src/github.com/martine/gocairo/cairo/cairo.go:3654:13: type [1073741824]_Ctype_cairo_svg_version_t too large
Which I'm not exactly sure how to solve and would appreciate any pointers that people might have? I suspect it is due to the 32-bit architecture of the Raspbian distro, but am not totally sure.
Running uname on the Raspberry Pi reports the following:
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
While running https://github.com/dgryski/carbonapi with Go 1.6rc2, I got
http: panic serving 127.0.0.1:44456: runtime error: cgo argument has Go pointer to Go pointer
This error didn't happen with 1.5.
Cairo can draw the current surface as an SVG. However, this function is not exposed by the gocairo bindings.
Do you intend to support all of the Paths functions and types?
http://cairographics.org/manual/cairo-Paths.html
Thanks!
After some time spent downloading and building various prereqs (like cairo itself, and then fetching XQuartz and rebuilding cairo once I realized that gocairo uses the XLib bindings :), I run into this:
$ CGO_CFLAGS="-I/opt/X11/include" go get -x github.com/martine/gocairo/cairo
WORK=/var/folders/00/0t8g8000h01000cxqpysvccm00391x/T/go-build834049204
mkdir -p $WORK/github.com/martine/gocairo/cairo/_obj/
mkdir -p $WORK/github.com/martine/gocairo/
cd /Users/feinberg/go/src/github.com/martine/gocairo/cairo
pkg-config --cflags cairo
pkg-config --libs cairo
CGO_LDFLAGS="-g" "-O2" "-L/usr/local/lib" "-lcairo" /usr/local/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/github.com/martine/gocairo/cairo/_obj/ -- -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I $WORK/github.com/martine/gocairo/cairo/_obj/ -I/opt/X11/include cairo.go util.go
# github.com/martine/gocairo/cairo
could not determine kind of name for C.CAIRO_STATUS_JBIG2_GLOBAL_MISSING
could not determine kind of name for C.cairo_surface_get_device_scale
could not determine kind of name for C.cairo_surface_set_device_scale
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.