[GH-ISSUE #223] Linux Arm32 Qml.Net.Internal.Interop libQmlNet.so: undefined symbol: type_info_callbacks_registerCallbacks #141

Open
opened 2026-05-05 11:06:40 -06:00 by gitea-mirror · 2 comments
Owner

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

qmake qmlnet_native/QmlNet/QmlNet.pro produced libQmlNet.so
libQmlNet.so copy to publish

root@NanoPi2:/opt/armapp_qmlnet# dotnet QmlDoNet.dll
Hello World!
System.TypeInitializationException: The type initializer for 'Qml.Net.Internal.Interop' threw an exception.
---> System.Exception: Symbol could not be loaded: /opt/armapp_qmlnet/libQmlNet.so: undefined symbol: type_info_callbacks_registerCallbacks. Symbol name: type_info_callbacks_registerCallbacks
at NetNativeLibLoader.Loader.UnixPlatformLoader.LoadSymbol(IntPtr library, String symbolName)
at Qml.Net.Internal.Interop.LoadDelegates(Object o, IntPtr library, IPlatformLoader loader)
at Qml.Net.Internal.Interop.LoadInteropType[T](IntPtr library, IPlatformLoader loader)
at Qml.Net.Internal.Interop..cctor()
--- End of inner exception stack trace ---
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 QmlDoNet.Program.Main(String[] args) in D:\Project\QmlDoNet\QmlDoNet\Program.cs:line 15

qmake qmlnet_native/QmlNet.pro
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!

Originally created by @zhangjingru on GitHub (Sep 4, 2020). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/223 qmake qmlnet_native/QmlNet/QmlNet.pro produced libQmlNet.so libQmlNet.so copy to publish root@NanoPi2:/opt/armapp_qmlnet# dotnet QmlDoNet.dll Hello World! System.TypeInitializationException: The type initializer for 'Qml.Net.Internal.Interop' threw an exception. ---> System.Exception: Symbol could not be loaded: /opt/armapp_qmlnet/libQmlNet.so: undefined symbol: type_info_callbacks_registerCallbacks. Symbol name: type_info_callbacks_registerCallbacks at NetNativeLibLoader.Loader.UnixPlatformLoader.LoadSymbol(IntPtr library, String symbolName) at Qml.Net.Internal.Interop.LoadDelegates(Object o, IntPtr library, IPlatformLoader loader) at Qml.Net.Internal.Interop.LoadInteropType[T](IntPtr library, IPlatformLoader loader) at Qml.Net.Internal.Interop..cctor() --- End of inner exception stack trace --- 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 QmlDoNet.Program.Main(String[] args) in D:\Project\QmlDoNet\QmlDoNet\Program.cs:line 15 qmake qmlnet_native/QmlNet.pro Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version. Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point. Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
Author
Owner

@pauldotknopf commented on GitHub (Sep 4, 2020):

If you are using the Qml.Net package from NuGet, you need to make sure you use the correct commit to build the native libs.

Can you verify that? If you use 0.10.0 from NuGet, build the native libs from that tag.

<!-- gh-comment-id:687139865 --> @pauldotknopf commented on GitHub (Sep 4, 2020): If you are using the ```Qml.Net``` package from NuGet, you need to make sure you use the correct commit to build the native libs. Can you verify that? If you use ```0.10.0``` from NuGet, build the native libs from that tag.
Author
Owner

@zhangjingru commented on GitHub (May 13, 2022):

thanks, need native compilation https://github.com/qmlnet/qmlnet-native

<!-- gh-comment-id:1125549489 --> @zhangjingru commented on GitHub (May 13, 2022): > thanks, need native compilation https://github.com/qmlnet/qmlnet-native
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#141
No description provided.