Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

using Gtk Failed #596

Closed
liushang0322 opened this issue Nov 22, 2021 · 8 comments
Closed

using Gtk Failed #596

liushang0322 opened this issue Nov 22, 2021 · 8 comments

Comments

@liushang0322
Copy link

julia> using Gtk
[ Info: Precompiling Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44]
ERROR: LoadError: LoadError: InitError: could not load library "D:\TongYuan.julia\artifacts\e5872943f1078a6397a4f4d0f760db959ec50630\bin\libffi-6.dll"
The specified module could not be found.

...

during initialization of module Libffi_jll
in expression starting at D:\TongYuan.julia\packages\GTK3_jll\ebBBZ\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at D:\TongYuan.julia\packages\GTK3_jll\ebBBZ\src\GTK3_jll.jl:2

...

Failed to precompile Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44] to D:\TongYuan.julia\compiled\v1.6\Gtk\jl_B81A.tmp.

@JeffFessler
Copy link
Contributor

It might help to report what version of Julia you are using and what version of Gtk.jl and exactly what OS (presumably some version of Windows from the paths shown).

@Leticia-maria
Copy link

Leticia-maria commented Jan 21, 2022

Hey, @JeffFessler I had the same problem of @liushang0322. I'm using Ubuntu 20.04 and Julia 1.7.1

in expression starting at /home/leticia/.julia/packages/Cairo/smWIA/src/Cairo.jl:1
in expression starting at /home/leticia/.julia/packages/Gtk/vBOOU/src/Gtk.jl:2
ERROR: Failed to precompile Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44] to /home/leticia/.julia/compiled/v1.7/Gtk/jl_7GTVow.

@JeffFessler
Copy link
Contributor

I am not really a contributor here (I just updated some documentation once). I did try to reproduce this issue, but it worked fine for me using ubuntu 18.04.6 and julia 1.7.1. Sorry that I don't know what else to suggest and I hope your additional details will help the real maintainers.

@Leticia-maria
Copy link

I am not really a contributor here (I just updated some documentation once). I did try to reproduce this issue, but it worked fine for me using ubuntu 18.04.6 and julia 1.7.1. Sorry that I don't know what else to suggest and I hope your additional details will help the real maintainers.

I've solved on my machine

@lobingera
Copy link
Contributor

"I've solved on my machine" - Nice, but it would be helpful, if you explain, how.

@Leticia-maria
Copy link

"I've solved on my machine" - Nice, but it would be helpful, if you explain, how.

Clear the precompiled cache worked for me. Maybe one package that is not updated for the 1.7.1 version of Julia was blocking Gtk.

For example, you can try this command

map(rm,Base.find_all_in_cache_path(:BenchmarkTools))

Or

rm -rf ~/.julia/compiled

Please let me know if it was useful for you

@JeffFessler
Copy link
Contributor

Great! Probably can close this issue then.

@tknopp
Copy link
Collaborator

tknopp commented Jan 22, 2022

Closing this since it seems to be some precompilation hiccups.

@tknopp tknopp closed this as completed Jan 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants