[Slackbuilds-users] enblend-enfuse doesn't compile in current

Matteo Bernardini matteo.bernardini at gmail.com
Sat Jun 6 17:37:13 UTC 2020


Il giorno sab 6 giu 2020 alle ore 18:19 Luc Van Rompaey
<luc.vanrompaey at gmail.com> ha scritto:
> Op za 6 jun. 2020 17:27 schreef Giorgio Peron <giorgio.peron at gmail.com>:
>>
>> enblend-enfuse doesn't compile in current anymore
>>
>> g++ -DHAVE_CONFIG_H -I. -I..    -DENBLEND_SOURCE   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I../src/dynamic_loader -I../src/layer_selection -pthread -I/usr/include/OpenEXR -O2 -fPIC -O2 -DNDEBUG -MT enblend-minimizer.o -MD -MP -MF .deps/enblend-minimizer.Tpo -c -o enblend-minimizer.o `test -f 'minimizer.cc' || echo './'`minimizer.cc
>> minimizer.cc: In constructor ‘Minimizer::Minimizer(size_t)’:
>> minimizer.cc:29:53: error: ‘numeric_limits’ is not a member of ‘std’
>>    29 |     f_goal_(boost::none), absolute_error_(sqrt(std::numeric_limits<double>::epsilon()))
>>       |                                                     ^~~~~~~~~~~~~~
>
> I'm no C++ wizard, but I believe you need an
>
> #include <limits>
>
> here.

that's it, thanks Luc!

Giorgio, just add this line before the configure block in the SlackBuild

sed -i '/^#include <vector>$/a #include <limits>' src/minimizer.h

Matteo


More information about the SlackBuilds-users mailing list