Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using built-in colorscheme
INFO MissionPlanner.Program - ******************* Logging Configured *******************
INFO MissionPlanner.Program - /root/MissionPlanner/arm64/libSkiaSharp
ERROR MissionPlanner.Program - System.Runtime.InteropServices.MarshalDirectiveException: Return marshalling of stringbuilders is not implemented.
at (wrapper managed-to-native) MissionPlanner.Utilities.NativeLibrary.dlerror()
at MissionPlanner.Program.Start (System.String args) [0x003cf] in :0
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello there!
It looks like you’re encountering a couple of issues while trying to run Mission Planner on your iMX8MP device. Let’s address these step by step.
-
GTK Library Issue:
- The error message indicates that the GTK library (
libgtk-x11-2.0.so.0
) is missing. This usually means the library isn’t installed or theLD_LIBRARY_PATH
isn’t set correctly. - First, ensure that the GTK library is installed in your Torizon environment. You can do this by adding the necessary GTK packages to your Torizon container. For GTK 2, you might need to install packages like
libgtk2.0-0
andlibgtk2.0-dev
. - Next, set the
LD_LIBRARY_PATH
to include the directory wherelibgtk-x11-2.0.so.0
is located. You can do this by adding an environment variable in your Dockerfile or using the Torizon extension in Visual Studio Code to set it in the container configuration.
- The error message indicates that the GTK library (
-
Marshalling Exception:
- The
System.Runtime.InteropServices.MarshalDirectiveException
suggests an issue with the interop between managed and unmanaged code, particularly with string builders. - This might be related to the version of Mono or .NET runtime you’re using. Make sure you’re using a compatible version that supports the required marshalling operations.
- Additionally, check if there are any specific patches or updates for Mission Planner that address this issue.
- The
By ensuring the correct GTK libraries are installed and configured, and verifying the runtime environment for compatibility, you should be able to resolve these issues.
I hope this helps! If you have any more questions, feel free to ask.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
“root@verdin-imx8mp-15034062:~# find /usr -name “libgtk*”
/usr/lib/libgtk-3.so.0
/usr/lib/libgtk-3.so.0.2409.32” I have this gtk libraries. Can I use these ?
Hello @Abdullah,
What Operating System are you using?
Can you send me the output of tdx-info?
Best Regards,
Bruno
"Software summary
Bootloader: U-Boot
Kernel version: 6.6.54-7.1.0-devel-gf7321c633d93 #1 SMP PREEMPT Thu Oct 31 16:17:44 UTC 2024
Kernel command line: root=PARTUUID=f436cb8e-02 ro rootwait console=tty1 console=ttymxc2,115200
Distro name: NAME=“TDX Wayland with XWayland”
Distro version: VERSION_ID=7.1.0-devel-20241202122731-build.0
Distro variant: -
Hostname: verdin-imx8mp-15034062
Hardware info
HW model: Toradex Verdin iMX8M Plus on Verdin Development Board
Toradex version: 0063 V1.1A
Serial number: 15034062
Processor arch: aarch64
" But I’m not trying to run Mission Planner anymore.
Thanks anyway
Hello @Abdullah,
Thanks for the update.
For future reference, the easiest way to get software running on our modules is to use Docker containers on top of Torizon OS.
Otherwise, you would need to add the dependencies and the application via a custom Yocto build.
Best Regards,
Bruno