Skip to content
Alberto Fanjul edited this page Apr 15, 2017 · 21 revisions

Building miraclecast

You have a series of options to build miraclecast. Each one is feature complete so as you will:

  • autotools:

      $ ./autogen.sh
      $ mkdir build
      $ ../configure
      $ make
      $ make install
    
  • cmake:

      $ mkdir build && cd build
      $ cmake .. 
      $ make
      $ make install
    
  • meson:

      $ meson build --sysconfdir=/etc
      $ cd build
      $ ninja
      $ ninja test
      $ ninja install
    

Tips:

  • In autotools autogen.sh accepts arguments to have specific configuration:

    • c: compilation
    • g: debugging
    • a: pure/const warning
    • l: clang build
    • s: scan-build reporting
  • In cmake remember to remove CMakeCache.txt or cmake . will not regenerate Makefiles

  • Meson build use mesontest --wrap to run test with specific executable. Use that to pass test with valgrind

  • By default all will be installed in /usr/local. if you want to install in standard /usr path add --prefix=/usr to autogen.sh or meson build. For cmake use -DCMAKE_INSTALL_PREFIX=/usr

  • Install step may require root privileges. This is commonly solved using sudo

  • dbus policy is needed to expose dbus interfaces. This is read on '/etc' normally but you can modify it with: --syconfdir on autotools and meson or -DSYSCONFDIR on cmake

Clone this wiki locally