GR.jl icon indicating copy to clipboard operation
GR.jl copied to clipboard

Does not work with PackageCompiler.jl create_app

Open rustyconover opened this issue 4 years ago • 3 comments

Hi,

When building an app using GR using PackageCompiler.jl it seems some artifacts are not included. Namely the font directory (which uses hardcoded paths) and at runtime there are errors with:

ErrorException("could not load library "libGR.so"\nlibGR.so: cannot open shared object file: No such file or directory")

Rusty

rustyconover avatar Jan 20 '21 14:01 rustyconover

I think this is an issue for Yggdrasil.

jheinen avatar Jan 20 '21 15:01 jheinen

I think we have to add a FileProduct for the fonts directory (as described here), but i don't see how to add a complete directory.

jheinen avatar Jan 20 '21 15:01 jheinen

It seems like the fonts would be considered artifacts.

The relevant example may be:

https://github.com/staticfloat/Gtk.jl/blob/e500dcadaa8bf3571d27b0ac7cd92ef00febcb1f/src/Gtk.jl#L82-L111

Whereas GTK uses GDK_PIXBUF_MODULEDIR which contains its modules.

I'm quite new to Julia packaging, but I'm unaware of how to test the Yggdrasil scripts if I wanted to make a PR.

rustyconover avatar Jan 21 '21 02:01 rustyconover