Skip to content
Derek 呆 edited this page Apr 14, 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
      $ make
      $ make install
    
  • cmake:

      $ mkdir build && cd build
      $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
      $ make
      $ make install
    
  • meson:

      $ meson build --prefix=/usr --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

Clone this wiki locally