GTK3 building with Ubuntu 20.04 LTS

  • Just thought I leave this here in case anyone is looking. Was using Ubuntu 20.04 LTS with WSL2 to build an addon for LibreELEC 9.2, I noticed that building GTK3 would fail at building gdm as Ubuntu 20.04 no longer has libffi6 but only libffi7. For some reason it still tries to look in /usr/lib/x86_64-linux-gnu, where libffi.so.6 doesn't exist. It is there in toolchain but for some reason it doesn't use that and still tries to look in /usr/lib/x86_64-linux-gnu.

    Copied libffi.so.6.0.4 from http://LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/toolchain/lib/libffi.so.6.0.4 over to /usr/lib/x86_64-linux-gnu, and created an symbolic link for libffi.so.6 solved the issue.

    Code
    -rwxr-xr-x  1 root root    41600 May  9 23:24 libffi.so.6.0.4
    lrwxrwxrwx  1 root root       15 May  9 23:25 libffi.so.6 -> libffi.so.6.0.4

    The issue doesn't occur with master.