# Compiling Gtk UI app with PackageCompiler

**URL:** <https://discourse.julialang.org/t/compiling-gtk-ui-app-with-packagecompiler/92022>\
**Category:** General Usage\
**Tags:** package-compiler, gtk\
**Created:** [December 22, 2022, 9:00pm UTC](https://discourse.julialang.org/t/compiling-gtk-ui-app-with-packagecompiler/92022 "2022-12-22T21:00:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sschmidhuber](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sschmidhuber/32/13349_2.png) [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Post date:** [December 22, 2022, 9:00pm UTC](https://discourse.julialang.org/t/compiling-gtk-ui-app-with-packagecompiler/92022/1 "2022-12-22T21:00:44Z")

</div>

Hello all,  
I wrote a little desktop application with a Gtk frontend, it works fine in general, just the start up time is long. After that it works nicely. Also I would like to run it on machines without an Julia environment.

Therefore I would like to create a relocateable app. Unfortunately, after creating an app with PackageCompiler (no errors during compilation), I get the following error:

```julia
$ ./compiled/bin/FormEvaluationTool 
Gtk-Message: 21:28:08.829: Failed to load module "xapp-gtk3-module"

(FormEvaluationTool:7974): Gtk-CRITICAL **: 21:28:09.178: gtk_builder_get_object: assertion 'GTK_IS_BUILDER (builder)' failed
UndefRefError: access to undefined reference

```

I think the first warning about “xapp-gtk3-module” is not relevant, but I’m not sure if and how I can fix the other?

Also the Gtk.jl documentation states:

> On very old Julia versions, you can use [PackageCompiler](https://github.com/JuliaLang/PackageCompiler.jl). Be aware that this has [downsides](https://julialang.github.io/PackageCompiler.jl/dev/sysimages/#Drawbacks-to-custom-sysimages-1) and should not be necessary on modern versions of Julia.

But I’m not sure what that’s supposed to mean, because the link about the drawbacks just gives me an 404.
