On 29.03.2011 21:40, veno...@arcadiaclub.com wrote:
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.
Thanks, it misses the info how to run from the debugger.
Any idea about the reason?
you have to set LYX_DIR_20x=<lyx-source>\lib
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(); Thanks in advance!
venom00 P.S. Here's the stack trace: msvcr100d.dll!_NMSG_WRITE(int rterrnum=10) Line 217 C msvcr100d.dll!abort() Line 61 + 0x7 bytes C LyX.exe!lyx::lyx_exit(int exit_code=1) Line 236 + 0x8 bytes C++ LyX.exe!boost::assertion_failed(const char * expr=0x02166118, const char * function=0x021660dc, const char * file=0x021660b4, long line=23) Line 47 + 0x7 bytes C++ LyX.exe!lyx::doAssert(const char * expr=0x021679b8, const char * file=0x02167990, long line=70) Line 23 + 0x1c bytes C++ LyX.exe!lyx::support::package() Line 70 + 0x1e bytes C++ LyX.exe!lyx::Messages::init() Line 104 + 0x9 bytes C++ LyX.exe!lyx::locale_init() Line 42 C++ LyX.exe!lyx::LyX::exec(int& argc=3, char * * argv=0x0108b488) Line 303 C++ LyX.exe!main(int argc=3, char * * argv=0x0108b488) Line 42 + 0x10 bytes C++ LyX.exe!WinMain(HINSTANCE__ * instance=0x01350000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x00ca3293, int cmdShow=1) Line 131 + 0x12 bytes C++ LyX.exe!__tmainCRTStartup() Line 547 + 0x2c bytes C LyX.exe!WinMainCRTStartup() Line 371 C kernel32.dll!76fd3c45() [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] ntdll.dll!771e37f5() ntdll.dll!771e37c8()