Resolve Studio 16.1.0B.011
OS and version:
CentoOS 7.6.1810
Description of the bug:
Resolve's Fusion scripting API has broken the built-in support for curl via Lua's FFI interface. This means no Resolve on Linux user can use Reactor.

If you run a Lua script or fuse that relies on curl FFI support you will get a Console error message of:
Code: Select all
[string "lj2curl/curl_ffi"]:1440: libcurl.so: cannot open shared object file: No such file or directory
Severity (Trivial, Minor, Major, Critical)
Critical if you like Reactor.
Steps to reproduce:
- Try to install Reactor in Resolve on Linux.
- Try to use the NetLoader.fuse in Resolve on Linux.
[code]
tags:Here is a Lua curl FFI image downloading example script:
- -- The URL for the cURL based download:
- local sourceURL = [[https://www.steakunderwater.com/wesuckless/styles/Subway/artwork/WSL_Happy-Charlie.PNG]]
- -- The filepath for saving the downloaded asset
- local fuDestFile = comp:MapPath("Temp:/") .. "wsl.png"
- -- Set up cURL to work with Fusion 9.0.1
- ffi = require "ffi"
- curl = require "lj2curl"
- ezreq = require "lj2curl.CRLEasyRequest"
- local req = ezreq(sourceURL)
- local body = {}
- req:setOption(curl.CURLOPT_SSL_VERIFYPEER, 0)
- req:setOption(curl.CURLOPT_WRITEFUNCTION, ffi.cast("curl_write_callback",
- function(buffer, size, nitems, userdata)
- table.insert(body, ffi.string(buffer, size*nitems))
- return nitems
- end))
- -- Download the file from the "sourceURL" address
- print('[Downloading] ' .. sourceURL)
- ok, err = req:perform()
- if ok then
- -- Write the file to disk
- local file = io.open(fuDestFile, "w")
- file:write(table.concat(body));
- file:close();
- -- Show the file we just downloaded in the default HTML viewer on your system:
- print('[Opening File] ' .. fuDestFile)
- bmd.openfileexternal('Open', fuDestFile)
- end