[GH-ISSUE #126] Exception version Qt_5 not defined in file libQt5Qml.so.5 #73

Closed
opened 2026-05-05 11:03:31 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @TheSuunny on GitHub (Apr 22, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/126

Hi, I cleaned folder .nuget yesterday, and now I’m catching an exception, although everything worked before that, what could be the problem? All these files are in the folder, and qt5-base is also installed.

OS: Arch Linux

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Qml.Net.Internal.Interop' threw an exception. ---> System.Exception: Library could not be loaded: /home/sunny/.nuget/packages/qml.net.linuxbinaries/0.10.0/runtimes/linux-x64/native/libQmlNet.so: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm version Qt_5 not defined in file libQt5Qml.so.5 with link time reference: /home/sunny/.nuget/packages/qml.net.linuxbinaries/0.10.0/runtimes/linux-x64/native/libQmlNet.so
   at NetNativeLibLoader.Loader.UnixPlatformLoader.LoadLibrary(String path, SymbolFlag flags)
   at Qml.Net.Internal.Interop..cctor()
   --- End of inner exception stack trace ---
   at Qml.Net.QQuickStyle.SetStyle(String style)
   at Yove.Discord.Program.Main(String[] args) in /home/sunny/Documents/Yove.Discord/Program.cs:line 9
Originally created by @TheSuunny on GitHub (Apr 22, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/126 Hi, I cleaned folder .nuget yesterday, and now I’m catching an exception, although everything worked before that, what could be the problem? All these files are in the folder, and qt5-base is also installed. OS: Arch Linux ``` Unhandled Exception: System.TypeInitializationException: The type initializer for 'Qml.Net.Internal.Interop' threw an exception. ---> System.Exception: Library could not be loaded: /home/sunny/.nuget/packages/qml.net.linuxbinaries/0.10.0/runtimes/linux-x64/native/libQmlNet.so: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm version Qt_5 not defined in file libQt5Qml.so.5 with link time reference: /home/sunny/.nuget/packages/qml.net.linuxbinaries/0.10.0/runtimes/linux-x64/native/libQmlNet.so at NetNativeLibLoader.Loader.UnixPlatformLoader.LoadLibrary(String path, SymbolFlag flags) at Qml.Net.Internal.Interop..cctor() --- End of inner exception stack trace --- at Qml.Net.QQuickStyle.SetStyle(String style) at Yove.Discord.Program.Main(String[] args) in /home/sunny/Documents/Yove.Discord/Program.cs:line 9 ```
Author
Owner

@pauldotknopf commented on GitHub (Apr 22, 2019):

Try adding RuntimeManager.DiscoverOrDownloadSuitableQtRuntime(); in your Program.Main().

<!-- gh-comment-id:485396651 --> @pauldotknopf commented on GitHub (Apr 22, 2019): Try adding ```RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();``` in your ```Program.Main()```.
Author
Owner

@TheSuunny commented on GitHub (Apr 22, 2019):

Oh, yes, thank you very much for your work :)

<!-- gh-comment-id:485398882 --> @TheSuunny commented on GitHub (Apr 22, 2019): Oh, yes, thank you very much for your work :)
Author
Owner

@pauldotknopf commented on GitHub (Apr 22, 2019):

You are very welcome ;)

<!-- gh-comment-id:485402304 --> @pauldotknopf commented on GitHub (Apr 22, 2019): You are very welcome ;)
Author
Owner

@pauldotknopf commented on GitHub (Apr 22, 2019):

What are you building? A Discord client?

<!-- gh-comment-id:485402395 --> @pauldotknopf commented on GitHub (Apr 22, 2019): What are you building? A Discord client?
Author
Owner

@TheSuunny commented on GitHub (Apr 22, 2019):

No, there are already a lot of good libraries for a discord on .net, I make for myself all sorts of small utilities :)

<!-- gh-comment-id:485405108 --> @TheSuunny commented on GitHub (Apr 22, 2019): No, there are already a lot of good libraries for a discord on .net, I make for myself all sorts of small utilities :)
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#73
No description provided.