[Linux] SliceOpenCV build

I am trying to fix the SlicerOpenCV build in order to re-enable the extension, but I am experiencing some roadblocks. I am able to successfully build the extension on Ubuntu 20.04 with gcc 9.x.

I notice that the build machine is on gcc 7.y. This is probably the reason, right?

I’m trying to make sense of the build error but I don’t know if I’m missing something in the build machine log output


@Sam_Horvath is it possible to set up a 20.04 build machine to see if it passes?

I was able to compile SlicerOpenCV with gcc-11.2 on my local machine. The main issue in my case was the correct path to OpenCV cmake files.

Build fixed. OpenCV install folder was distribution dependent (lib on some, lib64 on others). Explicitly setting this fixed the issue.