-
Notifications
You must be signed in to change notification settings - Fork 81
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
"pangolayout not defined" in Ubuntu #56
Comments
There are some lines of code missing from # Backend used to compute text extents.
ccall((:g_type_init, "libgobject-2.0"), Void, ())
const pango_cairo_fm = ccall((:pango_cairo_font_map_new, libpangocairo),
Ptr{Void}, ())
const pango_cairo_ctx = ccall((:pango_font_map_create_context, libpango),
Ptr{Void}, (Ptr{Void},), pango_cairo_fm)
# Thin wrapper for a pango_layout object.
type PangoLayout
layout::Ptr{Void}
function PangoLayout()
layout = ccall((:pango_layout_new, libpango),
Ptr{Void}, (Ptr{Void},), pango_cairo_ctx)
# TODO: finalizer?
new(layout)
end
end
# We can get away with just one layout.
const pangolayout = PangoLayout() |
Thank you al-Khwarizmi .. Indeed this solves the problem, in my case it was only a matter of adding the "const pangolayout = PangoLayout()" and that did the trick. Thank you so much. Jimmy. |
This should be fixed after updating. Sorry to temporarily break 0.2 support like this. |
Sorry to be reviving this thread but I seem to be getting this error after recently updating my setup. I am using master branch Gadfly and master branch of Compose.jl in order to run on julia v0.7 and I get the same error "pangolayout not defined" which then goes away when I add "const pangolayout = PangoLayout()" to pango.jl |
you need to |
I have a fresh installation of Ubuntu 14.04, with julia version 0.2.1.
I tried to reproduce those magnificent plot from Gadfly demo
but I get an error (both when run from IPython and Julia terminal)
Apparently, c-libraries themselves are installed and Julia bindings are too.
Am I doing something incorrectly?
The text was updated successfully, but these errors were encountered: