aferrero2707 / PhotoFlow

A fully non-destructive photo retouching program providing a complete layer-based workflow including RAW image development.
http://aferrero2707.github.io/PhotoFlow
GNU General Public License v3.0
308 stars 36 forks source link

error: called object type 'unsigned int' is not a function or function pointer #220

Open yurivict opened 3 years ago

yurivict commented 3 years ago
In file included from /wrkdirs/usr/ports/graphics/photoflow/work/PhotoFlow-8472024f/src/vips/gmic/gmic/src/gmic.cpp:1964:
In file included from /wrkdirs/usr/ports/graphics/photoflow/work/PhotoFlow-8472024f/src/vips/gmic/gmic/src/gmic.h:152:
In file included from /usr/include/c++/v1/locale:181:
In file included from /usr/include/c++/v1/__locale:14:
In file included from /usr/include/c++/v1/string:506:
In file included from /usr/include/c++/v1/string_view:175:
In file included from /usr/include/c++/v1/__string:57:
/usr/include/c++/v1/algorithm:2626:12: error: called object type 'unsigned int' is not a function or function pointer
    return __comp(__a, __b) ? __b : __a;
           ^~~~~~
/wrkdirs/usr/ports/graphics/photoflow/work/PhotoFlow-8472024f/src/vips/gmic/gmic/src/./CImg.h:32846:63: note: in instantiation of function template specialization 'std::__1::max<unsigned int, unsigned int>' requested here
      const float nboxsize = boxsize>=0?boxsize:-boxsize*std::max(_width,_height,_depth)/100;
                                                              ^
1 error generated.

Log: http://beefy18.nyi.freebsd.org/data/head-amd64-default/p549547_s365984/logs/photoflow-0.2.8.20200828.log (IPv6 URL)

Revision 8472024f FreeBSD 12.2 clang-10

yurivict commented 3 years ago

You've bundled the old GMIC, version 1.7.1, when the latest GMIC is 2.9.2. clang-10 breaks on GMIC-1.7.1.

Could you please allow to use the external GMIC because it is packaged for virtually all systems: https://repology.org/project/gmic/versions