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

Cannot add multiple registrations for org.julialang after PackageCompiler #164

Closed
JanisErdmanis opened this issue May 24, 2023 · 1 comment

Comments

@JanisErdmanis
Copy link

JanisErdmanis commented May 24, 2023

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.

@JanisErdmanis
Copy link
Author

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

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

No branches or pull requests

2 participants