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

Unable to find the native Qml.Net library in Mono JIT compiler version 6.12.0.90 #231

Open
smetronic opened this issue Feb 8, 2021 · 3 comments

Comments

@smetronic
Copy link

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

@smetronic
Copy link
Author

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

@shahid-pk
Copy link

you can look into this similar issue.

#173

and this one

#222

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

@vadi2
Copy link
Contributor

vadi2 commented Feb 24, 2021

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

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

No branches or pull requests

3 participants