I've succesfully compiled Lyx 1.1.2 with Cygnus B20.1 on my system. I don't
know how to make this public, so I tell you what problems I had and what
I've done to fix those!
1. I've got the source lyx.1.1.2.tar.gz from a mentioned ftp server.
2. I've configured lyx with following options:
#!/bin/sh
./configure --prefix=/apps/lyx112 \
--x-includes=/usr/X11r64/include \
--x-libraries=/usr/X11r64/lib \
--with-extra-lib=/usr/xforms/FORMS \
--with-extra-inc=/usr/xforms/FORMS
3. I've called make! And it crashes after some minutes....
All went well but when ld was called he told me, that there are multiple
reference to 'lexigrafical_compare...'. This is a STL macro, isn't? So I
found this macro defined in stl_algorithm.h.
ld told me, that this was used in
support/libsupport.a(lyxstring.o) and
mathed/mathed.o:.../src/mathed/formula.h:65: first defined here
So I changed src/mathed/math_symbols.C in the following way: I've commented
the #include of algorithm and (this leads in 'max' unresolved when linking)
I copied only the max-definition from stl_agorithm.h straight into the
lyx-source-file: That's it
* /* CH 991112 START */
25 /* #include <algorithm> */
* #ifndef __BORLANDC__
*
* #undef min
* #undef max
*
* template <class T>
* inline const T& min(const T& a, const T& b) {
* return b < a ? b : a;
* }
*
* template <class T>
* inline const T& max(const T& a, const T& b) {
* return a < b ? b : a;
* }
*
* #endif /* __BORLANDC__ */
* /* CH 991112 END */
Lines with a leading star are inserted from me!
That will do the thing !! Maybe you can fix this in the next release, so all
goes right out of the box?
So long and: I've started to move from Winword to Lyx 3 weeks ago - and my
opinion for now:
LYX IS GREAT!
Claus