ld: cannot find -lssl -lcrypto

  • I would like to build LibreELEC image for MXQ S805 m201d device from sources GitHub - kszaq/LibreELEC.tv: 'Just enough OS' for Kodi using the guide: Compile [LibreELEC.wiki] .

    But after the command:

    PROJECT=S805 SYSTEM=m201d ARCH=arm make image

    and a lot of compilation time I got linker error:

    I use Lubuntu 16.04.3-i386 (32 bit) fresh VM as host system, gcc version 5.4.0 20160609 (Ubuntu 5.4.0-5ubuntu1~16.04.9).

    I suppose that wrong architecture (64 bit) libssl and libcrypto were created (because linker says 'skipping incompatible...') but I don't know how to resolve this issue.

    Which way is to continue building process?

    P.S. Before this issue I got error:

    In file (...) /usr/include/features.h fatal error: sys/cdefs.h: No such file or directory

    and resolved this issue installing g++-multilib:

    sudo apt install g++-multilib.