Re: Compiling Lyx on Irix
> ./src/support/sstream.h line 40 : #include > > included from ./src/Lsstream.hline 22 : #include "support/sstream.h" > included from formula.C line 22 : #include "Lsstream.h" Ok. We were talking avout different levels of 'using' then... > Without it, I get with formula.C an error in /usr/include/CC/iostream > (system file) > #error This header file requires the -LANG:std option > > Well, STL hell again and again. ? This rather looks like a broken compiler or library implementation. Andre' -- André Pönitz . [EMAIL PROTECTED]
Re: Compiling Lyx on Irix
Mike Meredith wrote: > > Probably a broken compiler. You need to send to the list the contents > > of your config.log file. > > Or possibly not. An awful lot of autoconfigured stuff breaks under Irix > because it tries to add /usr/lib to the search path for libraries. For > better or worse, IRIX has 3 incompatible binary API formats (or > something) --- o32 ones live in /usr/lib, n32 ones live in /usr/lib32, > and n64 ones live in /usr/lib64. The default for IRIX 6.5 and later is > n32. My last try gives: setenv LDFLAGS -L/usr/lib32 -n32 setenv CXXFLAGS -n32 setenv CFLAGS -n32 setenv x_libraries /usr/lib32 ./configure and configure tells me : checking if C++ compiler uses std namespace ... yes configure: warning: === WARNING: This compiler platform does not have the iostream library in the std namespace. This presents a problem for writing portable STL code. To run the demos, you will need to place a file with the following in a file called iostream in your include directory. ---iostream #ifndef IOSTREAM_KLUDGE #define IOSTREAM_KLUDGE #include namespace std { void iostream_kludge(); }; #endif === then Configuration: Source code location: . C++ Compiler: CC C++ Compiler flags: -n32 C Compiler: cc C Compiler flags: -n32 LyX binary dir: /usr/freeware/bin LyX files dir: /usr/freeware/share/lyx Special flags: frontend-xforms included-libsigc The following problems have been detected by configure. Please check the messages below before running 'make'. (see the section 'Problems' in the INSTALL file) ** Cannot find libXpm. Please check that the Xpm library is correctly installed on your system. ** Cannot find libforms or libxforms. Please check that the xforms library is correctly installed on your system. --- I guess Mike is right, I should try GCC on irix to compile lyx. I don't think Irix's MipsPro C++ is broken. It works fine and efficiently for a large number of projects. I'd say that lyx's configure can be improved on IRIX. and maybe I should use another STL on IRIX... Stl hell... Best regards from Paris, France. If someone can contribute a "howto compile lyx on IRIX", or better, provide up-to-date executable... Thanks in advance Olivier
Re: Compiling Lyx on Irix
Andre Poenitz wrote: > > and the file streambuf.h is needed by ./src/mathed/formula.C, > > It is certainly not. Which line should that be? > > Andre' > > -- > André Pönitz . [EMAIL PROTECTED] ./src/support/sstream.h line 40 : #include included from ./src/Lsstream.hline 22 : #include "support/sstream.h" included from formula.C line 22 : #include "Lsstream.h" Please note that I created in ./src a file named iostream containing #ifndef IOSTREAM_KLUDGE #define IOSTREAM_KLUDGE #include namespace std { void iostream_kludge(); }; #endif Without it, I get with formula.C an error in /usr/include/CC/iostream (system file) #error This header file requires the -LANG:std option Well, STL hell again and again. And as often, configure that doesn't work... (I'm a bit desapointed today :) Thanks for any help, Olivier
Re: Compiling Lyx on Irix
-BEGIN PGP SIGNED MESSAGE- - -BEGIN PGP SIGNED MESSAGE- On Wednesday 25 July 2001 14:47, you wrote: > > "Olivier" == Olivier Tubach <[EMAIL PROTECTED]> writes: > > Olivier> Hello, has someone successfully compiled lyx recently on > Irix Olivier> ? seems that the configure script nevers sees the > Xforms and Olivier> the Xpm lib (that are installed). Lyx does compile on Irix using gcc --- I'm running it at home. I never managed to get it to compile using MIPS C++ which is a shame as this generates much better code. I'll have a longer look into this when I'm in front of my SGI, but in the meantime ... > Probably a broken compiler. You need to send to the list the contents > of your config.log file. Or possibly not. An awful lot of autoconfigured stuff breaks under Irix because it tries to add /usr/lib to the search path for libraries. For better or worse, IRIX has 3 incompatible binary API formats (or something) --- o32 ones live in /usr/lib, n32 ones live in /usr/lib32, and n64 ones live in /usr/lib64. The default for IRIX 6.5 and later is n32. - - -- [EMAIL PROTECTED]http://www.iso.port.ac.uk/~mike Senior Informatics Officer (Postmaster, Hostmaster, and security) - -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQCVAwUBO17kCs19DFC51SfFAQEcTQP9FD+BwiCawhVBrLi2ElGICEo4EZbx7XyF yhvKjNEGYjMoDkSnwKcGtraRLldWLIqcydpEF9OPYxnqCU2tSGsc+39gm6WmaKZB H4JwsA/F7uDFQTe2exgaieVtqhuyNXZfIVyadlIx9Q+jRwfsDZGWOdsrrD7CzPJq r0DBUDBtsUY= =Oyzc - -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQCVAwUBO17kTM19DFC51SfFAQGJSAP/Zdb3PWgBxHZIbV+dsSVjBbnHxONICUPG hZvZQ+azKbahZ5BixRJsXtZraWuBLOcC7N5Zic5dPuwuloSnH4j/sDD8Pngpz27C c3in3q1/V9K0BpughJIZhlvLzB5CGBBKdb+8/dU5iERijw6fYg6n/4bdxtxs9Ut3 cGidWozkzEo= =HSXr -END PGP SIGNATURE-
Re: Compiling Lyx on Irix
> and the file streambuf.h is needed by ./src/mathed/formula.C, It is certainly not. Which line should that be? Andre' -- André Pönitz . [EMAIL PROTECTED]