general/other Trying to install and run Davinci Resolve on the Linuxulator

Hello to everyone.

after being able to install and run Blender (for Linux) within the linuxulator with CUDA enabled and rendering with cycles using my GPU (RTX 2080 ti) :

Screenshot from 2023-05-26 12-52-24.png


- you can see the whole workflow here :

https://www.reddit.com/r/freebsd/comments/13qfz3t/how_to_blacklist_nouveau_driver_within_the/

I wanna try to install Davinci Resolve (later I will try Unreal Engine 5 or Maya 3D (trial 4 students) or any other 3D tool for Linux that may work) on FreeBSD. Below you can see what are the commands that I have issued right now,before to freezes myself with an error that I never seen :

Code:
./DaVinci_Resolve_Studio_18.5b3_Linux.run

dlopen(): error loading libfuse.so.2

AppImages require FUSE to run.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information


# apt install libfuse2 libapr1 libaprutil1
libxcb-cursor0 libxcb-damage

ok

./DaVinci_Resolve_Studio_18.5b3_Linux.run

/tmp/.mount_DaVinc2iqma0/installer: error while
loading shared libraries: libQt5Widgets.so.5: cannot
close file descriptor: Error 38

I tried :

Code:
ktrace -di ./DaVinci_Resolve_Studio_18.5b3_Linux.run

and :

Code:
kdump -HAR -m 64 > linubin.out

These commands produced two files : ktrace.out and linuxbin.out and I've shared them to my google drive,here :

https://drive.google.com/drive/folders/1AS583LKfiUDri35_Z26QpbJ2KZmnT5vT?usp=share_link


this is the result :

Code:
7967 100505 installer 0.000003 CALL L64 linux_openat(AT_FDCWD,0x7fffffffb6f0,0x80000<O_RDONLY|O_CLOEXEC>)
7967 100505 installer 0.000004 NAMI  L64  "/compat/ubuntu2210/tmp/.mount_DaVincLyZOCX/libs/libQt5Widgets.so.5"
7967 100505 installer 0.000003 NAMI  L64  "/tmp/.mount_DaVincLyZOCX/libs/libQt5Widgets.so.5"

                                          ^^^^^^^^ what is mounted to /tmp?, see below

7967 100505 installer -0.000001 RET   L64  linux_openat 4
7967 100505 installer 0.000005 CALL  L64  read(0x4,0x7fffffffb918,0x340)
7967 100505 installer 0.000005 GIO   L64  fd 4 read 832 bytes
7967 100505 installer 0.000004 RET   L64  read 832/0x340
7967 100505 installer 0.000002 CALL  L64  linux_newfstatat(0x4,0x8006d7ca1,0x7fffffffb7b0,0x1000<AT_EMPTY_PATH>)
7967 100505 installer 0.000001 NAMI  L64  ""

7967 100505 installer 0.000003 STRU  L64  struct stat {dev=18446744073390849802, ino=4139587523, mode=0100755, nlink=1, uid=0, gid=0, rdev=0, atime=1685119480.178095000, mtime=1684588130, ctime=1684588130, birthtime=-1.-00000001, size=7227816, blksize=131072, blocks=14116, flags=0x0 }

7967 100505 installer 0.000001 RET   L64  linux_newfstatat 0
7967 100505 installer 0.000002 CALL  L64  linux_mmap2(0,0x6e5750,0x1,0x802,0x4,0)
7967 100505 installer 0.000005 RET   L64  linux_mmap2 34368126976/0x800800000
7967 100505 installer 0.000002 CALL  L64  linux_mmap2(0x800956000,0x3c5000,0x5,0x812,0x4,0x156000)
7967 100505 installer 0.000004 RET   L64  linux_mmap2 34369527808/0x800956000
7967 100505 installer 0.000001 CALL  L64  linux_mmap2(0x800d1b000,0x175000,0x1,0x812,0x4,0x51b000)
7967 100505 installer 0.000003 RET   L64  linux_mmap2 34373480448/0x800d1b000
7967 100505 installer 0.000001 CALL  L64  linux_mmap2(0x800e90000,0x56000,0x3,0x812,0x4,0x68f000)
7967 100505 installer 0.000003 RET   L64  linux_mmap2 34375008256/0x800e90000
7967 100505 installer 0.000004 CALL  L64  close(0x4)
7967 100505 installer -0.000001 RET   L64  close -1 errno -38 Function not implemented

                                              ^^^^^^^^^^^^^^ native close() used

7967 100505 installer 0.000002 CALL  L64  close(0x4)
7967 100505 installer 0.000005 RET   L64  close -1 errno -9 Bad file descriptor
7967 100505 installer 0.000001 CALL  L64  munmap(0x800800000,0x6e5750)
7967 100505 installer 0.000000 RET   L64  munmap 0

Under /tmp I tried the filesystems below :

Code:
tmpfs               /compat/ubuntu2210/dev/shm  tmpfs       rw,late,size=1g,mode=1777       0       0
/tmp                /compat/ubuntu2210/tmp            nullfs        rw,late                                               0       0
tmpfs             /compat/ubuntu2210/tmp             tmpfs       rw,mode=1777,size=1G               0       0

Unfortunately I've got the same error for all of these 3 fs. So,the error does not depend about this. The reason should be different. At this point I have no idea why.
 
This is cool and I commend you on your work. I was involved with Maya back in year one with Alias Wavefront. I wanted to try and get DaVinci running this way, too, but you did the work for me.

Is cerberus you? I didn't investigate but what are all those git files? Are they for FreeBSD or Linux? Some clarity, please.

Is that above link all that's needed to make Blender work?
 
Nope. I'm not "cerberus". But I have collaborated with him to be able to run Resolve on the Linuxulator. Now I'm trying to run Unreal Editor. We are talking about FreeBSD and the Linuxulator. Some multimedia / 3D tools work only on the Linuxulator,but some others in FreeBSD with the support of CUDA that works with a little hack.
 
If you want run Blender,try to follow this thread :

 
Now DaVinci Resolve works on FreeBSD :

great stuff mate
glad my notes on using makeresolvedeb worked create to a deb installer for davinci resolve

only issue with resolve on linux is the lack of h264 / aac support in the free version
the paid version has support for h264 but not aac

so you have to convert all your footage to prores / wav before you can import it into resolve
then you have to export prores from resolve and convert it to h264/aac for the web

so make sure you have a big hard drive

heres a script i use to convert footage to prores for resolve

prores-video script
 
great stuff mate...
i just had a mad idea

what about a linux distros with applications like da vinci resolve
or blender preinstalled with hardware acceleration enabled

sort of like how docker containers work on linux

so instead of having a set of instructions on setting up the linuxlator
and installing a distro and all the packages

users could install a prebuilt linux distro with an application already installed
that would make things easier for users

either using some build script or a make file

i know you can build custom iso on linux
just wondering if you could build a custom iso with applications preinstalled and run it on freebsd

im sure some people will hate the idea

but from a users point of view having an easy way to install something like da vinci resolve
and then get on with video editing without having to do a lot of set up would be more productive

although you learn a lot setting things up sometime you just want to install something and get on with some work
 
You may want to create a linux vm for bhyve dedicated to multimedia.....with the gpu available via pass thru.
 
No. Pc should have at least two gpus...one for the host os / freebsd / the second reserved for linux
 
What about creating a custom freebsd version that has access to some multimedia apps that You want to add and maintain. Im interested to do the same but with a different set of apps under the form of ports or packages.
 
only issue with resolve on linux is the lack of h264 / aac support in the free version

I responded to him just as I was setting up a box someone gave me so I could install Rocky Linux just to see what Davinci was all about. Took me all day off and on to figure out Rocky and KDE and download Davinci and get to the final point where it says Rocky is running the nouveau driver and can nvidia try and work around it and thank you very much for crashing all the work I just did.
 
Back
Top