JuliaGraphics / QML.jl

Build Qt6 QML interfaces for Julia programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Cannot add multiple registrations for org.julialang` after PackageCompiler

JanisErdmanis opened this issue · comments

I tried to see whether I could get PackageCompiler v2.1.5 to work on a simple QML app:

module QMLApp

using QML

function julia_main()::Cint

    loadqml((@__DIR__) * "/App.qml")
    exec()

    return 0
end

end # module QMLApp

I can confirm that using QMLApp; QMLApp.julia_main() works in this case. Also, PackageCompiler finishes compiling successfully. But when running the produced executable, that gives:

~/BtSync/PeaceFounder/SandBox/QMLApp$ ./artifacts/QMLApp/bin/QMLApp 
Cannot add multiple registrations for org.julialang

[51119] signal (6): Abort trap: 6
in expression starting at none:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 645181 (Pool: 644613; Big: 568); GC: 1
Abort trap: 6

I made the example available in the repository https://github.com/JanisErdmanis/QMLAppTest.

I just tested that julia 1.10 with QML 0.9.1 works with PackageCompiler on Mac M1. Hence the issue is resolved.