On 12.05.2011 18:04, Rob Oakes wrote:
Dear LyX Developers,
Is anyone else getting compilation errors on Mac OS X after the cmake directory
cleanup? I just merged with the most recent SVN, and this is what I'm getting
(after reconfiguring with cmake):
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:67:30:
error: intl/libintl.h: No such file or directory
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:
In static member function 'static void lyx::Messages::init()':
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:105:
error: 'bindtextdomain' was not declared in this scope
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:113:
error: 'bind_textdomain_codeset' was not declared in this scope
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:118:
error: 'textdomain' was not declared in this scope
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:
In member function 'const lyx::docstring lyx::Messages::get(const std::string&)
const':
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:171:
error: 'bind_textdomain_codeset' was not declared in this scope
/Users/RobOakes/Developer/LyX-Outline/LyX-Outline-Devel/src/support/Messages.cpp:174:
error: 'gettext' was not declared in this scope
make[2]: *** [src/support/CMakeFiles/support.dir/Messages.cpp.o] Error 1
make[1]: *** [src/support/CMakeFiles/support.dir/all] Error 2
make: *** [all] Error 2
The process "/usr/bin/make" exited with code 2.
Error while building project lyx (target: Desktop)
When executing build step 'Make'
Any thoughts as to what I might be doing wrong? Do I need to change the
compilation flags? A quick Google search shows that Mac doesn't seem to ship
with libintl. Might the configuration on Mac OS X be reverting to the generic
Linux? (Sorry, cmake is mostly black magic to me.)
Cheers,
Rob
Do you have an old configCompiler.h in your build dir? When it defines
HAVE_GETTEXT you get this error.
Peter