lyx 1.5.2 compilation problems
Javid Atai Mon, 15 Oct 2007 16:26:43 -0700 Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory There is a similar error reported just now for Mac OSX in the lyx- devel list and (I believe) also for Sun. I have not experienced this with LyX1.5.2. However I am experiencing very similar failures (with similar error types and related to .lo- files) with LyX1.6 trunk at the moment on the same configuration for which 1.5.2 compiles. /Anders
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: Could you try the following patch? JMarc svndiff src/frontends/qt4/ Index: src/frontends/qt4/GuiApplication.cpp === --- src/frontends/qt4/GuiApplication.cpp (révision 20971) +++ src/frontends/qt4/GuiApplication.cpp (copie de travail) @@ -92,6 +92,22 @@ namespace frontend { GuiApplication * guiApp; + +// Mac specific stuff goes here... + +class MenuTranslator : public QTranslator { +public: + virtual ~MenuTranslator() {}; + virtual QString translate(const char * context, + const char * sourceText, + const char * comment = 0) const; +}; + +/// +// You can find more platform specific stuff +// at the end of this file... +/// + GuiApplication::~GuiApplication() { @@ -373,15 +389,6 @@ bool GuiApplication::x11EventFilter(XEve // Mac specific stuff goes here... -class MenuTranslator : public QTranslator { -public: - virtual ~MenuTranslator() {}; - virtual QString translate(const char * context, - const char * sourceText, - const char * comment = 0) const; -}; - - QString MenuTranslator::translate(const char * /*context*/, const char * sourceText, const char *) const
Re: lyx 1.5.2 compilation problems
Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 It seems that this problem occurs only for RH9. In my laptop which runs Fedora core 4, lyx-1.5.2 can be compiled successfully without specifying the extra libs and includes. Javid Atai Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 This is very weird... JMarc
lyx 1.5.2 compilation problems
Javid Atai Mon, 15 Oct 2007 16:26:43 -0700 Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory There is a similar error reported just now for Mac OSX in the lyx- devel list and (I believe) also for Sun. I have not experienced this with LyX1.5.2. However I am experiencing very similar failures (with similar error types and related to .lo- files) with LyX1.6 trunk at the moment on the same configuration for which 1.5.2 compiles. /Anders
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: Could you try the following patch? JMarc svndiff src/frontends/qt4/ Index: src/frontends/qt4/GuiApplication.cpp === --- src/frontends/qt4/GuiApplication.cpp (révision 20971) +++ src/frontends/qt4/GuiApplication.cpp (copie de travail) @@ -92,6 +92,22 @@ namespace frontend { GuiApplication * guiApp; + +// Mac specific stuff goes here... + +class MenuTranslator : public QTranslator { +public: + virtual ~MenuTranslator() {}; + virtual QString translate(const char * context, + const char * sourceText, + const char * comment = 0) const; +}; + +/// +// You can find more platform specific stuff +// at the end of this file... +/// + GuiApplication::~GuiApplication() { @@ -373,15 +389,6 @@ bool GuiApplication::x11EventFilter(XEve // Mac specific stuff goes here... -class MenuTranslator : public QTranslator { -public: - virtual ~MenuTranslator() {}; - virtual QString translate(const char * context, - const char * sourceText, - const char * comment = 0) const; -}; - - QString MenuTranslator::translate(const char * /*context*/, const char * sourceText, const char *) const
Re: lyx 1.5.2 compilation problems
Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 It seems that this problem occurs only for RH9. In my laptop which runs Fedora core 4, lyx-1.5.2 can be compiled successfully without specifying the extra libs and includes. Javid Atai Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory
Re: lyx 1.5.2 compilation problems
Javid Atai [EMAIL PROTECTED] writes: Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 This is very weird... JMarc
lyx 1.5.2 compilation problems
Javid Atai Mon, 15 Oct 2007 16:26:43 -0700 Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: ... snip ... ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete typemake[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory There is a similar error reported just now for Mac OSX in the lyx- devel list and (I believe) also for Sun. I have not experienced this with LyX1.5.2. However I am experiencing very similar failures (with similar error types and related to .lo- files) with LyX1.6 trunk at the moment on the same configuration for which 1.5.2 compiles. /Anders
Re: lyx 1.5.2 compilation problems
Javid Atai <[EMAIL PROTECTED]> writes: > Hi, > > I am trying to compile lyx-1.5.2 on my linux > box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). > I have already installed Qt-4.2.2 successfully. > > I get the following error message during compilation: Could you try the following patch? JMarc svndiff src/frontends/qt4/ Index: src/frontends/qt4/GuiApplication.cpp === --- src/frontends/qt4/GuiApplication.cpp (révision 20971) +++ src/frontends/qt4/GuiApplication.cpp (copie de travail) @@ -92,6 +92,22 @@ namespace frontend { GuiApplication * guiApp; + +// Mac specific stuff goes here... + +class MenuTranslator : public QTranslator { +public: + virtual ~MenuTranslator() {}; + virtual QString translate(const char * context, + const char * sourceText, + const char * comment = 0) const; +}; + +/// +// You can find more platform specific stuff +// at the end of this file... +/// + GuiApplication::~GuiApplication() { @@ -373,15 +389,6 @@ bool GuiApplication::x11EventFilter(XEve // Mac specific stuff goes here... -class MenuTranslator : public QTranslator { -public: - virtual ~MenuTranslator() {}; - virtual QString translate(const char * context, - const char * sourceText, - const char * comment = 0) const; -}; - - QString MenuTranslator::translate(const char * /*context*/, const char * sourceText, const char *) const
Re: lyx 1.5.2 compilation problems
Hi, I solved the problem by configuring lyx with extra libraries and includes, i.e. ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 It seems that this problem occurs only for RH9. In my laptop which runs Fedora core 4, lyx-1.5.2 can be compiled successfully without specifying the extra libs and includes. Javid Atai > Hi, > I am trying to compile lyx-1.5.2 on my linux > box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). > I have already installed Qt-4.2.2 successfully. > I get the following error message during compilation: > ... snip ... > ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to > incomplete type >`lyx::frontend::MenuTranslator' > ../../../boost/boost/checked_delete.hpp:33: creating array with > size zero (`-1 >') > ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete > typemake[7]: *** [GuiApplication.lo] Error 1 > make[7]: Leaving directory > `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' > make[6]: *** [all-recursive] Error 1 > make[7]: Leaving directory
Re: lyx 1.5.2 compilation problems
Javid Atai <[EMAIL PROTECTED]> writes: > Hi, > > I solved the problem by configuring lyx with extra libraries and > includes, i.e. > > ./configure --prefix=/usr/local --with-extra-lib=/usr/local/lib > --with-extra-inc=/usr/local/include --with-qt4-dir=/usr/local/Qt4 > This is very weird... JMarc
lyx 1.5.2 compilation problems
Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: * /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/local/Qt4/include -I/usr/local/Qt4/include/QtCore -I/usr/local/Qt4/include/QtGui -I../../../boost -I../../../src/frontends/controllers -I/usr/X11R6/include -O2 -MT GuiApplication.lo -MD -MP -MF .deps/GuiApplication.Tpo -c -o GuiApplication.lo GuiApplication.cpp g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/local/Qt4/include -I/usr/local/Qt4/include/QtCore -I/usr/local/Qt4/include/QtGui -I../../../boost -I../../../src/frontends/controllers -I/usr/X11R6/include -O2 -MT GuiApplication.lo -MD -MP -MF .deps/GuiApplication.Tpo -c GuiApplication.cpp -o GuiApplication.o ../../../boost/boost/checked_delete.hpp: In function `void boost::checked_delete(T*) [with T = lyx::frontend::MenuTranslator]': GuiApplication.cpp:77: instantiated from `void boost::scoped_ptrT::scoped_ptr() [with T = lyx::frontend::MenuTranslator]' GuiApplication.cpp:99: instantiated from here ../../../boost/boost/checked_delete.hpp:32: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:32: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete type GuiApplication.h:39: forward declaration of `struct lyx::frontend::MenuTranslator' make[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[5]: *** [all] Error 2 make[5]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src' make: *** [all-recursive] Error 1 ** Has anyone enocuntered this problem before? Javid
lyx 1.5.2 compilation problems
Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: * /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/local/Qt4/include -I/usr/local/Qt4/include/QtCore -I/usr/local/Qt4/include/QtGui -I../../../boost -I../../../src/frontends/controllers -I/usr/X11R6/include -O2 -MT GuiApplication.lo -MD -MP -MF .deps/GuiApplication.Tpo -c -o GuiApplication.lo GuiApplication.cpp g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/local/Qt4/include -I/usr/local/Qt4/include/QtCore -I/usr/local/Qt4/include/QtGui -I../../../boost -I../../../src/frontends/controllers -I/usr/X11R6/include -O2 -MT GuiApplication.lo -MD -MP -MF .deps/GuiApplication.Tpo -c GuiApplication.cpp -o GuiApplication.o ../../../boost/boost/checked_delete.hpp: In function `void boost::checked_delete(T*) [with T = lyx::frontend::MenuTranslator]': GuiApplication.cpp:77: instantiated from `void boost::scoped_ptrT::scoped_ptr() [with T = lyx::frontend::MenuTranslator]' GuiApplication.cpp:99: instantiated from here ../../../boost/boost/checked_delete.hpp:32: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:32: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete type GuiApplication.h:39: forward declaration of `struct lyx::frontend::MenuTranslator' make[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[5]: *** [all] Error 2 make[5]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src' make: *** [all-recursive] Error 1 ** Has anyone enocuntered this problem before? Javid
lyx 1.5.2 compilation problems
Hi, I am trying to compile lyx-1.5.2 on my linux box which runs RH9 (gcc 3.2.2-5, kernel 2.4.20-31.9). I have already installed Qt-4.2.2 successfully. I get the following error message during compilation: * /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/local/Qt4/include -I/usr/local/Qt4/include/QtCore -I/usr/local/Qt4/include/QtGui -I../../../boost -I../../../src/frontends/controllers -I/usr/X11R6/include -O2 -MT GuiApplication.lo -MD -MP -MF .deps/GuiApplication.Tpo -c -o GuiApplication.lo GuiApplication.cpp g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -I../../../src -I../../../src/frontends -I../../../images -DQT_SHARED -I/usr/local/Qt4/include -I/usr/local/Qt4/include/QtCore -I/usr/local/Qt4/include/QtGui -I../../../boost -I../../../src/frontends/controllers -I/usr/X11R6/include -O2 -MT GuiApplication.lo -MD -MP -MF .deps/GuiApplication.Tpo -c GuiApplication.cpp -o GuiApplication.o ../../../boost/boost/checked_delete.hpp: In function `void boost::checked_delete(T*) [with T = lyx::frontend::MenuTranslator]': GuiApplication.cpp:77: instantiated from `void boost::scoped_ptr::scoped_ptr() [with T = lyx::frontend::MenuTranslator]' GuiApplication.cpp:99: instantiated from here ../../../boost/boost/checked_delete.hpp:32: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:32: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:33: `sizeof' applied to incomplete type `lyx::frontend::MenuTranslator' ../../../boost/boost/checked_delete.hpp:33: creating array with size zero (`-1 ') ../../../boost/boost/checked_delete.hpp:30: `x' has incomplete type GuiApplication.h:39: forward declaration of `struct lyx::frontend::MenuTranslator' make[7]: *** [GuiApplication.lo] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[7]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[5]: *** [all] Error 2 make[5]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends/qt4' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src/frontends' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/atai/test/lyx-1.5.2/lyx-1.5.2/src' make: *** [all-recursive] Error 1 ** Has anyone enocuntered this problem before? Javid