[GH-ISSUE #231] Unable to find the native Qml.Net library in Mono JIT compiler version 6.12.0.90 #149

Open
opened 2026-05-05 11:06:49 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @smetronic on GitHub (Feb 8, 2021).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/231

Hi, when i try to run below code using monodevelop on ubuntu 18.04:

            RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();

            using (var app = new QGuiApplication(args))
            {
                using (var engine = new QQmlApplicationEngine())
                {
                    // Register our new type to be used in Qml
                    Qml.Net.Qml.RegisterType<QmlType>("test", 1, 1);
                    engine.Load("Main.qml");
                    return app.Exec();
                }
            }

i get below error on var app = new QGuiApplication(args)

The type initializer for 'Qml.Net.Internal.Interop' threw an exception.

{System.Exception: Unable to find the native Qml.Net library. Try calling "RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();" in Program.Main()
  at Qml.Net.Internal.Interop..cctor () [0x00087] in <ad74f26691e644e6b645a13bb721757f>:0 }

Any solution for this problem.

Thanks

Originally created by @smetronic on GitHub (Feb 8, 2021). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/231 Hi, when i try to run below code using monodevelop on ubuntu 18.04: ``` RuntimeManager.DiscoverOrDownloadSuitableQtRuntime(); using (var app = new QGuiApplication(args)) { using (var engine = new QQmlApplicationEngine()) { // Register our new type to be used in Qml Qml.Net.Qml.RegisterType<QmlType>("test", 1, 1); engine.Load("Main.qml"); return app.Exec(); } } ``` i get below error on var app = new QGuiApplication(args) ``` The type initializer for 'Qml.Net.Internal.Interop' threw an exception. {System.Exception: Unable to find the native Qml.Net library. Try calling "RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();" in Program.Main() at Qml.Net.Internal.Interop..cctor () [0x00087] in <ad74f26691e644e6b645a13bb721757f>:0 } ``` Any solution for this problem. Thanks
Author
Owner

@smetronic commented on GitHub (Feb 23, 2021):

Its been 15 days now for this issue is this project dead or something.

<!-- gh-comment-id:784058416 --> @smetronic commented on GitHub (Feb 23, 2021): Its been 15 days now for this issue is this project dead or something.
Author
Owner

@shahid-pk commented on GitHub (Feb 24, 2021):

you can look into this similar issue.

https://github.com/qmlnet/qmlnet/issues/173

and this one

https://github.com/qmlnet/qmlnet/issues/222

Both similar problems.
The owner of the repo is i think busy these days.

<!-- gh-comment-id:784929118 --> @shahid-pk commented on GitHub (Feb 24, 2021): you can look into this similar issue. https://github.com/qmlnet/qmlnet/issues/173 and this one https://github.com/qmlnet/qmlnet/issues/222 Both similar problems. The owner of the repo is i think busy these days.
Author
Owner

@vadi2 commented on GitHub (Feb 24, 2021):

Read the docs or look at an existing project like https://github.com/health-validator/Hammer

<!-- gh-comment-id:784934345 --> @vadi2 commented on GitHub (Feb 24, 2021): Read the docs or look at an existing project like https://github.com/health-validator/Hammer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#149
No description provided.