# \[ANN\] Mousetrap, the new Julia GUI Engine, now supports GLMakie & macOS

**URL:** <https://discourse.julialang.org/t/ann-mousetrap-the-new-julia-gui-engine-now-supports-glmakie-macos/105252>\
**Category:** Package Announcements\
**Tags:** package, announcement\
**Created:** [October 20, 2023, 9:27pm UTC](https://discourse.julialang.org/t/ann-mousetrap-the-new-julia-gui-engine-now-supports-glmakie-macos/105252 "2023-10-20T21:27:11Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [May 26, 2025, 5:16pm UTC](https://discourse.julialang.org/t/ann-mousetrap-the-new-julia-gui-engine-now-supports-glmakie-macos/105252/14 "2025-05-26T17:16:20Z")

</div>

I could install in 1.11 on Linux but not run (seemingly can work, and on Windows, see below):

```julia
(pharaldsson) pkg> st
Status `~/Project.toml`
  [ac6e5ff7] JuliaSyntaxHighlighting v0.1.0
  [5deeb4b9] Mousetrap v0.3.3 `https://github.com/HyperSphereStudio/Mousetrap.jl#main`
  [287f9a42] libmousetrap_jll v0.3.0+0 `https://github.com/Clemapfel/mousetrap_jll#main`

julia> using Mousetrap
Precompiling Mousetrap...
Info Given Mousetrap was explicitly requested, output will be shown live 
ERROR: LoadError: InitError: could not load library "/home/pharaldsson/.julia/artifacts/b292ae2e313d5ab559c9838dfb8390f192b4f3b8/lib/libmousetrap_julia_binding.so"
libjulia.so.1: cannot open shared object file: No such file or directory

```

What might work for others is this fork, note different name with lib in front (but not for me since it’s not build for Linux only Windows, should be fixable):

```julia
(pharaldsson) pkg> add https://github.com/HyperSphereStudio/libmousetrap_jll
    Updating git-repo `https://github.com/HyperSphereStudio/libmousetrap_jll`
   Resolving package versions...
    Updating `~/Project.toml`
  [287f9a42] ~ libmousetrap_jll v0.3.0+0 `https://github.com/Clemapfel/mousetrap_jll#main` ⇒ v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
    Updating `~/Manifest.toml`
  [287f9a42] ~ libmousetrap_jll v0.3.0+0 `https://github.com/Clemapfel/mousetrap_jll#main` ⇒ v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
Precompiling project...
  ✗ Mousetrap
  1 dependency successfully precompiled in 5 seconds. 177 already precompiled.
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

Mousetrap 

Failed to precompile Mousetrap [5deeb4b9-6e04-4da7-8b7f-c77fb1eae65e] to "/home/pharaldsson/.julia/compiled/v1.11/Mousetrap/jl_ckrovz".
ERROR: LoadError: UndefVarError: `mousetrap_julia_binding` not defined in `libmousetrap_jll`

```

> **[Build software better, together](https://github.com/search?q=repo%3AHyperSphereStudio%2Flibmousetrap_jll%2Blibmousetrap_julia&type=code)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

> [src/wrappers/x86\_64-w64-mingw32-julia\_version+1.11.jl](https://github.com/HyperSphereStudio/libmousetrap_jll/blob/583549a2fb40b25a02f8903d27e3a68889c9d819/src/wrappers/x86_64-w64-mingw32-julia_version%2B1.11.jl#L11)  
> ..  
> “bin\libmousetrap\_julia\_binding-0.dll”,

> [@In 1.11 and 1.10: ERROR: expected package \`JuliaSyntaxHighlighting \[dc6e5ff7\]\` to be registered](https://discourse.julialang.org/t/in-1-11-and-1-10-error-expected-package-juliasyntaxhighlighting-dc6e5ff7-to-be-registered/122555):
>
> What is it about? I removed my ./Project.toml file just in case, then: $ julia +1.11 --project=. julia\> using JSON .. Resolving package versions... ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered also when adding it directly: pkg\> add JuliaSyntaxHighlighting Resolving package versions... ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered I find old workaround (do not remove .julia, then at least move it): I was able to solve …

This should work (maybe it does for you, ~~I forget the reason for this error~~ ), in 1.11.5:

I fixed old error by [re]moving Manifest.toml file:

```julia
julia --project=.

(pharaldsson) pkg> add https://github.com/HyperSphereStudio/Mousetrap.jl
    Updating git-repo `https://github.com/HyperSphereStudio/Mousetrap.jl`
   Resolving package versions...
ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered

```

In my current env for 1.10.5 I’m currently testing:

```julia
(pharaldsson) pkg> add https://github.com/HyperSphereStudio/Mousetrap.jl
    Updating git-repo `https://github.com/HyperSphereStudio/Mousetrap.jl`
   Resolving package versions...
ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered
(@v1.10) pkg> add https://github.com/HyperSphereStudio/Mousetrap.jl
    Updating git-repo `https://github.com/HyperSphereStudio/Mousetrap.jl`
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package libmousetrap_jll [287f9a42]:
 libmousetrap_jll [287f9a42] log:
 ├─libmousetrap_jll [287f9a42] has no known versions!
 └─restricted to versions * by Mousetrap [5deeb4b9] — no versions left
   └─Mousetrap [5deeb4b9] log:
     ├─possible versions are: 0.3.3 or uninstalled
     └─Mousetrap [5deeb4b9] is fixed to version 0.3.3

(@v1.10) pkg> add https://github.com/HyperSphereStudio/libmousetrap_jll
     Cloning git-repo `https://github.com/HyperSphereStudio/libmousetrap_jll`
    Updating git-repo `https://github.com/HyperSphereStudio/libmousetrap_jll`
   Resolving package versions...
    Updating `~/.julia/environments/v1.10/Project.toml`
  [287f9a42] + libmousetrap_jll v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
    Updating `~/.julia/environments/v1.10/Manifest.toml`
  [bde7f898] + GLEW_jll v2.2.0+0
  [bd17208b] + GLU_jll v9.0.1+0
  [cc7be9be] + OpenGLMathematics_jll v0.9.9+0
  [583852a3] + libadwaita_jll v1.3.6+0
  [287f9a42] + libmousetrap_jll v0.4.8+0 `https://github.com/HyperSphereStudio/libmousetrap_jll#main`
  [05823500] ↑ OpenLibm_jll v0.8.1+2 ⇒ v0.8.1+4
Precompiling packages [=========================>] 400/664
  ✗ Cxx
  ◑ JuliaFormatter
  ◐ TiffImages
  ◐ Polynomials

```

> [@In 1.11 and 1.10: ERROR: expected package \`JuliaSyntaxHighlighting \[dc6e5ff7\]\` to be registered](https://discourse.julialang.org/t/in-1-11-and-1-10-error-expected-package-juliasyntaxhighlighting-dc6e5ff7-to-be-registered/122555):
>
> What is it about? I removed my ./Project.toml file just in case, then: $ julia +1.11 --project=. julia\> using JSON .. Resolving package versions... ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered also when adding it directly: pkg\> add JuliaSyntaxHighlighting Resolving package versions... ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered I find old workaround (do not remove .julia, then at least move it): I was able to solve …

```julia
julia> Pkg.add(PackageSpec(url="https://github.com/JuliaLang/JuliaSyntaxHighlighting.jl", rev="dc6e5ff7"))
    Updating git-repo `https://github.com/JuliaLang/JuliaSyntaxHighlighting.jl`
ERROR: Did not find rev dc6e5ff7 in repository

julia> Pkg.add(PackageSpec(url="https://github.com/JuliaLang/JuliaSyntaxHighlighting.jl", rev="b666d3c"))
   Resolving package versions...
ERROR: expected package `JuliaSyntaxHighlighting [dc6e5ff7]` to be registered

```

---

_[View the full topic](https://discourse.julialang.org/t/ann-mousetrap-the-new-julia-gui-engine-now-supports-glmakie-macos/105252)._
