hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #03190
[Bug 913146] Re: enblend trunk on MacOSX fails to compile on strerror_r declaration
Wrt the compilation error: your "config.h" is broken.
Symbol STRERROR_R_CHAR_P is meant to prevent exactly this problem.
Wrt to the exception: It has nothing to do with your bogus patch; the
novel highlight recovering algorithm, a 1D Brent minimizer, did not find
the required precondition.
(1) The output up to the exception could be interesting.
(2) In file "fixmath.h", function bracket_minimum() you could increase
the constant "maximum_tries" to, say, 10000, recompile and see what
happens.
(3) OTOH, in the same file in method ConvertJCHPyramidToVectorFunctor::operator()
put all lines from "GoldenSectionMinimizer1D ..." to the end of the
enclosing block in a "try {...}" and catch the exception doing nothing.
The rest of the code then takes care of the out-of-cube values,
although in a sub-optimal way. This is pretty drastic and I'd like to
avoid it and rather implement a smarter (initial) bracketing function.
--
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/913146
Title:
enblend trunk on MacOSX fails to compile on strerror_r declaration
Status in Enblend:
New
Bug description:
hg sum
parent: 767:bba98602023b tip
Set for previous commit
branch: default
commit: 89 unknown (clean)
update: (current)
MacOSX 10.6.8 Intel : compilation of both 32bit Intel and 64bit intel
version crash on:
[ 42%] Building CXX object src/CMakeFiles/enblend.dir/error_message.o
In file included from /Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.cc:31:
/Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.h:29: error: new declaration ‘char* strerror_r(int, char*, size_t)’
/usr/include/string.h:97: error: ambiguates old declaration ‘int strerror_r(int, char*, size_t)’
/Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.cc: In function ‘std::string enblend::errorMessage(int)’:
/Users/Shared/development/hugin_related/ExternalPrograms/enblend-hg/src/error_message.cc:57: error: invalid conversion from ‘int’ to ‘char*’
make[2]: *** [src/CMakeFiles/enblend.dir/error_message.o] Error 1
make[1]: *** [src/CMakeFiles/enblend.dir/all] Error 2
make: *** [all] Error 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/enblend/+bug/913146/+subscriptions
References