#1060730 /usr/share/doc/libneatvnc-dev/examples/png-server.c: depends on "../src/pngfb.c", which isn't distributed

Package:
libneatvnc-dev
Source:
libneatvnc-dev
Description:
Fast and neat VNC server library (development files)
Submitter:
наб
Date:
2024-01-13 13:39:04 UTC
Severity:
normal
Tags:
#1060730#5
Date:
2024-01-13 13:36:30 UTC
From:
To:
Dear Maintainer,

  $ cc $(pkg-config --libs --cflags neatvnc aml pixman-1 libpng) /usr/share/doc/libneatvnc-dev/examples/png-server.c -O3 -o png-server
  /bin/ld: /tmp/png-server-952d18.o: in function `main':
  png-server.c:(.text+0x1f): undefined reference to `read_png_file'
  cc: error: linker command failed with exit code 1 (use -v to see invocation)
cf. /usr/share/doc/libneatvnc-dev/examples/meson.build:
  if libpng.found()
          executable(
                  'png-server',
                  [
                          'png-server.c',
                          '../src/pngfb.c',
                  ],
this isn't distributed, so to actually use this example you need to apt
source neatvnc and run
  $ cc $(pkg-config --libs --cflags neatvnc aml pixman-1 libpng) /usr/share/doc/libneatvnc-dev/examples/png-server.c neatvnc-0.7.1+dfsg/src/pngfb.c -O3 -o png-server
which diminishes the utility of the example greatly.

Please also put pngfb.c into examples.

Best,
наб