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

Gtk Getting Started example not working on Julia v1.0.3 or 1.1.1 on MacOS #421

Closed
logankilpatrick opened this issue Jun 5, 2019 · 17 comments

Comments

@logankilpatrick
Copy link
Contributor

I run the code from this example: https://juliagraphics.github.io/Gtk.jl/latest/manual/gettingStarted.html#Getting-Started-1

No button shows up on 1.0.3 or 1.1.1....

@jonathanBieler
Copy link
Collaborator

Strange, what do you get ? and empty window ? Note that the button takes the whole window.

@timholy
Copy link
Member

timholy commented Jun 5, 2019

#414?

@logankilpatrick
Copy link
Contributor Author

logankilpatrick commented Jun 5, 2019

@jonathanBieler yes, just a blank window. And I am also on MacOS Mojave @timholy I read through #414 and it didn’t look like anything got resolved.

@mgalenb
Copy link

mgalenb commented Jun 6, 2019

+1 i also have this issue. also waiting for #414 to be resolved.

@logankilpatrick
Copy link
Contributor Author

@tknopp anything I can do to help out on the resolution for this?

@tknopp
Copy link
Collaborator

tknopp commented Jun 6, 2019

I don't know. This is not really a Gtk.jl bug but an issue with the Homebrew.jl installation (since it works here for me). We could check versions, I have:

julia> Homebrew.list()
29-element Array{Homebrew.BrewPkg,1}:
 atk: 2.32.0                      
 cairo: 1.16.0                    
 fontconfig: 2.13.1               
 freetype: 2.10.0                 
 fribidi: 1.0.5                   
 gdbm: 1.18.1                     
 gdk-pixbuf: 2.38.1               
 gettext: 0.19.8.1                
 glib: 2.60.1                     
 graphite2: 1.3.13                
 gsettings-desktop-schemas: 3.32.0
 gtk+3: 3.24.8                    
 harfbuzz: 2.4.0_1                
 hicolor-icon-theme: 0.17         
 icu4c: 64.2                      
 jpeg: 9c                         
 libcroco: 0.6.13                 
 libepoxy: 1.5.3                  
 libffi: 3.2.1                    
 libpng: 1.6.37                   
 librsvg: 2.44.13                 
 libtiff: 4.0.10_1                
 pango: 1.42.4_1                  
 pcre: 8.43                       
 pixman: 0.38.4                   
 pkg-config: 0.29.2               
 readline: 8.0.0                  
 sqlite: 3.28.0                   
 xz: 5.2.4 

If yours are more recent then that's the issue.

@logankilpatrick
Copy link
Contributor Author

How do I add HomeBrew like you're using? I did add HomeBrew and got an error. I also got an error when I did Homebrew.list() (I am not familiar with HomeBrew )

@tknopp
Copy link
Collaborator

tknopp commented Jun 7, 2019

add Homebrew and using Homebrew

@mgalenb
Copy link

mgalenb commented Jun 7, 2019

i checked and the only difference in version is glib: 2.60.1 (yours) glib: 2.60.2 (mine).

julia> Homebrew.list()
31-element Array{Homebrew.BrewPkg,1}:
 adwaita-icon-theme: 3.32.0       
 atk: 2.32.0                      
 cairo: 1.16.0                    
 fontconfig: 2.13.1               
 freetype: 2.10.0                 
 fribidi: 1.0.5                   
 gdbm: 1.18.1                     
 gdk-pixbuf: 2.38.1               
 gettext: 0.19.8.1                
 glib: 2.60.2                     
 graphite2: 1.3.13                
 gsettings-desktop-schemas: 3.32.0
 gtk+3: 3.24.8                    
 harfbuzz: 2.4.0_1                
 hicolor-icon-theme: 0.17         
 icu4c: 64.2                      
 jpeg: 9c                         
 libcroco: 0.6.13                 
 libepoxy: 1.5.3                  
 libffi: 3.2.1                    
 libpng: 1.6.37                   
 librsvg: 2.44.14                 
 libtiff: 4.0.10_1                
 openssl: 1.0.2r                  
 pango: 1.42.4_1                  
 pcre: 8.43                       
 pixman: 0.38.4                   
 python: 3.7.3                    
 readline: 8.0.0_1                
 sqlite: 3.28.0                   
 xz: 5.2.4   

@logankilpatrick
Copy link
Contributor Author

Mine is Homebrew.BrewPkg[adwaita-icon-theme: 3.32.0, atk: 2.32.0, cairo: 1.16.0, fontconfig: 2.13.1, freetype: 2.10.0, fribidi: 1.0.5, gdbm: 1.18.1, gdk-pixbuf: 2.38.1, gettext: 0.19.8.1, glib: 2.60.3, graphite2: 1.3.13, gsettings-desktop-schemas: 3.32.0, gtk+3: 3.24.8, harfbuzz: 2.5.1, hicolor-icon-theme: 0.17, icu4c: 64.2, jpeg: 9c, libcroco: 0.6.13, libepoxy: 1.5.3, libffi: 3.2.1, libpng: 1.6.37, librsvg: 2.44.14, libtiff: 4.0.10_1, openssl: 1.0.2r, pango: 1.42.4_1, pcre: 8.43, pixman: 0.38.4, python: 3.7.3, readline: 8.0.0_1, sqlite: 3.28.0, xz: 5.2.4] julia>

@logankilpatrick
Copy link
Contributor Author

Also on a different version of glib....

@logankilpatrick
Copy link
Contributor Author

How does one downgrade those versions in homebrew?

@logankilpatrick
Copy link
Contributor Author

@staticfloat As a maintainer/core dev of Homebrew.jl, do you have any advice for the people unable to use Gtk.jl because of the difference in Homebrew package versions? Can I pin versions to match @tknopp 's versions?

@jonathanBieler
Copy link
Collaborator

@logankilpatrick To downgrade packages, maybe have a look at this:

https://stackoverflow.com/a/9832084

You can run homebrew commands using:

    Homebrew.brew(`cmd`)

Not sure if that works though.

@fipelle
Copy link

fipelle commented Jun 25, 2019

I am having the same issue. Have you found a working solution?

@logankilpatrick
Copy link
Contributor Author

@fipelle I am going to try downgrading this weekend and will report back.

This was referenced Aug 18, 2019
@logankilpatrick
Copy link
Contributor Author

On Julia 1.3 on MacOs with master, I am now able to get this example to work.

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

6 participants