Asger Ottar Alstrup wrote:
OK, I managed to compile and run LyX using cmake.
I unpackaged Joost's .zip to c:\program files\gnuwin32. I added Qt and
Gnuwin32 to PATH, and cmake worked.
When compiling, I got a bunch of errors about Mac line endings, which I
converted manually to DOS line-endings.
Then LyX compiled and linked. On start-up, it failed without any
message. I set the LYX_DIR_14x to lyx-devel\lib and it started.
So I have LyX running now.
I do not have LaTeX (yet), so it complains about missing textclasses
when opening documents, but other than that, it seems to work.
I'm downloading and installing MikTeX now.
I found a crash bug: When opening TOC in a document without any
headings, it crashes in QToc.C line 59, because the toc_models_ vector
is empty.
Yes, it's a bug and it BOOST_ASSERTION should have been triggered at
line 58. BOOST_ASSERTION are not enabled in the CMake tools. Please add
this line at the top of your generated config.h:
#define ENABLE_ASSERTIONS
Investigating further, it seems that QToc::update which is
called earlier does not make any toc_models entries: The getTypes() call
returns an empty vector. From there, I can see that TocBackend::types is
empty, and this is because the TocBackend::update does not find anything
when scanning the document.
So, the question is: Where at is the best way to fix this? There is
absolutely no documentation about what types and toc_models is used for,
so I'm not sure where to fix this.
The lack of documentation is probably my fault. I will have a look at this.
Thanks,
Abdel.