README.bsd 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. % README.bsd 2024-01-17
  2. % Tested on FreeBSD 14.0-RELEASE (with X11 + GNOME installed), OpenBSD 7.4 (with X11) and NetBSD 9.3 (with X11)
  3. 1. Prerequisites for building zint
  4. ==================================
  5. Prerequisites are git, cmake, make, gcc (or clang) and, for PNG support, libpng, e.g. FreeBSD
  6. su
  7. pkg install git cmake gmake gcc graphics/png
  8. exit
  9. or OpenBSD (make and clang should already be installed):
  10. su
  11. pkg_add git cmake png
  12. exit
  13. or NetBSD (make and gcc should already be installed):
  14. su
  15. pkgin install git cmake png
  16. exit
  17. Then clone the latest source
  18. git clone https://git.code.sf.net/p/zint/code zint
  19. cd zint
  20. 2. Prerequisites for building zint-qt
  21. =====================================
  22. On FreeBSD:
  23. su
  24. pkg install qt5-core qt5-uitools qt5-buildtools qt5-qmake qt5-svg
  25. exit
  26. On OpenBSD:
  27. su
  28. pkg_add qtbase qttools qtsvg
  29. exit
  30. On NetBSD:
  31. su
  32. pkgin install qt5-qtbase qt5-qttools qt5-qtsvg
  33. exit
  34. 3. Build
  35. ========
  36. The rest is standard CMake (allowing for absence of sudo)
  37. mkdir build
  38. cd build
  39. cmake ..
  40. make
  41. su
  42. make install
  43. exit
  44. except that on OpenBSD you need to use
  45. cmake -DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake ..
  46. and on NetBSD
  47. cmake -DCMAKE_PREFIX_PATH=/usr/pkg/qt5 ..
  48. instead.
  49. 3. CMake options
  50. ================
  51. See "README.linux". Note for running the test suite on FreeBSD, if using the default csh, to set LD_LIBRARY_PATH use:
  52. setenv LD_LIBRARY_PATH ${PWD}/backend
  53. Also, for Qt5 test on FreeBSD, need:
  54. su
  55. pkg install qt5-testlib
  56. exit