Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GtkMakie won't compile #7

Open
mashu opened this issue Apr 1, 2023 · 4 comments
Open

GtkMakie won't compile #7

mashu opened this issue Apr 1, 2023 · 4 comments

Comments

@mashu
Copy link

mashu commented Apr 1, 2023

Hi, I get the following errors

Gtk4.GtkBuilderLeaf(current-object, scope, translation-domain=nothing)

Gtk4.GtkBoxLeaf(accessible-role=GTK_ACCESSIBLE_ROLE_GROUP, orientation=GTK_ORIENTATION_VERTICAL, name="", parent, root, width-request=-1, height-request=-1, visible=true, sensitive=true, can-focus=false, has-focus=false, can-target=true, focus-on-click=true, focusable=false, has-default=false, receives-default=false, cursor, has-tooltip=false, tooltip-markup=nothing, tooltip-text=nothing, opacity=1.000000, overflow=GTK_OVERFLOW_VISIBLE, halign=GTK_ALIGN_FILL, valign=GTK_ALIGN_FILL, margin-start=0, margin-end=0, margin-top=0, margin-bottom=0, hexpand=false, vexpand=false, hexpand-set=false, vexpand-set=false, scale-factor=1, css-name="box", css-classes, layout-manager, spacing=0, homogeneous=false, baseline-position=GTK_BASELINE_POSITION_CENTER)

Gtk4.GtkBoxLeaf(accessible-role=GTK_ACCESSIBLE_ROLE_GROUP, orientation=GTK_ORIENTATION_VERTICAL, name="", parent, root, width-request=-1, height-request=-1, visible=true, sensitive=true, can-focus=false, has-focus=false, can-target=true, focus-on-click=true, focusable=false, has-default=false, receives-default=false, cursor, has-tooltip=false, tooltip-markup=nothing, tooltip-text=nothing, opacity=1.000000, overflow=GTK_OVERFLOW_VISIBLE, halign=GTK_ALIGN_FILL, valign=GTK_ALIGN_FILL, margin-start=0, margin-end=0, margin-top=0, margin-bottom=0, hexpand=false, vexpand=false, hexpand-set=false, vexpand-set=false, scale-factor=1, css-name
   Installed GeometryBasics ────────── v0.4.6
   Installed MakieCore ─────────────── v0.6.3
   Installed ShaderAbstractions ────── v0.3.0
   Installed MeshIO ────────────────── v0.4.10
   Installed FillArrays ────────────── v0.13.11
   Installed MathTeXEngine ─────────── v0.5.5
   Installed QuadGK ────────────────── v2.8.2
   Installed GeoInterface ──────────── v1.3.0
   Installed Makie ─────────────────── v0.19.4
  Downloaded artifact: Imath
  Downloaded artifact: OpenEXR
    Updating `~/SDR/Project.toml`
  [9c25eb2d] + GtkMakie v0.1.0 `https://github.com/jwahlstrand/GtkMakie.jl#main`
    Updating `~/SDR/Manifest.toml`
  [621f4979] + AbstractFFTs v1.3.1
  [1520ce14] + AbstractTrees v0.4.4
  [79e6a3ab] + Adapt v3.6.1
  [27a7e980] + Animations v0.4.1
  [67c07d97] + Automa v0.8.2
  [13072b0f] + AxisAlgorithms v1.0.1
  [39de3d68] + AxisArrays v0.4.6
  [49dc2e85] + Calculus v0.5.1
  [d360d2e6] + ChainRulesCore v1.15.7
  [9e997f8a] + ChangesOfVariables v0.1.6
  [a2cac450] + ColorBrewer v0.4.0
  [35d6a980] + ColorSchemes v3.20.0
  [c3611d14] + ColorVectorSpace v0.9.10
  [34da2185] + Compat v4.6.1
  [187b0558] + ConstructionBase v1.5.1
  [d38c429a] + Contour v0.6.2
  [9a962f9c] + DataAPI v1.14.0
  [864edb3b] + DataStructures v0.18.13
  [e2d170a0] + DataValueInterfaces v1.0.0
  [b429d917] + DensityInterface v0.4.0
  [31c24e10] + Distributions v0.25.86
  [ffbed154] + DocStringExtensions v0.9.3
  [fa6b7ba4] + DualNumbers v0.6.8
  [411431e0] + Extents v0.1.1
  [c87230d0] + FFMPEG v0.4.1
  [7a1cc6ca] + FFTW v1.6.0
  [5789e2e9] + FileIO v1.16.0
⌅ [1a297f60] + FillArrays v0.13.11
  [59287772] + Formatting v0.4.2
  [b38be410] + FreeType v4.0.0
  [663a7486] + FreeTypeAbstraction v0.10.0
  [f7f18e0c] + GLFW v3.4.1
  [e9467ef8] + GLMakie v0.8.4
  [46192b85] + GPUArraysCore v0.1.4
  [cf35fbd7] + GeoInterface v1.3.0
  [5c1252a2] + GeometryBasics v0.4.6
  [3955a311] + GridLayoutBase v0.9.1
  [42e2da0e] + Grisu v1.0.2
  [9c25eb2d] + GtkMakie v0.1.0 `https://github.com/jwahlstrand/GtkMakie.jl#main`
  [34004b35] + HypergeometricFunctions v0.3.14
  [2803e5a7] + ImageAxes v0.6.10
  [c817782e] + ImageBase v0.1.5
  [a09fc81d] + ImageCore v0.9.4
  [82e4d734] + ImageIO v0.6.6
  [bc367c6b] + ImageMetadata v0.9.8
  [9b13fd28] + IndirectArrays v1.0.0
  [d25df0c9] + Inflate v0.1.3
  [a98d9a8b] + Interpolations v0.14.7
  [8197267c] + IntervalSets v0.7.4
  [3587e190] + InverseFunctions v0.1.8
  [92d709cd] + IrrationalConstants v0.2.2
  [f1662d9f] + Isoband v0.1.1
  [c8e1da08] + IterTools v1.4.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [682c06a0] + JSON v0.21.3
  [b835a17e] + JpegTurbo v0.1.2
  [5ab0869b] + KernelDensity v0.6.5
  [b964fa9f] + LaTeXStrings v1.3.0
  [8cdb02fc] + LazyModules v0.3.1
  [2ab3a3ac] + LogExpFunctions v0.3.23
  [1914dd2f] + MacroTools v0.5.10
  [ee78f7c6] + Makie v0.19.4
  [20f20a25] + MakieCore v0.6.3
  [dbb5928d] + MappedArrays v0.4.1
  [7eb4fadd] + Match v1.2.0
  [0a4f8689] + MathTeXEngine v0.5.5
  [7269a6da] + MeshIO v0.4.10
  [978d7f02] + MiniQhull v0.4.0
  [e1d29d7a] + Missings v1.1.0
  [66fc600b] + ModernGL v1.1.7
  [e94cdb99] + MosaicViews v0.3.4
  [f09324ee] + Netpbm v1.1.0
  [510215fc] + Observables v0.5.4
  [6fe1bfb0] + OffsetArrays v1.12.9
  [52e1d378] + OpenEXR v0.3.2
  [bac558e1] + OrderedCollections v1.6.0
  [90014a1f] + PDMats v0.11.17
  [f57f5aa1] + PNGFiles v0.3.17
  [19eb6ba3] + Packing v0.5.0
  [5432bcbf] + PaddedViews v0.5.11
  [69de0a69] + Parsers v2.5.8
  [eebad327] + PkgVersion v0.3.2
  [995b91a9] + PlotUtils v1.3.4
  [647866c9] + PolygonOps v0.1.2
  [92933f4c] + ProgressMeter v1.7.2
  [4b34888f] + QOI v1.0.0
  [1fd47b50] + QuadGK v2.8.2
  [b3c3ace0] + RangeArrays v0.3.2
  [c84ed2f1] + Ratios v0.4.3
  [05181044] + RelocatableFolders v1.0.0
  [ae029012] + Requires v1.3.0
  [79098fc4] + Rmath v0.7.1
  [fdea26ae] + SIMD v3.4.4
  [7b38b023] + ScanByte v0.3.3
  [efcf1570] + Setfield v1.1.1
  [65257c39] + ShaderAbstractions v0.3.0
  [992d4aef] + Showoff v1.0.3
  [73760f76] + SignedDistanceFields v0.4.0
  [699a6c99] + SimpleTraits v0.9.4
  [45858cf5] + Sixel v0.1.2
  [66db9d55] + SnoopPrecompile v1.0.3
  [a2af1166] + SortingAlgorithms v1.1.0
  [276daf66] + SpecialFunctions v2.2.0
  [c5dd0088] + StableHashTraits v0.3.1
  [cae243ae] + StackViews v0.1.1
  [90137ffa] + StaticArrays v1.5.19
  [1e83bf80] + StaticArraysCore v1.4.0
  [82ae8749] + StatsAPI v1.6.0
  [2913bbd2] + StatsBase v0.33.21
  [4c63d2b9] + StatsFuns v1.3.0
  [09ab397b] + StructArrays v0.6.15
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.10.1
  [62fd8b95] + TensorCore v0.1.1
  [731e570b] + TiffImages v0.6.4
  [3bb67fe8] + TranscodingStreams v0.9.11
  [981d1d27] + TriplotBase v0.1.0
  [9d95972d] + TupleTools v1.3.0
  [1cfade01] + UnicodeFun v0.4.1
  [efce3f68] + WoodburyMatrices v0.5.5
  [5ae413db] + EarCut_jll v2.2.4+0
  [b22a6f82] + FFMPEG_jll v4.4.2+2
  [f5851436] + FFTW_jll v3.3.10+0
  [0656b61e] + GLFW_jll v3.3.8+0
  [905a6f67] + Imath_jll v3.1.7+0
  [1d5cc7b8] + IntelOpenMP_jll v2018.0.3+2
  [c1c5ebd0] + LAME_jll v3.100.1+0
  [856f044c] + MKL_jll v2022.2.0+0
  [e7412a2a] + Ogg_jll v1.3.5+1
  [18a262bb] + OpenEXR_jll v3.1.4+0
  [458c3c95] + OpenSSL_jll v1.1.20+0
  [efe28fd5] + OpenSpecFun_jll v0.5.5+0
  [91d4177d] + Opus_jll v1.3.2+0
  [460c41e3] + QhullMiniWrapper_jll v1.0.0+1
⌅ [784f63db] + Qhull_jll v8.0.1001+0
  [f50d1b31] + Rmath_jll v0.4.0+0
  [9a68df92] + isoband_jll v0.2.3+0
  [a4ae2306] + libaom_jll v3.4.0+0
  [0ac62f75] + libass_jll v0.15.1+0
  [f638f0a6] + libfdk_aac_jll v2.0.2+0
  [075b6546] + libsixel_jll v1.10.3+0
  [f27f6e37] + libvorbis_jll v1.3.7+1
  [1270edf5] + x264_jll v2021.5.5+0
  [8bf52ea8] + CRC32c
  [8ba89e20] + Distributed
  [9fa8497b] + Future
  [4af54fe1] + LazyArtifacts
  [a63ad114] + Mmap
  [1a1011a3] + SharedArrays
  [4607b0f0] + SuiteSparse
  [8dfed614] + Test
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
    Building ModernGL → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/b76ea40b5c0f45790ae09492712dd326208c28b2/build.log`
Precompiling project...
  ✗ GtkMakie
  33 dependencies successfully precompiled in 253 seconds. 187 already precompiled.
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

(SDR) pkg> precompile
Precompiling project...
  ✗ GtkMakie
  1 dependency successfully precompiled in 34 seconds. 219 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

GtkMakie [9c25eb2d-1134-49c7-9e09-0abab88e7863]

Failed to precompile GtkMakie [9c25eb2d-1134-49c7-9e09-0abab88e7863] to /home/mateusz/.julia/compiled/v1.8/GtkMakie/jl_XkD4Wl.
┌ Warning: shader /home/mateusz/.julia/packages/GLMakie/XSSSf/assets/shader/postprocessing/postprocess.frag didn't compile. 
│ 0(9) : error C7548: 'layout(location)' requires "#extension GL_ARB_explicit_attrib_location : enable" before use
│ 0(9) : error C0000: ... or #extension GL_ARB_separate_shader_objects : enable
│ 0(9) : error C0000: ... or #version 330
└ @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLShader.jl:129
┌ Warning: shader /home/mateusz/.julia/packages/GLMakie/XSSSf/assets/shader/postprocessing/postprocess.frag didn't compile. 
│ 0(9) : error C7548: 'layout(location)' requires "#extension GL_ARB_explicit_attrib_location : enable" before use
│ 0(9) : error C0000: ... or #extension GL_ARB_separate_shader_objects : enable
│ 0(9) : error C0000: ... or #version 330
└ @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLShader.jl:129
ERROR: LoadError: program 56 not linked. Error in: 
/home/mateusz/.julia/packages/GLMakie/XSSSf/assets/shader/postprocessing/fullscreen.vert or /home/mateusz/.julia/packages/GLMakie/XSSSf/assets/shader/postprocessing/postprocess.frag
Fragment info
-------------
0(9) : error C7548: 'layout(location)' requires "#extension GL_ARB_explicit_attrib_location : enable" before use
0(9) : error C0000: ... or #extension GL_ARB_separate_shader_objects : enable
0(9) : error C0000: ... or #version 330
(0) : error C2003: incompatible options for link

Stacktrace:
  [1] error(::String, ::String, ::String, ::String)
    @ Base ./error.jl:44
  [2] compile_program(shaders::Vector{GLMakie.GLAbstraction.Shader}, fragdatalocation::Vector{Tuple{Int64, String}})
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLShader.jl:188
  [3] (::GLMakie.GLAbstraction.var"#69#74"{GLMakie.GLAbstraction.ShaderCache, Vector{Vector{String}}, Vector{Vector{String}}, Tuple{String, String}})()
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLShader.jl:261
  [4] get!(default::GLMakie.GLAbstraction.var"#69#74"{GLMakie.GLAbstraction.ShaderCache, Vector{Vector{String}}, Vector{Vector{String}}, Tuple{String, String}}, h::Dict{Any, GLMakie.GLAbstraction.GLProgram}, key::Tuple{Tuple{String, String}, Vector{Vector{String}}})
    @ Base ./dict.jl:481
  [5] gl_convert(cache::GLMakie.GLAbstraction.ShaderCache, lazyshader::GLMakie.GLAbstraction.LazyShader, data::Dict{Symbol, Any})
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLShader.jl:252
  [6] gl_convert
    @ ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLShader.jl:211 [inlined]
  [7] GLMakie.GLAbstraction.RenderObject(data::Dict{Symbol, Any}, program::GLMakie.GLAbstraction.LazyShader, pre::GLMakie.PostprocessPrerender, post::Nothing, context::GtkMakie.GtkGLMakie)
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLTypes.jl:444
  [8] GLMakie.GLAbstraction.RenderObject(data::Dict{Symbol, Any}, program::GLMakie.GLAbstraction.LazyShader, pre::GLMakie.PostprocessPrerender, post::Nothing)
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/XSSSf/src/GLAbstraction/GLTypes.jl:404
  [9] fxaa_postprocessor(framebuffer::GLMakie.GLFramebuffer, shader_cache::GLMakie.GLAbstraction.ShaderCache)
    @ GLMakie ~/.julia/packages/GLMakie/XSSSf/src/postprocessing.jl:228
 [10] GTKScreen(; resolution::Tuple{Int64, Int64}, app::Nothing, screen_config::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ GtkMakie ~/.julia/packages/GtkMakie/frPA7/src/screen.jl:201
 [11] GTKScreen
    @ ~/.julia/packages/GtkMakie/frPA7/src/screen.jl:165 [inlined]
 [12] macro expansion
    @ ~/.julia/packages/GtkMakie/frPA7/src/precompiles.jl:6 [inlined]
 [13] macro expansion
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:62 [inlined]
 [14] macro expansion
    @ ~/.julia/packages/GtkMakie/frPA7/src/precompiles.jl:5 [inlined]
 [15] macro expansion
    @ ~/.julia/packages/SnoopPrecompile/1XXT1/src/SnoopPrecompile.jl:119 [inlined]
 [16] top-level scope
    @ ~/.julia/packages/GtkMakie/frPA7/src/precompiles.jl:4
 [17] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [18] include(x::String)
    @ GtkMakie ~/.julia/packages/GtkMakie/frPA7/src/GtkMakie.jl:1
 [19] top-level scope
    @ ~/.julia/packages/GtkMakie/frPA7/src/GtkMakie.jl:14
 [20] include
    @ ./Base.jl:419 [inlined]
 [21] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [22] top-level scope
    @ stdin:1
in expression starting at /home/mateusz/.julia/packages/GtkMakie/frPA7/src/precompiles.jl:3
in expression starting at /home/mateusz/.julia/packages/GtkMakie/frPA7/src/GtkMakie.jl:1
in expression starting at stdin:1

(SDR) pkg> st
Project SDR v1.0.0-DEV
Status `~/SDR/Project.toml`
  [9db2cae5] Gtk4 v0.3.3
  [9c25eb2d] GtkMakie v0.1.0 `https://github.com/jwahlstrand/GtkMakie.jl#main`

(SDR) pkg> 
@jwahlstrand
Copy link
Member

Hmm, I'm not seeing that. What platform are you on? What version of Julia?

@mashu
Copy link
Author

mashu commented Apr 1, 2023

(base) mateusz@legion:~/SDR$ juliaup --version
Juliaup 1.8.16

(base) mateusz@legion:~/SDR$ julia --version
julia version 1.8.5

(base) mateusz@legion:~/SDR$ dpkg -l | grep nvidia-driver
ii  nvidia-driver                                      530.30.02-1                               amd64        NVIDIA metapackage
ii  nvidia-driver-bin                                  530.30.02-1                               amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64                           530.30.02-1                               amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-driver-libs:i386                            530.30.02-1                               i386         NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-driver-libs-i386:i386                       530.30.02-1                               i386         NVIDIA metapackage (OpenGL/GLX/EGL/GLES 32-bit libraries)

(base) mateusz@legion:~/SDR$ glxinfo| grep GeForce
OpenGL renderer string: NVIDIA GeForce RTX 2080 with Max-Q Design/PCIe/SSE2

On GNU/Linux Debian (sid)

@SimonDanisch
Copy link
Collaborator

Does GLMakie work on its own?

@mashu
Copy link
Author

mashu commented Apr 2, 2023

Yes, GLMakie installs fine and works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants