Using DaVinci Resolve under Ubuntu WSL will fail due to Glib

Getting started with a Blackmagic product? Ask questions here about setup and installation.
  • Author
  • Message
Offline

linghengqian

  • Posts: 4
  • Joined: Sun Jul 07, 2024 6:21 am
  • Real Name: Qiheng He

Using DaVinci Resolve under Ubuntu WSL will fail due to Glib

PostSun Jul 07, 2024 6:45 am

- I came here from ubuntu/WSL#451 in github because I personally don't quite understand how to properly install Davinci Resolve under Linux. Since my account cannot send URLs, I cannot link to the corresponding github issue.
- Using DaVinci Resolve 18.6.6 on Ubutntu Preview WSL will cause GLib incompatibility. This actually corresponds to Ubutntu 24.04 WSL. Execute the following command to install DaVinci Resolve 18 under the new Ubuntu Preview instance. The url to download DaVinci Resolve requires additional information at davinci resolve site . This seems to cause the url here to expire.

Code: Select all
sudo apt update && sudo apt upgrade -y

cd /tmp/
wget https://swr.cloud.blackmagicdesign.com/DaVinciResolve/v18.6.6/DaVinci_Resolve_18.6.6_Linux.zip?verify=1711345991-koLpOfRkrZVQWYam%2BYGYcCYaEY9VEEdF0FRcQSJSvCY%3D -O ./DaVinci_Resolve_Linux.zip
sudo apt install unzip -y
unzip ./DaVinci_Resolve_Linux.zip
chmod +x ./DaVinci_Resolve_18.6.6_Linux.run

# `DaVinci_Resolve_18.6.6_Linux.run` is an AppImage.
sudo apt install libfuse2 -y
sudo apt install libapr1 libaprutil1 libasound2 libglu1-mesa libgomp1 libice6 libnuma1 libsm6 libxcb-composite0 libxcb-cursor0 libxcb-damage0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-shape0 libxcb-util1 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxkbcommon-x11-0 ocl-icd-libopencl1 -y

# You need to always select 'y' during the installation process
sudo ./DaVinci_Resolve_18.6.6_Linux.run -i

rm -rf /tmp/DaVinci_Resolve_18.6.6_Linux.run
rm -rf /tmp/Linux_Installation_Instructions.pdf

/opt/resolve/bin/resolve


- Executing `/opt/resolve/bin/resolve` will result in the following error, making it impossible to open `DaVinci Resolve`. From the Log, it can be seen that the GLib version is incompatible.

Code: Select all
$ /opt/resolve/bin/resolve
/opt/resolve/bin/resolve: symbol lookup error: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: g_string_free_and_steal



Image

- Ubuntu Team member suggested to use system library to overwrite DaVinci Resolve's own library files at ubuntu/WSL#451 . But it didn't help.

Code: Select all
$ LD_PRELOAD="/lib/x86_64-linux-gnu/libglib-2.0.so.0 /lib/x86_64-linux-gnu/libgio-2.0.so.0" /opt/resolve/bin/resolve
/opt/resolve/bin/resolve: symbol lookup error: /lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined symbol: g_module_open_full


- I don't see any additional solutions listed in the PDF next to the DaVinci Resolve AppImage. Am I missing something?
Offline

Christoph Schmid

  • Posts: 236
  • Joined: Thu Sep 26, 2019 10:15 am
  • Location: Germany
  • Real Name: Christoph Schmid

Re: Using DaVinci Resolve under Ubuntu WSL will fail due to

PostSun Jul 07, 2024 9:24 am

Maybe this will help you:
viewtopic.php?f=21&t=202819#p1053783

Davinci Resolve Studio 18.6.6
Windows 10 Pro 22H2
Davinci Resolve Studio 19.0B52
Linux Ubuntu Studio 24.04
Offline

linghengqian

  • Posts: 4
  • Joined: Sun Jul 07, 2024 6:21 am
  • Real Name: Qiheng He

Re: Using DaVinci Resolve under Ubuntu WSL will fail due to

PostMon Jul 08, 2024 5:22 am

Christoph Schmid wrote:Maybe this will help you:
viewtopic.php?f=21&t=202819#p1053783


- I was struck by viewtopic.php?f=21&t=202819#p1053783 mentioning `makeresolvedeb` as this looked more like something that `Blackmagic Design Pty. Ltd` would do. I wanted to test DaVinci Resolve 18.6.6 on a new Ubuntu 24.04 WSL instance but it looked like I ran into the issue mentioned at viewtopic.php?f=38&t=200276 where DaVinci Resolve 18.6.6 uses `libasound2` which doesn't exist on Ubuntu 24.04.

- So I tested on Ubuntu 22.04 WSL.

Code: Select all
sudo apt update && sudo apt upgrade -y
cd /tmp/
wget https://swr.cloud.blackmagicdesign.com/DaVinciResolve/v18.6.6/DaVinci_Resolve_18.6.6_Linux.zip?verify=1720411508-64pun7nYoVsaGe%2Fj5A%2F1wktM4N9up%2FVTuiFTiyNsJ9I%3D -O ./DaVinci_Resolve_Linux.zip
sudo apt install unzip -y
unzip ./DaVinci_Resolve_Linux.zip
chmod +x ./DaVinci_Resolve_18.6.6_Linux.run

# `DaVinci_Resolve_18.6.6_Linux.run` is an AppImage.
sudo apt install libfuse2 -y
sudo apt install fontconfig libapr1 libaprutil1 libasound2 libfreetype6 libglu1-mesa libglvnd0 libgomp1 libice6 libsm6 libxcb-composite0 libxcb-cursor0 libxcb-damage0 libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxcursor1 libxfixes3 libxi6 libxinerama1 libxkbcommon-x11-0 libxkbcommon0 libxrandr2 libxrender1 libxtst6 libxxf86vm1 ocl-icd-libopencl1 -y

# Install some Gnome applications to include more GUI related system libraries.
sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y

# You need to always select 'y' during the installation process
sudo ./DaVinci_Resolve_18.6.6_Linux.run -i

rm -rf /tmp/DaVinci_Resolve_18.6.6_Linux.run
rm -rf /tmp/Linux_Installation_Instructions.pdf
rm -rf /tmp/DaVinci_Resolve_Linux.zip

/opt/resolve/bin/resolve


- I found something new. Of course, this time there was no Error Log like `/opt/resolve/bin/resolve: symbol lookup error: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined symbol: g_string_free_and_steal`. But DaVinci Resolve was stuck and could not be used.

- Image

- Image

Code: Select all
# I don't understand why the image is not showing. I have attached the URL of the image
https://youjb.com/image/image.cXT
https://youjb.com/image/image.cXN


- The log is as follows.
Code: Select all
$ /opt/resolve/bin/resolve
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0
QSocketNotifier: Can only be used with threads started with QThread
New connection received.

- Should I open a new issue in the forum for this?
Offline

Shrinivas Ramani

Blackmagic Design

  • Posts: 2828
  • Joined: Wed Sep 20, 2017 10:19 am

Re: Using DaVinci Resolve under Ubuntu WSL will fail due to

PostWed Jul 10, 2024 6:25 am

Windows subsystem for Linux is not a supported platform.

Please use the native Windows installer.
Offline

linghengqian

  • Posts: 4
  • Joined: Sun Jul 07, 2024 6:21 am
  • Real Name: Qiheng He

Re: Using DaVinci Resolve under Ubuntu WSL will fail due to

PostWed Jul 10, 2024 9:11 am

Shrinivas Ramani wrote:Windows subsystem for Linux is not a supported platform.

Please use the native Windows installer.


- Hi, I personally want to test common Linux applications on WSLg for the convenience of cross-platform application testing, which has nothing to do with Windows native applications. I wonder if there is any known issue that prevents me from starting to use Davinci Resolve on WSLg?

Or can Davinci Resolve provide more friendly interactions to prevent running Davinci Resolve on WSLg? Displaying a white screen interface is too abrupt.
Offline

Shrinivas Ramani

Blackmagic Design

  • Posts: 2828
  • Joined: Wed Sep 20, 2017 10:19 am

Re: Using DaVinci Resolve under Ubuntu WSL will fail due to

PostWed Jul 10, 2024 1:31 pm

Please use a dual boot and Rocky Linux 8.6 directly in that case. This is just not a supported platform.
Offline

linghengqian

  • Posts: 4
  • Joined: Sun Jul 07, 2024 6:21 am
  • Real Name: Qiheng He

Re: Using DaVinci Resolve under Ubuntu WSL will fail due to

PostThu Jul 11, 2024 1:15 pm

Shrinivas Ramani wrote:Please use a dual boot and Rocky Linux 8.6 directly in that case. This is just not a supported platform.


- Thanks for the clarification. I have now closed the original issue https://github.com/ubuntu/WSL/issues/451 .

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 7 guests