Problem building darktable dev from git on Debian testing

(Sergei Rybalko) #1

Hello friends,

I cannot build latest darktable from git on Debian testing.
I got error

/home/seg/apps/darktable/src/common/imageio_j2k.c:32:10: fatal error: openjpeg.h: No such file or directory
 #include <openjpeg.h>
compilation terminated.
src/CMakeFiles/lib_darktable.dir/build.make:2524: recipe for target 'src/CMakeFiles/lib_darktable.dir/common/imageio_j2k.c.o' failed
make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/imageio_j2k.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1432: recipe for target 'src/CMakeFiles/lib_darktable.dir/all' failed
make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

It seems I have problem with libopenjpeg-dev library. I remember before I have installed all dependencies and successfully built darktable from git. But after update of my system I cannot do it again.

(Roman Lebedev) #2

You need to purge the openjpeg v1 and optionally install the openjpeg v2 (libopenjp2-7-dev)

(Sergei Rybalko) #3

Thank you for help. In fact I have libopenjp2-7-dev installed on my system and don’t have any others openjpeg library

(darix) #4

JFYI: we have ready to use packages for debian testing.


(Sergei Rybalko) #5

Thank you I will try this way!

(Roman Lebedev) #6

So did it work or not? The old one was named libopenjpeg-dev
Also, you did purge the build directory already, right?
That solves 99% of the problems usually.

(Sergei Rybalko) #7

OK, I see. You propose to build it from scratch to no to update like git pull.
I will try and let you know.

btw, On my system i don’t have any openjpeg library installed instead of libopenjp2-7-dev

(Sergei Rybalko) #8

I have done! Thank you!

(darix) #9

the Build-Depends line in this file can help you.