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

Error in precompiling #427

Open
alirezamecheng opened this issue Jul 18, 2019 · 8 comments
Open

Error in precompiling #427

alirezamecheng opened this issue Jul 18, 2019 · 8 comments

Comments

@alirezamecheng
Copy link

Hello,
I have Windows 10 64 bit O.S. And Julia version 1.1.0 and I get this error.

julia> using Gtk
[ Info: Precompiling Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44]
ERROR: LoadError: LoadError: error compiling top-level scope: could not load library "libgobject-2.0-0"
The specified module could not be found.

Stacktrace:
 [1] include at .\boot.jl:326 [inlined]
 [2] include_relative(::Module, ::String) at .\loading.jl:1038
 [3] include at .\sysimg.jl:29 [inlined]
 [4] include(::String) at C:\Users\montazer\.julia\packages\Gtk\aP55V\src\Gtk.jl:2
 [5] top-level scope at none:0
 [6] include at .\boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1038
 [8] include(::Module, ::String) at .\sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:328 [inlined]
 [11] eval(::Expr) at .\client.jl:404
 [12] top-level scope at .\none:3
in expression starting at C:\Users\montazer\.julia\packages\Gtk\aP55V\src\GLib\GLib.jl:49
in expression starting at C:\Users\montazer\.julia\packages\Gtk\aP55V\src\Gtk.jl:7
ERROR: Failed to precompile Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44] to C:\Users\montazer\.julia\compiled\v1.1\Gtk\Vjnq0.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1197
 [3] _require(::Base.PkgId) at .\loading.jl:960
 [4] require(::Base.PkgId) at .\loading.jl:858
 [5] require(::Module, ::Symbol) at .\loading.jl:853

How can I fix this problem?

I Also have a Linux mint OS which has no problem.

Thank you.

@pixel27
Copy link
Contributor

pixel27 commented Jul 18, 2019

My guess is you don't have the GTK libraries installed.
Did you follow the instructions at https://github.com/JuliaGraphics/Gtk.jl/blob/master/doc/installation.md for if the automatic installation fails?

@alirezamecheng
Copy link
Author

alirezamecheng commented Jul 19, 2019

if the automatic installation fails?

Yes, it fails.
The manual installation fails too.

julia> using WinRPM

julia> WinRPM.install(["gtk2","gtk3","hicolor-icon-theme","tango-icon-theme","glib2-tools","glib2-devel","gnome-icon-theme","gnome-icon-theme-extras","gnome-icon-theme-symbolic","gtk3-devel","gtk2-devel","gtk3-tools","gtk2-tools","pango-tools","gdk-pixbuf-query-loaders","gtk2-lang","gtk3-lang"])
ERROR: Package candidate for gtk3 not found
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] select(::WinRPM.Packages{Array{LibExpat.ETree,1}}, ::String) at C:\Users\montazer\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:258
 [3] #install#18(::Bool, ::Function, ::Array{String,1}, ::String) at C:\Users\montazer\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:377
 [4] install at C:\Users\montazer\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:375 [inlined] (repeats 2 times)
 [5] top-level scope at none:0

@arinrb
Copy link

arinrb commented Jul 27, 2019

I am having the same issue in JuliaPro 1.1.1.1 and Windows 10.

@jonathanBieler
Copy link
Collaborator

It did install on appveyor 10 days ago, so there must be a way to get it to work. On my windows machine I can't even install Cairo however...

@tknopp
Copy link
Collaborator

tknopp commented Jul 29, 2019

@jonathanBieler: What is the regular platform appveyor runs on? I have restarted the latest CI build.

@jonathanBieler
Copy link
Collaborator

@tknopp I'm not sure, could be Windows Server 2016 according to this page:

https://www.appveyor.com/docs/windows-images-software/

@tknopp
Copy link
Collaborator

tknopp commented Jul 29, 2019

Hm, builds are passing.
I am currently more concerned about OSX where travis fails and I can't get it working locally here.

@jonathanBieler
Copy link
Collaborator

Cairo has been failing for a long time, Homebrew has been updated a week ago, but it doesn't seem to have solved everything.

JuliaGraphics/Cairo.jl#271

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