Build failure on Debian Testing

Andrew Goodbody ajg02 at elfringham.co.uk
Fri Jul 14 22:41:12 BST 2023


I just tried to compile latest git HEAD and got the following failure.

In file included from /usr/include/jasper/jas_version.h:71,
                  from 
/home/ag/src/dk6/core/libs/dialogs/libsinfodlg.cpp:99:
/usr/include/opencv4/opencv2/core/hal/interface.h:51:26: error: 
duplicate ‘unsigned’
    51 |    typedef unsigned char uchar;
       |                          ^~~~~
In file included from /usr/include/opencv4/opencv2/core/cvdef.h:190,
                  from /usr/include/opencv4/opencv2/core.hpp:52,
                  from 
/home/ag/src/dk6/build/core/app/utils/digikam_opencv.h:46,
                  from 
/home/ag/src/dk6/core/libs/dialogs/libsinfodlg.cpp:135:
/usr/include/opencv4/opencv2/core/hal/interface.h:51:21: error: multiple 
types in one declaration
    51 |    typedef unsigned char uchar;
       |                     ^~~~
/usr/include/opencv4/opencv2/core/hal/interface.h:51:26: error: 
declaration does not declare anything [-fpermissive]
    51 |    typedef unsigned char uchar;
       |                          ^~~~~
make[2]: *** 
[core/libs/dialogs/CMakeFiles/core_digikamdialogs_obj.dir/build.make:216: 
core/libs/dialogs/CMakeFiles/core_digikamdialogs_obj.dir/libsinfodlg.cpp.o] 
Error 1
make[1]: *** [CMakeFiles/Makefile2:9667: 
core/libs/dialogs/CMakeFiles/core_digikamdialogs_obj.dir/all] Error 2
make: *** [Makefile:146: all] Error 2


More information about the Digikam-devel mailing list