Building - AtesComp/miraclecast GitHub Wiki
You have options to build MiracleCast. Each is feature complete, so use your preferred builder:
$ mkdir build
$ cd build
$ ../autogen.sh g --prefix=/usr
$ make
$ make install
The g option is for debug compilation. Use c for optimized compilation.
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
$ make
$ make install
$ meson build --prefix=/usr --sysconfdir=/etc
$ cd build
$ ninja
$ ninja test
$ 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
-
For CMake build, remember to remove
CMakeCache.txt
or 'cmake .' will not regenerate Makefiles -
For Meson build, use 'mesontest --wrap ' to run test with specific executable. Use that to pass the test with valgrind
-
Usually, you need to install as a privileged user. There's many ways to do that...normally sudo will work.
$ sudo make install $ sudo ninja install
-
By default, MiracleCast will be installed in
/usr/local
. If you want to install in the standard/usr
path:- For
Autotools
andMeson
, add '--prefix=/usr' - For
CMake
, add '-DCMAKE_INSTALL_PREFIX=/usr'
- For
-
A dbus policy is needed to expose dbus interfaces. This is created in '/etc' normally. You can modify it:
- For
Autotools
andMeson
, add '--syconfdir=' - For
CMake
, add '-DSYSCONFDIR='
- For