[GH-ISSUE #187] Not Support for running on ARM #120

Closed
opened 2026-05-05 11:05:42 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @zhangjingru on GitHub (Mar 4, 2020).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/187

dotnet publish -r linux-arm

dotnet Features.dll
Unhandled exception. System.Exception: Unsupported target
at Qml.Net.Runtimes.RuntimeManager.RuntimeTargetToString(RuntimeTarget target)
at Qml.Net.Runtimes.RuntimeManager.FindQtRuntime(String[] runtimeDirectories, String qtVersion, RuntimeTarget target)
at Qml.Net.Runtimes.RuntimeManager.FindSuitableQtRuntime(RuntimeSearchLocation runtimeSearchLocation)
at Qml.Net.Runtimes.RuntimeManager.DiscoverOrDownloadSuitableQtRuntime(RuntimeSearchLocation runtimeSearchLocation)
at Features.Program.Main(String[] args) in D:\Project\qmlnet-examples\src\Features\Program.cs:line 12

source code:
private static string RuntimeTargetToString(RuntimeTarget target)
{
switch (target)
{
case RuntimeTarget.Windows64:
return "win-x64";
case RuntimeTarget.LinuxX64:
return "linux-x64";
case RuntimeTarget.OSX64:
return "osx-x64";
case RuntimeTarget.Unsupported:
throw new Exception("Unsupported target");
default:
throw new Exception($"Unknown target {target}");
}
}

Originally created by @zhangjingru on GitHub (Mar 4, 2020). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/187 dotnet publish -r linux-arm dotnet Features.dll Unhandled exception. System.Exception: Unsupported target at Qml.Net.Runtimes.RuntimeManager.RuntimeTargetToString(RuntimeTarget target) at Qml.Net.Runtimes.RuntimeManager.FindQtRuntime(String[] runtimeDirectories, String qtVersion, RuntimeTarget target) at Qml.Net.Runtimes.RuntimeManager.FindSuitableQtRuntime(RuntimeSearchLocation runtimeSearchLocation) at Qml.Net.Runtimes.RuntimeManager.DiscoverOrDownloadSuitableQtRuntime(RuntimeSearchLocation runtimeSearchLocation) at Features.Program.Main(String[] args) in D:\Project\qmlnet-examples\src\Features\Program.cs:line 12 source code: private static string RuntimeTargetToString(RuntimeTarget target) { switch (target) { case RuntimeTarget.Windows64: return "win-x64"; case RuntimeTarget.LinuxX64: return "linux-x64"; case RuntimeTarget.OSX64: return "osx-x64"; case RuntimeTarget.Unsupported: throw new Exception("Unsupported target"); default: throw new Exception($"Unknown target {target}"); } }
Author
Owner

@shartte commented on GitHub (May 29, 2020):

Which platform is Qt on for this? Linux/X11 or Android?

<!-- gh-comment-id:636184979 --> @shartte commented on GitHub (May 29, 2020): Which platform is Qt on for this? Linux/X11 or Android?
Author
Owner

@pauldotknopf commented on GitHub (May 30, 2020):

Anything other than win-x64, linux-x64, osx-x64, you'll need to compile/package the native bits to QmlNet yourself.

Compile ./src/native/QmlNet/QmlNet.pro and make sure it's available in your PATH/LD_LIBRARY_PATH.

<!-- gh-comment-id:636262088 --> @pauldotknopf commented on GitHub (May 30, 2020): Anything other than ```win-x64```, ```linux-x64```, ```osx-x64```, you'll need to compile/package the native bits to QmlNet yourself. Compile ```./src/native/QmlNet/QmlNet.pro``` and make sure it's available in your ```PATH```/```LD_LIBRARY_PATH```.
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#120
No description provided.