diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/quickstart.rst | 63 |
1 files changed, 61 insertions, 2 deletions
diff --git a/docs/quickstart.rst b/docs/quickstart.rst index e564a8f..e2f3aa9 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -17,8 +17,8 @@ openSUSE and can be obtained from the openSUSE Build Service at https://build.opensuse.org/package/show/home:ufo-kit/libuca. -Building from source -~~~~~~~~~~~~~~~~~~~~ +Building on Linux +~~~~~~~~~~~~~~~~~ In order to build *libuca* from source, you need @@ -94,6 +94,65 @@ the latter that we want to install the libraries and plugins into the ``lib64`` subdir instead of the default ``lib`` subdir as it is common on SUSE systems. +Building on Windows +~~~~~~~~~~~~~~~~~~~ + +Using MSYS2, the build procedure is similar to Linux but differs in some points. +To build libuca and the plugins: + +Get msys2 from `msys2.github.io <https://msys2.github.io/`__ (preferably the x86_64 +variant) and install it to ``C:\msys64`` or any other location. + +Run ``mingw64_shell.bat`` from the ``C:\msys64`` folder` to open up a msys2 shell +and use the pre-installed ``pacman`` package manager to install required packages. +Before that, please update core msys packages and restart the shell after +running:: + + pacman -Syu + +Now install the dependencies via ``pacman -S <package_name>``. Following is a +list of required packages: + +- ``make`` +- ``perl`` +- ``mingw-w64-x86_64-gcc`` +- ``mingw-w64-x86_64-gdb`` +- ``mingw-w64-x86_64-pkg-config`` +- ``mingw-w64-x86_64-gtk2`` + +Create an empty ``build`` directory in libuca's root folder, change directory to +that folder and configure libuca using CMake:: + + cmake -G "MSYS Makefiles" -D CMAKE_INSTALL_PREFIX="C:\uca" -D CMAKE_BUILD_TYPE=Debug .. + +Now you can type:: + + make && make install + +to create and install all binaries and libraries in ``C:\uca``. + + +Building plugins +^^^^^^^^^^^^^^^^ + +Note: A package config file (libuca.pc) is generated when libuca is built and is +stored in folder pkgconfig in ``C:\uca\bin``. This file is used while building +uca plugins to locate shared libraries of libuca. To help find them add the +location to the package config search path using the environment variable +``PKG_CONFIG_PATH``, i.e. run:: + + PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/c/uca/bin/pkgconfig/ + +Now, create an empty ``build`` directory in the plugin root folder, change +directory to that folder and configure the plugin using:: + + cmake -G "MSYS Makefiles" -D CMAKE_INSTALL_PREFIX="C:\uca" -D CMAKE_BUILD_TYPE=Debug .. + +As before, build and install the plugin using:: + + make && make install + + Usage ----- |