title: The source directory does not appear to contain CMakeLists.txt
body: <p>I would like to virtualize Android on my jetson nano using qemu + kvm + virglrenderer and I found these tutorials to accomplish the task :</p>
  <p>this :</p>
  <p><a href="https://www.collabora.com/.../building-android-for-qemu.../" rel="nofollow noreferrer">https://www.collabora.com/.../building-android-for-qemu.../</a></p>
  <p>and this :</p>
  <p><a href="https://www.collabora.com/.../02/12/virtualizing-gpu-access/" rel="nofollow noreferrer">https://www.collabora.com/.../02/12/virtualizing-gpu-access/</a></p>
  <p>so. on Ubuntu 20.10 I have added this script to the .bashrc file and I did : source ~/.bashrc</p>
  <pre><code>function add_export_env {
    local VAR=&quot;$1&quot;
    shift
    local VAL=$(eval echo &quot;\$$VAR&quot;)
    if [ &quot;$VAL&quot; ]; then
      VAL=$(concatenate_colon &quot;$@&quot; &quot;$VAL&quot;);
    else
      VAL=$(concatenate_colon &quot;$@&quot;);
    fi
    eval &quot;export $VAR=\&quot;$VAL\&quot;&quot;
  }
  function prefix_setup {
    local PREFIX=&quot;$1&quot;
    add_export_env PATH &quot;$PREFIX/bin&quot;
    add_export_env LD_LIBRARY_PATH &quot;$PREFIX/lib&quot;
    add_export_env PKG_CONFIG_PATH &quot;$PREFIX/lib/pkgconfig/&quot; &quot;$PREFIX/share/pkgconfig/&quot;
    add_export_env MANPATH &quot;$PREFIX/share/man&quot;
    export ACLOCAL_PATH=&quot;$PREFIX/share/aclocal&quot;
    mkdir -p &quot;$ACLOCAL_PATH&quot;
    export ACLOCAL=&quot;aclocal -I $ACLOCAL_PATH&quot;
  }
  function projectshell {
    case &quot;$1&quot; in
      virgl | virglrenderer)
          export ALT_LOCAL=&quot;/opt/local/virgl&quot;
          mkdir -p &quot;$ALT_LOCAL&quot;
          prefix_setup &quot;$ALT_LOCAL&quot;
          ;;
    esac
  }
  </code></pre>
  <p>and I have also installed these packages :</p>
  <pre><code>sudo apt install autoconf gcc-aarch64-linux-gnu libaio-dev libbluetooth-dev libbrlapi-dev libbz2-dev libcap-dev libcap-ng-dev libcurl4-gnutls-dev libepoxy-dev libfdt-dev libgbm-dev libgles2-mesa-dev libglib2.0-dev libibverbs-dev libjpeg8-dev liblzo2-dev libncurses5-dev libnuma-dev librbd-dev librdmacm-dev libsasl2-dev libsdl1.2-dev libsdl2-dev libseccomp-dev libsnappy-dev libssh2-1-dev libtool libusb-1.0-0 libusb-1.0-0-dev libvde-dev libvdeplug-dev libvte-2.90-dev libxen-dev valgrind xfslibs-dev xutils-dev zlib1g-dev
  </code></pre>
  <p>and configured these paths :</p>
  <pre><code>export PROJECT_PATH=&quot;/opt/qemu_android&quot;
  export VIRGLRENDERER_PATH=&quot;${PROJECT_PATH}/virglrenderer&quot;
  export QEMU_PATH=&quot;${PROJECT_PATH}/qemu&quot; export LINUX_PATH=&quot;${PROJECT_PATH}/linux&quot;
  export ANDROID_PATH=&quot;${PROJECT_PATH}/android&quot;
  export ANDROID_TOOLS_PATH=&quot;${PROJECT_PATH}/android-tools&quot;
  </code></pre>
  <p>then :</p>
  <pre><code>git clone git://anongit.freedesktop.org/virglrenderer
  
  root@aorus:/opt/qemu_android/virglrenderer# ls
  
  ci docs   perf-testing  virglrenderer.pc.inconfig.h.meson meson.build   src vtestCOPYING meson_options.txt  tests
  
  root@aorus:/opt/qemu_android/virglrenderer# ./autogen.sh
  
  bash: ./autogen.sh: File or directory not found
  </code></pre>
  <p>I don't know how to compile it,since the classic way does not work (mkdir build ; cd build ; cmake ..) it says :</p>
  <pre><code>CMake Error: The source directory does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.
  </code></pre>