Although Linuxmint usually has built in driver support for AMD graphic card, sometimes we still need to install extra support for some application. Usually it's supposed to be painless, however, I did run into some issues.
Under linuxmint, menu > system info , you shall be able to see your graphic card's name. Search for its driver on AMD site. For instance mine is:
AMD Radeon RX 5600 OEM/5600 XT / 5700/5700 XT
Download the version for Ubuntu x86 64bit for Ubuntu 20.04.1. You will get a zip file. Unzip it. You can rename the folder to something easy to remember but I am too lazy...
cd Downloads/amdgpu-pro-20.40-1147286-ubuntu-20.04 ./amdgpu-pro-install -y --opencl=pal,legacy
Previously I tried other script which somehow didn't properly install the OpenCL and I got this error.
I've since goolged like crazy, posted in two forums, and read tons of posts and discussed with another friend about this... in the end I uninstalled whatever I installed previously, and re-downloaded the package again (just to make sure it's not corrupted) and reinstalled it like above, and finally got it to work! I hope if you followed my above instruction you don't need to go through the same pain I have been through.
sudo apt install libssl1.1 ocl-icd-opencl-dev fakeroot xorriso
- libssl1.1, ocl-icd-opencl-dev needed for running DaVinci Resolve
- fakeroot, xorriso for generating the deb (since the official DaVinci Resolve linux package is only made for CentOS)
Click on the Linux, note Studio is the paid version with more features, if you want to download the free one just download the DaVinci Resolve 16.
Extract the zip in your Downloads folder, and you will see the file named DaVinci_Resolve_16.2.7_Linux.run. Don't do anything yet as this one is made for CentOS. In next step we will have a bash script to make it into a installation file that's suitable for Linuxmint.
The instruction is pretty straight forward from here. Basically you download and extract everything into one folder, and make sure they have exactly the same name. The script here makes the previous .run file we have into a .deb file, then it's suitable to install on Linuxmint.
After everything, don't forget to reboot for things to work properly. If everything goes well you should be able to run DaVinci Resolve on your computer.