Trying to install ptouch-print:

$ git clone https://git.familie-radermacher.ch/linux/ptouch-print.git
Cloning into 'ptouch-print'...
Fetching objects: 794, done.
$ cd ptouch-print/
$ ./compile.sh 
Found GD: NO
CMake Error at cmake/FindGD.cmake:109 (MESSAGE):
  Could not find GD library
Call Stack (most recent call first):
  CMakeLists.txt:13 (find_package)
-- Configuring incomplete, errors occurred!

So I thought maybe libgd was not installed, but it is, so where am I going wrong?

$ apt list --installed | grep libgd3
libgd3/noble,now 2.3.3-9ubuntu5 amd64 [installed]
  • modem_down@thebrainbin.orgOP
    link
    fedilink
    arrow-up
    3
    ·
    20 hours ago

    I overlooked this line from the docs:

    Benötigt werden cmake, git, libgd und libusb - bei manchen Distributionen (z.B. Ubuntu) sind die Header-Files in separaten Paketen “libusb-dev” die ggf. noch nachinstalliert werden müssen.

    I should have done sudo apt install libgd-dev libusb-1.0-0-dev before attempting compilation.

    • ranzispa@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      Great, you found the correct way to compile software: disregard documentation and install libraries until the compiler stops complaining

    • eldavi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      19 hours ago

      isn’t it a great feeling when you answer your own question? lol