I'm trying to install Miraclecast on 16.04, but the installation isn't working (I barely know where to start). Somebody can explain how I could install Miraclecast?

This is the error:

./autogen.sh: Syntax error: newline unexpected

Solution 1:

You should have systemd version >= 219 to build this. To check version of systemd, run systemd --version.

  1. Go to https://github.com/albfan/miraclecast.

  2. Download the entire source code, not just autogen.sh. You can do it by clicking the Clone or download button, and then Download as ZIP or directly at https://github.com/albfan/miraclecast/archive/master.zip.

  3. Unzip the folder to get folder miraclecast-master and run:

    cd miraclecast-master
    sudo apt-get update
    sudo apt-get install ubuntu-dev-tools autoconf libtool libudev-dev libsystemd-dev glib-2.0 libperl-dev libgtk2.0-dev libreadline-dev
    libtoolize; aclocal; autoconf
    sudo ./autogen.sh
    
  4. Once ./autogen.sh is complete, run:

    sudo ./configure
    sudo make
    sudo make install