hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #03192
[Bug 913146] Re: enblend trunk on MacOSX fails to compile on strerror_r declaration
W.r.t. (2) In file "fixmath.h", function bracket_minimum() you could increase
the constant "maximum_tries" to, say, 10000, recompile and see what
happens.
I did that and recompiled.
The same error occurs.
W.r.t (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.
I don't understand this one.
I tried as displayed in the attached patch (tryout.patch), but that doesn't work. Putting it before protected doesn't work either.
Then I tried before the end of the else statement (tryout2.patch).
Both in a tar.bz2.
** Attachment added: "both patches in a bzipped tar"
https://bugs.launchpad.net/enblend/+bug/913146/+attachment/2668387/+files/tryout.tar.bz2
--
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