mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #191] Did not understand how to run app #123
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EarsKilla on GitHub (Apr 17, 2020).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/191
Project was created with
dotnet new console, included all required packages from readme (including windows, mac, linux libs)RuntimeManager.DiscoverOrDownloadSuitableQtRuntime()throwing following exception:Trying to run on
Linux Mint 19.3 Triciausingnet core 3.1Getting same exception with qmlnet-examples
run logs with LD_DEBUG=all.txt
If my project is required for some reasons: testqt.zip
@r9guy commented on GitHub (Apr 20, 2020):
same here.
I fought it should be straightforward, add nuget, build and all runs.
did vith VS2019 .NET Core 3
@pauldotknopf commented on GitHub (Apr 20, 2020):
Sorry for the delay.
I'm not really sure what is causing your issue.
It seems that .NET can't find
libdl.so, which should be present in your distribution.Is it possible there is a mixup between
/liband/lib64? Maybe symlink the two and try again?@EarsKilla commented on GitHub (Apr 21, 2020):
Solved!
Seems that my system don't contains
libdl.sowhich is included inlibc6-devpackage (found in google here)After installation
libc6-devpackage and it's dependencies i was able to start app.Please, include in readme note about
libc6-devfor linux@vadi2 commented on GitHub (Apr 21, 2020):
Could you send in a PR for that?
@EarsKilla commented on GitHub (Apr 21, 2020):
@vadi2 done #193
@r9guy commented on GitHub (Apr 21, 2020):
what about windows? I have same Exception on windows.
@vadi2 commented on GitHub (Apr 21, 2020):
Are you certain it's the same?
@r9guy commented on GitHub (Apr 21, 2020):
this is the full exception.
nuget package version 0.10.1
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Qml.Net.Internal.Interop' threw an exception.
Source=Qml.Net
StackTrace:
at Qml.Net.Internal.Interop.get_NetVariantList()
at Qml.Net.Internal.Qml.NetVariantList..ctor()
at Qml.Net.QCoreApplication.Create(Int32 type, List`1 args, Int32 flags)
at Qml.Net.QCoreApplication..ctor(Int32 type, String[] args, Int32 flags)
at Qml.Net.QGuiApplication..ctor(String[] args, Int32 flags)
at QMLTest.Program.Main(String[] args) in C:\Users\Arsham\source\repos\QMLTest\Program.cs:line 11
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
Exception: Unable to find the native Qml.Net library. Try calling "RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();" in Program.Main()
@vadi2 commented on GitHub (Apr 21, 2020):
See it's different. Are you doing what it's telling you to do?
@r9guy commented on GitHub (Apr 21, 2020):
Dear Vadim.
my apologies. after closer look I have seen that the exception is indeed different and my intention to post was based on the title of issue itself.
anyway regarding what I do. I just created a console .netcore application, added nuget QML.NET and QML.NET Windows binaries.
just exactly as is described in here
my program is exactly as is given in managed hosting setup page.
I don't know what could be wrong from my end.
project is zipped and attached
QMLTest.zip
@r9guy commented on GitHub (Apr 21, 2020):
found that my code was different from @EarsKilla 's that it is missing
RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();added that . now there's no exception, it is not documented on website but on issue #143 .
@EarsKilla commented on GitHub (Apr 21, 2020):
@r9guy
it's documented in readme below
Define a .NET type (POCO)@r9guy commented on GitHub (Apr 21, 2020):
@EarsKilla @vadi2 thanks. that helped