Unfortunatly I see an Relocatibility issue for an compiled applications that include WGLMakie.
Here my versioninfo():
julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 8 × Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
Threads: 1 on 8 virtual cores
Environment:
JULIA_SSL_CA_ROOTS_PATH =
Here is my example module:
module MyWGLMakie
using Makie, WGLMakie, TOML
# --- constants: -----------------------------------------------------------------------------------------------------------
const PROJECTVERSION = let
project_toml = joinpath(@__DIR__, "..", "Project.toml")
Base.include_dependency(project_toml)
VersionNumber(TOML.parsefile(project_toml)["version"])
end
const PROJECTNAME = let
project_toml = joinpath(@__DIR__, "..", "Project.toml")
Base.include_dependency(project_toml)
TOML.parsefile(project_toml)["name"]
end
# --- mandatory function "julia_main()": -----------------------------------------------------------------------------------
function julia_main()::Cint
try
real_main()
catch
Base.invokelatest(Base.display_error, Base.catch_stack())
return 1
end
return 0
end
# --- this is the real main function, which is called inside "julia_main()": -----------------------------------------------
function real_main()
println("real_main(): Project name: \"$PROJECTNAME\", project version: $PROJECTVERSION")
# ---
fig = Figure()
ax = Axis(fig[1, 1])
ylims!(ax, 0, 30)
sg = SliderGrid(
fig[1, 2],
(label = "Voltage", range = 0:0.1:10, format = "{:.1f}V", startvalue = 5.3),
(label = "Current", range = 0:0.1:20, format = "{:.1f}A", startvalue = 10.2),
(label = "Resistance", range = 0:0.1:50, format = "{:.1f}Ω", startvalue = 15.9),
width = 350,
tellheight = false)
sliderobservables = [s.value for s in sg.sliders]
bars = lift(sliderobservables...) do slvalues...
[slvalues...]
end
# --- build a scaler of type "Observable" containing the max y-value inside the bar-plot:
xrangeupper = lift(sliderobservables...) do slvalues...
maximum([slvalues...])
end
# --- listen to observable "xrangeupper"
on(xrangeupper) do _yaxis_upper
ylims!(ax, 0, max(30, round(Int, 1.2 * _yaxis_upper)))
# println("xrangeupper: ", _yaxis_upper)
end
barplot!(ax, bars, color = [:yellow, :orange, :red])
display(fig)
# ---
return
end
end # module
And this is the error message in the internet browser window:
SystemError: opening file "C:\\Users\\XYZ\\.julia\\packages\\WGLMakie\\oJj6S\\src\\..\\assets\\mesh.vert": No such file or directory
The error occurs during the execution of the display() command:
Unfortunatly I see an Relocatibility issue for an compiled applications that include
WGLMakie
. Here myversioninfo()
:Here is my example module:
And this is the error message in the internet browser window:
The error occurs during the execution of the
display()
command:Regards,
Stefan