Is there a working example for using FRUC with cuda on Linux?

I’ve been experimenting with writing a FRUC filter for ffmpeg, and it’s a real struggle. The example in the SDK doesn’t build on Linux - and in fact the FreeImage library it uses doesn’t come with a linux build. My experiments with just writing code result in a segfault when calling Process which doesn’t help me at all. The documentation is generally poor and incomplete, so it’s unclear where to go from here.