02.09.2019 17:14, Rolf Bensch пишет:
Hi Povilas,
I just mentioned a new problem building genesys backend from Ubuntu
16.04 LTS.
This is the error message from Launchpad
(https://launchpadlibrarian.net/439820893/buildlog_ubuntu-xenial-amd64.sane-backends_1.0.28+git20190901-xenial0_BUILDING.txt.gz):
/bin/bash ../libtool --silent --tag=CXX --mode=compile
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include/sane -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lock/sane -DV_MAJOR=1 -DV_MINOR=0 -I. -I.
-I../include -I../include -I/usr/include/libusb-1.0
-DLIBDIR="\"/usr/lib/x86_64-linux-gnu/sane\""
-DDEB_DLL_LIBDIR="\"/usr/lib/x86_64-linux-gnu/sane:/usr/lib/sane\""
-DBACKEND_NAME=genesys -Wall -Wextra -pedantic -std=gnu++11 -MT
libgenesys_la-genesys_gl846.lo -MD -MP -MF
.deps/libgenesys_la-genesys_gl846.Tpo -c -o
libgenesys_la-genesys_gl846.lo `test -f 'genesys_gl846.cc' || echo
'./'`genesys_gl846.cc
genesys_gl846.cc: In function ‘SensorExposure
gl846_led_calibration(Genesys_Device*, const Genesys_Sensor&,
Genesys_Register_Set&)’:
genesys_gl846.cc:2005:37: error: could not convert ‘{exp[0], exp[1],
exp[2]}’ from ‘<brace-enclosed initializer list>’ to ‘SensorExposure’
return { exp[0], exp[1], exp[2] };
^
Many thanks in advance for fixing this.
Cheers,
Rolf
Maybe it will be easier to switch to clang? Ubuntu 16.04 has recent
versions of clang available (for Chromium and Mesa), Build-Depend from
clang6, export CC=clang-6, export CXX=clang++-6
Latest clang will be newer than the default gcc.