#190 compile failed on Linux

Luminance HDR 2.4.0
closed
nobody
None
1
2014-08-18
2014-02-22
No

On a ubuntu 12.04 system with Compiler cc 4.8.2, compile failed at:

[ 22%] Building CXX object src/HdrCreation/CMakeFiles/hdrcreation.dir/robertson02.cpp.o
/home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp: In member function ‘void libhdr::fusion::RobertsonOperatorAuto::computeResponse(libhdr::fusion::ResponseCurve&, const libhdr::fusion::WeightFunction&, libhdr::fusion::ResponseChannel, const DataList&, float, size_t, size_t, float, float, const float) const’:
/home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:305:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < widthheight; ++j)
^
/home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:321:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int m = 0; m < I.size(); ++m)
^
/home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:343:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int m = 0; m < I.size(); ++m)
^
/home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:363:30: error: call of overloaded ‘isnan(double&)’ is ambiguous
else if ( isnan(delta) || (cur_it > MAXIT && pdelta < delta) )
^
/home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:363:30: note: candidates are:
In file included from /usr/include/features.h:360:0,
from /usr/include/x86_64-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h:426,
from /usr/include/c++/4.8/utility:68,
from /usr/include/c++/4.8/algorithm:60,
from /usr/include/qt5/QtCore/qglobal.h:80,
from /usr/include/qt5/QtCore/qalgorithms.h:45,
from /usr/include/qt5/QtCore/qlist.h:45,
from /usr/include/qt5/QtCore/QList:1,
from /home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.h:28,
from /home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:28:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:234:1: note: int isnan(double)
MATHDECL_1 (int,isnan,, (Mdouble value)) attribute ((const));
^
In file included from /usr/include/c++/4.8/random:38:0,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/include/qt5/QtCore/qglobal.h:80,
from /usr/include/qt5/QtCore/qalgorithms.h:45,
from /usr/include/qt5/QtCore/qlist.h:45,
from /usr/include/qt5/QtCore/QList:1,
from /home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.h:28,
from /home/mapelo/src/luminance-hdr/qtpfsgui-code-9f2977a3d2aa701c404d76ad1b8b2b4f9185bdd9/src/HdrCreation/robertson02.cpp:28:
/usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long double)
isnan(long double x)
^
/usr/include/c++/4.8/cmath:622:3: note: constexpr bool std::isnan(double)
isnan(double
x)
^
/usr/include/c++/4.8/cmath:618:3: note: constexpr bool std::isnan(float)
isnan(float __x)
^
make[2]: [src/HdrCreation/CMakeFiles/hdrcreation.dir/robertson02.cpp.o] Error 1
make[1]:
[src/HdrCreation/CMakeFiles/hdrcreation.dir/all] Error 2
make:
** [all] Error 2

Discussion

    • status: open --> closed
     
  • fixed in master, hopefully