Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Arm32 Qml.Net.Internal.Interop libQmlNet.so: undefined symbol: type_info_callbacks_registerCallbacks #223

Open
zhangjingru opened this issue Sep 4, 2020 · 2 comments

Comments

@zhangjingru
Copy link

zhangjingru commented Sep 4, 2020

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!

@pauldotknopf
Copy link
Member

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.

@zhangjingru
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants