Le 29/03/11 21:40, veno...@arcadiaclub.com a écrit :
Building LyX SVN with scons everything is OK, while using CMake, following the steps in 
INSTALL.Win32, I receive an assertion about "Package" not being initialized.
Any idea about the reason?
Maybe it's this FIXME (LyX.cpp:289):

int LyX::exec(int&  argc, char * argv[])
{
        // Minimal setting of locale before parsing command line
        try {
                init_package(os::utf8_argv(0), string(), string(),
                        top_build_dir_is_one_level_up);
        } catch (ExceptionMessage const&  message) {
                LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_);
        }
        // FIXME: This breaks out of source build under Windows.
        locale_init();

What is strange is that Package is initialized in the init_package call just above. If it does not work, I guess we have a an exception that we cannot see because we send it to Debug::LOCALE, which is disabled at this point.

What happens if thelocale_init() call is moved inside the try{} clause?

Also I would be interested to know what happens if
  LYXERR(Debug::LOCALE,...
is replaced by
  LYERR0(...

JMarc

Reply via email to