more for curiosity than need, I’m trying to compile RT on OSX 10.11.
I followed the guide at RawPedia, and encountered some errors.
Do you have any clue ?
In file included from /Users/matteo/repo-rt/rtengine/curves.cc:35:
/Users/matteo/repo-rt/rtengine/curves.h:252:17: error: value of type 'int
__attribute__((ext_vector_type(4)))' (vector of 4 'int' values) is not
contextually convertible to 'bool'
return (x <= start * slope ? x / slope : xexpf(xlogf((x + add) ...
^~~~~~~~~~~~~~~~~~
In file included from /Users/matteo/repo-rt/rtengine/flatcurves.cc:19:
/Users/matteo/repo-rt/rtengine/curves.h:252:17: error: value of type 'int
__attribute__((ext_vector_type(4)))' (vector of 4 'int' values) is not
contextually convertible to 'bool'
return (x <= start * slope ? x / slope : xexpf(xlogf((x + add) ...
^~~~~~~~~~~~~~~~~~
In file included from /Users/matteo/repo-rt/rtengine/diagonalcurves.cc:21:
/Users/matteo/repo-rt/rtengine/curves.h:252:17: error: value of type 'int
__attribute__((ext_vector_type(4)))' (vector of 4 'int' values) is not
contextually convertible to 'bool'
return (x <= start * slope ? x / slope : xexpf(xlogf((x + add) ...
^~~~~~~~~~~~~~~~~~
I passed this to cmake: -DCMAKE_CXX_COMPILER=“clang+±mp-3.7”
In the guide it is written: We recommend using the latest stable version of the Clang compiler with OpenMP support. Unstable versions are not recommended.
Actually i didn’t verify whether this version of Clang was actually the latest or not.
I just installed the version suggested.
Perhaps should I move to 3.8.1 ?