DT: build error with latest changes on master branch

I’m trying to build (Linux) the last changes in master branch (as usually, no change on my side) and I get the error:

CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Potrace (missing: POTRACE_LIBRARY POTRACE_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindPotrace.cmake:12 (find_package_handle_standard_args)
  src/CMakeLists.txt:312 (find_package)

-- Configuring incomplete, errors occurred!

What did I miss?

1 Like

Do you have this package installed?

1 Like

yep:

# which potrace
# /usr/bin/potrace

Then you need to see where cmake is looking for that package, and patch cmake or adjust config for it to find that library.

1 Like

I installed potrace using

sudo apt-get install potrace

Library is installed, but not the header file needed by compiler (potrace.h)…
How do you install it?

sudo apt install potrace libpotrace0 libpotrace-dev

4 Likes

great, it works :nerd_face:

Pretty much install everything related to potrace from repository:

$ apt search potrace
Sorting... Done
Full Text Search... Done
libpotrace-dev/noble,now 1.16-2build1 amd64 [installed]
  development files for potrace library

libpotrace0/noble,now 1.16-2build1 amd64 [installed]
  library for tracing bitmaps

potrace/noble,now 1.16-2build1 amd64 [installed]
  utility to transform bitmaps into vector graphics
2 Likes

thanks - was this dependency a recent change? Just curious, because I was always able to compile darktable master until I updated master today…

Edit: OK found it → [3274ef2f] introduced it :blush:

The same issue today on Fedora 43. Had to install a new package potrace-devel.

1 Like

Yes, it was added so that raster masks could be converted to paths.

3 Likes

I can install potrace in msys2 but I can’t find the other two listed above and so I can’t get DT to compile …any suggestions

Thx

I would look for a libpotrace and the header files, though I have no idea what that would look like on a mac. Maybe homebrew?

I’ll see what I can figure out…I’m on Windows… How do you do your builds…did you have this issue ??

Why not check GitHub? darktable/packaging/windows at master · darktable-org/darktable · GitHub

pacman -S --needed mingw-w64-ucrt-x86_64-{libxslt,python-jsonschema,curl,drmingw,exiv2,gettext,gmic,graphicsmagick,gtk3,icu,imath,iso-codes,lcms2,lensfun,libavif,libgphoto2,libheif,libjpeg-turbo,libjxl,libpng,libraw,librsvg,libsecret,libtiff,libwebp,libxml2,lua,openexr,openjpeg2,osm-gps-map,portmidi,potrace,pugixml,SDL2,sqlite3,webp-pixbuf-loader,zlib}

I was all good…I just had accidentally updated or added the wrong potrace, ie not urct… once I did it right it added and updated what I needed…

I think everything else is good. I was also wondering if I had broken anything by recently updating msys2 … it tends to break graphicmagick by installing an updated version but that’s easy to fix…

Anyways all good now …thanks …

1 Like