[ 88%] Building CXX object libs/rawengine/libraw/CMakeFiles/libraw.dir/src/libraw_cxx.cpp.o In file included from /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/libraw_cxx.cpp:5203: /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/../internal/libraw_x3f.cpp:1249:19: error: non-constant-expression cannot be narrowed from type 'int' to 'int16_t' (aka 'short') in initializer list [-Wc++11-narrowing] int16_t c[3] = {offset,offset,offset}; ^~~~~~ /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/../internal/libraw_x3f.cpp:1249:19: note: insert an explicit cast to silence this issue int16_t c[3] = {offset,offset,offset}; ^~~~~~ static_cast<int16_t>( ) /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/../internal/libraw_x3f.cpp:1249:26: error: non-constant-expression cannot be narrowed from type 'int' to 'int16_t' (aka 'short') in initializer list [-Wc++11-narrowing] int16_t c[3] = {offset,offset,offset}; ^~~~~~ /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/../internal/libraw_x3f.cpp:1249:26: note: insert an explicit cast to silence this issue int16_t c[3] = {offset,offset,offset}; ^~~~~~ static_cast<int16_t>( ) /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/../internal/libraw_x3f.cpp:1249:33: error: non-constant-expression cannot be narrowed from type 'int' to 'int16_t' (aka 'short') in initializer list [-Wc++11-narrowing] int16_t c[3] = {offset,offset,offset}; ^~~~~~ /var/tmp/portage/media-gfx/digikam-5.1.0/work/digikam-5.1.0/core/libs/rawengine/libraw/src/../internal/libraw_x3f.cpp:1249:33: note: insert an explicit cast to silence this issue int16_t c[3] = {offset,offset,offset}; ^~~~~~ static_cast<int16_t>( ) P.S: Is there an option to either disable or use system libraw ? Reproducible: Always
>P.S: Is there an option to either disable or use system libraw ? No because we compile internal libraw with internal Adobe DNG SDK Gilles Caulier
Do you use "-std=c++11" GCC compiler option ? What's are the compilation details with you use "export VERBOSE=1" Gilles Caulier
In fact the rules to prevent broken compilation already with Clang under OSX. I will adjust rules for everywhere. Gilles Caulier
Git commit f8530c8e7c0de68bf6e0f02bf84c8d0b96d3c589 by Gilles Caulier. Committed on 16/08/2016 at 07:00. Pushed by cgilles into branch 'master'. adjust Libraw C++11 rules for linux and Windows too FIXED-IN: 5.2.0 M +2 -2 libs/rawengine/libraw/CMakeLists.txt http://commits.kde.org/digikam/f8530c8e7c0de68bf6e0f02bf84c8d0b96d3c589