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
leonidas111:
Could NOT find Potrace
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?
wpferguson
(Bill Ferguson)
February 7, 2026, 9:44pm
6
sudo apt install potrace libpotrace0 libpotrace-dev
4 Likes
great, it works
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
The same issue today on Fedora 43. Had to install a new package potrace-devel.
1 Like
wpferguson
(Bill Ferguson)
February 8, 2026, 8:19pm
10
Yes, it was added so that raster masks could be converted to paths.
3 Likes
priort
(Todd Prior)
February 10, 2026, 11:45pm
11
wpferguson:
libpotrace0
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
wpferguson
(Bill Ferguson)
February 10, 2026, 11:55pm
12
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?
priort
(Todd Prior)
February 11, 2026, 12:20am
13
I’ll see what I can figure out…I’m on Windows… How do you do your builds…did you have this issue ??
g-man
February 11, 2026, 1:10am
14
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}
priort
(Todd Prior)
February 11, 2026, 1:46am
15
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