Hi everybody,

making lyx 1.6.0 on Suse 9.2 with a local install of Qt 4.4.3 fails with "Menus.cpp:85: error: forward declaration of `struct lyx::frontend::<unnamed>::MenuDefinition'" (see more output of make below).

Same error comes up if I try compiling it against Qt 4.3.2 (I had used this Qt install for the previous lyx versions up to 1.5.6).

Qt and lyx where always compiled using the same compiler.

This is what I found in the list archive that comes closest to my problem:
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg65204.html

Thanks for any suggestions and developing lyx,

Andreas
-----------------------------------------------------

==================================
= My ./configure script summary: =
==================================
 Configuration
  Host type:                    i686-pc-linux-gnu
  Special build flags:          aiksaurus  use-aspell use-ispell
  C   Compiler:                 gcc
  C   Compiler LyX flags:
  C   Compiler flags:            -O2
  C++ Compiler:                 g++ (3.3.4)
  C++ Compiler LyX flags:
  C++ Compiler flags:            -O2
  Linker flags:
  Linker user flags:
  Qt 4 Frontend:
      Qt 4 version:             4.4.3
  Packaging:                    posix
  LyX binary dir:               /usr/local/bin
  LyX files dir:                /usr/local/share/lyx

================================================
= make output from where it starts to go wrong =
================================================
make[6]: Entering directory `/local/SoftwareDepot/lyx-1.6.0/src/frontends/qt4' /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -I../../../src -I../../../src/frontends -I../../../images -I/local2/Qt-4.4.3_mini/include -I/local2/Qt-4.4.3_mini/include/QtCore -I/local2/Qt-4.4.3_mini/include/QtGui -I../../../boost -O2 -MT Menus.lo -MD -MP -MF .deps/Menus.Tpo -c -o Menus.lo Menus.cpp g++ -DHAVE_CONFIG_H -I. -I../../.. -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -I../../../src -I../../../src/frontends -I../../../images -I/local2/Qt-4.4.3_mini/include -I/local2/Qt-4.4.3_mini/include/QtCore -I/local2/Qt-4.4.3_mini/include/QtGui -I../../../boost -O2 -MT Menus.lo -MD -MP -MF .deps/Menus.Tpo -c Menus.cpp -o Menus.o /local2/Qt-4.4.3_mini/include/QtCore/qglobal.h: In instantiation of `QTypeInfo<lyx::frontend::<unnamed>::MenuDefinition>': /local2/Qt-4.4.3_mini/include/QtCore/qlist.h:358: instantiated from `void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = lyx::frontend::<unnamed>::MenuDefinition]' /local2/Qt-4.4.3_mini/include/QtCore/qlist.h:551: instantiated from `void QList<T>::free(QListData::Data*) [with T = lyx::frontend::<unnamed>::MenuDefinition]' /local2/Qt-4.4.3_mini/include/QtCore/qlist.h:526: instantiated from `QList<T>::~QList() [with T = lyx::frontend::<unnamed>::MenuDefinition]' /local2/Qt-4.4.3_mini/include/QtCore/qlist.h:561: instantiated from `void QList<T>::clear() [with T = lyx::frontend::<unnamed>::MenuDefinition]'
Menus.cpp:223:   instantiated from here
/local2/Qt-4.4.3_mini/include/QtCore/qglobal.h:1707: error: invalid application
   of `sizeof' to an incomplete type
/local2/Qt-4.4.3_mini/include/QtCore/qlist.h: In member function `void
   QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T =
   lyx::frontend::<unnamed>::MenuDefinition]':
/local2/Qt-4.4.3_mini/include/QtCore/qlist.h:551: instantiated from `void QList<T>::free(QListData::Data*) [with T = lyx::frontend::<unnamed>::MenuDefinition]' /local2/Qt-4.4.3_mini/include/QtCore/qlist.h:526: instantiated from `QList<T>::~QList() [with T = lyx::frontend::<unnamed>::MenuDefinition]' /local2/Qt-4.4.3_mini/include/QtCore/qlist.h:561: instantiated from `void QList<T>::clear() [with T = lyx::frontend::<unnamed>::MenuDefinition]'
Menus.cpp:223:   instantiated from here
/local2/Qt-4.4.3_mini/include/QtCore/qlist.h:359: Warnung: possible problem
   detected in invocation of delete operator:
/local2/Qt-4.4.3_mini/include/QtCore/qlist.h:359: Warnung: invalid use of
   undefined type `struct lyx::frontend::<unnamed>::MenuDefinition'
Menus.cpp:85: Warnung: forward declaration of `struct
   lyx::frontend::<unnamed>::MenuDefinition'
/local2/Qt-4.4.3_mini/include/QtCore/qlist.h:359: note: neither the destructor
   nor the class-specific operator delete will be called, even if they are
   declared when the class is defined.
/local2/Qt-4.4.3_mini/include/QtCore/qlist.h:361: error: invalid use of
   undefined type `struct lyx::frontend::<unnamed>::MenuDefinition'
Menus.cpp:85: error: forward declaration of `struct
   lyx::frontend::<unnamed>::MenuDefinition'
make[6]: *** [Menus.lo] Fehler 1
make[6]: Leaving directory `/local/SoftwareDepot/lyx-1.6.0/src/frontends/qt4'
make[5]: *** [all] Fehler 2
make[5]: Leaving directory `/local/SoftwareDepot/lyx-1.6.0/src/frontends/qt4'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/local/SoftwareDepot/lyx-1.6.0/src/frontends'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/local/SoftwareDepot/lyx-1.6.0/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/local/SoftwareDepot/lyx-1.6.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/local/SoftwareDepot/lyx-1.6.0'
make: *** [all] Fehler 2
Exitcode 2

Reply via email to