building.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Building
  2. ========
  3. Libmegapixels is build through Meson. the Cmake files present in the repository are
  4. only for IDE integration and does not install the binaries and required files.
  5. The libmegapixels library depends on libconfig and linux-headers only.
  6. The build steps for libmegapixels is just the normal Meson procedure for
  7. building and installing a library:
  8. .. code-block:: shell-session
  9. $ git clone https://gitlab.com/megapixels-org/libmegapixels.git
  10. Switch over to your favorite release branch after this
  11. $ meson setup build
  12. The Meson build system
  13. Version: 1.3.1
  14. ... etcetera
  15. $ cd build
  16. $ meson compile
  17. compiler output here...
  18. $ sudo meson install
  19. Installing libmegapixels.so.1.0.0 to /usr/local/lib
  20. Installing megapixels-findconfig to /usr/local/bin
  21. Installing megapixels-getframe to /usr/local/bin
  22. Installing /..snip.../include/libmegapixels.h to /usr/local/include
  23. Installing /..snip.../libmegapixels.pc to /usr/local/lib/pkgconfig
  24. Installing /..snip.../config/pine64,pinephone.conf to /usr/local/share/megapixels/config
  25. Installing symlink pointing to libmegapixels.so.1.0.0 to /usr/local/lib/libmegapixels.so.1
  26. Installing symlink pointing to libmegapixels.so.1 to /usr/local/lib/libmegapixels.so
  27. This will install the :code:`libmegapixels.so.1.0.0` library globally. This usually
  28. ends up in :code:`/usr/local/lib` which is not by default in the search path for
  29. libraries.
  30. This will also install the libmegapixels utilities and bundled config files.