Cannot setup root / libASImage.so

There is something fishy with -l/usr/lib/x86_64-linux-gnu/libX11.so (the -l is wrong). Can you please post the full output of the cmake step on a clean build area?