# PackageCompiler: Integration of mingw-w64

**URL:** <https://discourse.julialang.org/t/packagecompiler-integration-of-mingw-w64/94448>\
**Category:** General Usage\
**Tags:** package-compiler\
**Created:** [February 11, 2023, 12:42am UTC](https://discourse.julialang.org/t/packagecompiler-integration-of-mingw-w64/94448 "2023-02-11T00:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 11, 2023, 12:42am UTC](https://discourse.julialang.org/t/packagecompiler-integration-of-mingw-w64/94448/1 "2023-02-11T00:42:59Z")

</div>

I have problems to integrate properly the `mingw-w64` compiler and header files into my  
project for application compiling via `PackageCompiler`.  
I found one tread in the package home page:  
[`compile_app()` fails to build if paths are used (on Windows)](https://github.com/JuliaLang/PackageCompiler.jl/issues/721)  
In the root directory of the package `PackageCompiler` you can find in the `Artifacts.toml`  
the following entry:

```julia
[[mingw-w64]]
arch = "x86_64"
git-tree-sha1 = "fdff308295487f361ef6e8dc2d27f5abe8a6eee9"
os = "windows"
lazy = true

    [[mingw-w64.download]]
    sha256 = "fe3f401bc936fbe6af940b26c5e0f266f762a3416f979c706e599b24082dc5c7"
    url = "https://github.com/JuliaLang/PackageCompiler.jl/releases/download/v1.0.0/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.tar.gz"

[[mingw-w64]]
arch = "i686"
git-tree-sha1 = "bc760d8ef1b4840e55a36bd361587b4975af811f"
os = "windows"
lazy = true

    [[mingw-w64.download]]
    sha256 = "ab0abb76384ce9b657141d3a54150d0b865f9c06576caa7901a6c8429c9008e5"
    url = "https://github.com/JuliaLang/PackageCompiler.jl/releases/download/v1.0.0/i686-8.1.0-release-posix-sjlj-rt_v6-rev0.tar.gz"

```

the `git-tree-sha1` number `fdff308295487f361ef6e8dc2d27f5abe8a6eee9` fond there  
is identical to the one that is part of the error message during compilation, now I wonder  
how can I fix this issue

```julia
ERROR: IOError: open("MyAppCompiled\\share\\julia\\artifacts\\fdff308295487f361ef6e8dc2d27f5abe8a6eee9\\

```

What is the trick to avoid this compilation error?

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 11, 2023, 9:18pm UTC](https://discourse.julialang.org/t/packagecompiler-integration-of-mingw-w64/94448/2 "2023-02-11T21:18:30Z")

</div>

I still do not know the reason for this issue, I faced this issue during the attempt to simplify and modify the rather complex example included in the package [PackageCompiler.jl](https://github.com/JuliaLang/PackageCompiler.jl/tree/master/examples/MyApp).  
Meanwhile I managed to set-up two projects containing interactive GLMakie figures and I was able to compile them under JuliaLTS and Julia v1.8.5:  
[GLMakie Applications](https://github.com/StefanPofahl/Stefans_Julia_RePo/blob/main/AppDir/README_AppDir.md)
