I try a basic example with QML -
https://github.com/qmlnet/qmlnet
And I need to fix this error , any idea ?
[mythcat@desk QML001]$ dotnet run
Unhandled exception. System.TypeInitializationException: The type initializer for
'Qml.Net.Internal.Interop' threw an exception.
---> System.Exception: Library could not be loaded: /lib64/libQt5Core.so.5: version
`Qt_5_PRIVATE_API' not found (required by
/home/mythcat/CSharpProjects/QMLProjects/QML001/bin/Debug/net6.0/runtimes/linux-x64/native/libQmlNet.so):
/home/mythcat/CSharpProjects/QMLProjects/QML001/bin/Debug/net6.0/runtimes/linux-x64/native/libQmlNet.so
at NetNativeLibLoader.Loader.UnixPlatformLoader.LoadLibrary(String path, SymbolFlag
flags) in NetNativeLibLoader.dll:token 0x6000035+0x6d
at NetNativeLibLoader.Loader.UnixPlatformLoader.LoadLibraryInternal(String path) in
NetNativeLibLoader.dll:token 0x6000036+0x0
at NetNativeLibLoader.Loader.PlatformLoaderBase.LoadLibrary(String path) in
NetNativeLibLoader.dll:token 0x600002d+0x0
at Qml.Net.Internal.Interop..cctor() in Qml.Net.dll:token 0x600010e+0x92
--- End of inner exception stack trace ---
at Qml.Net.Internal.Interop.get_NetVariantList() in Qml.Net.dll:token 0x6000118+0x0
at Qml.Net.Internal.Qml.NetVariantList..ctor() in Qml.Net.dll:token 0x6000379+0x0
at Qml.Net.QCoreApplication.Create(Int32 type, List`1 args, Int32 flags) in
Qml.Net.dll:token 0x600003f+0x1b
at Qml.Net.QCoreApplication..ctor(Int32 type, String[] args, Int32 flags) in
Qml.Net.dll:token 0x6000025+0x16
at Qml.Net.QGuiApplication..ctor(String[] args, Int32 flags) in Qml.Net.dll:token
0x6000067+0x0
at QML001.Program.Main(String[] args) in
/home/mythcat/CSharpProjects/QMLProjects/QML001/Program.cs:line 10
[mythcat@desk QML001]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib64/libQt5Core.so.5