Gnimuc / CImGui.jl

Julia wrapper for cimgui
https://github.com/cimgui/cimgui
MIT License
259 stars 25 forks source link

CImGui fails precompilation at `idGET_FLT_MAX()` #69

Closed ghyatzo closed 2 years ago

ghyatzo commented 2 years ago

As per title,

When precompiling CImGui the precompilation fails with the error:

ERROR: LoadError: UndefVarError: libcimgui not defined
Stacktrace:
 [1] igGET_FLT_MAX()
   @ CImGui.LibCImGui ~/.local/julia/packages/CImGui/svEI7/gen/libcimgui_api.jl:3726
 [2] top-level scope
   @ ~/.local/julia/packages/CImGui/svEI7/src/CImGui.jl:22
 [3] include
   @ ./Base.jl:419 [inlined]
 [4] 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
 [5] top-level scope
   @ stdin:1

libcimgui is defined for the previous 3725 lines but f**k this line in particular i guess.

I am on an M1 mac. Julia version 1.8.2 aarch64

I dug around a bit, and noticed that there isn't a version of CImGui_jll available for the aarch64-apple-darwin platform. just forgot to add the platform to the artifacts or are there worse issues at play?

Thanks

ghyatzo commented 2 years ago

This package is an older version.

Apple silicon is supported in the newer version currently in the works (see #52). For now only the vanilla bindings from LibCImGui.jl and the backends are available as separate packages.