Skip to content
Gerasimos Chourdakis edited this page Nov 26, 2018 · 21 revisions

Building miraclecast

Build systems

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

autotools:

$ mkdir build
$ cd build
$ ../autogen.sh g --prefix=/usr
$ make
$ make install

See g option is for debug compilation Use c for optimized compilation

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:

  • Usually you need to install as privilege user. There's many ways to do that, normally sudo will work

    $ sudo make install
    $ sudo ninja install
    
  • 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