Guys,
find attached a patch to make the qt2 frontend compile on my box. I had to
rename FormBase et al as Qt2Base to resolve a conflict when compiling. The
original error message is at the bottom of the mail. See the problem?
I also removed xforms from the Makefile include path.
Finally, note also that I had to add the line
#include <config.h>
to moc_searchdlg.C to get it to compile. Don't know how you'd do this
properly.
Angus
-----------------------------------------------------------------
Error message: justification for renaming FormBase et al as Qt2Base.
cxx -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I. -I. -I../../../src
-I../../../src/ -I../../../src/frontends/ -I../../.. -I../../.. -I./qt2
-I/usr/users/aleem/OTHERS_CODE/qt-2.2.1/include -I../../../boost
-I../../../src/frontends/controllers -I../../../src/cheaders
-I/usr/local/include -DQT_CLEAN_NAMESPACE -MD -c Dialogs.C -o Dialogs.o
cxx: Warning: FormCharacter.h, line 39: "void FormCharacter::update(bool)"
does not match "DialogBase::update" -- virtual function override
intended? void update(bool switched = false);
--------^
cxx: Warning: FormParagraph.h, line 33: "void FormParagraph::update(bool)"
does not match "DialogBase::update" -- virtual function override
intended? void update(bool switched = false);
-------------^
cxx: Warning: FormPrint.h, line 39: "void FormPrint::update(bool)" does not
match "DialogBase::update" -- virtual function override intended?
void update(bool = false);
-------------^
cxx: Warning: FormSearch.h, line 43: "void FormSearch::update(bool)" does not
match "DialogBase::update" -- virtual function override intended?
void update(bool switched = false);
--------^
cxx: Error: ../xforms/FormBase.h, line 96: class "FormCopyrightDialogImpl"
has no member "form"
detected during:
instantiation of "FL_FORM *FormDB<Dialog>::form() const [with
Dialog=FormCopyrightDialogImpl]" at line 62 of
"../../../src/frontends/controllers/ControlCopyright.h"
implicit generation of "FormDB<Dialog>::~FormDB() [with
Dialog=FormCopyrightDialogImpl]" at line 62 of
"../../../src/frontends/controllers/ControlCopyright.h"
implicit generation of "FormCB<Controller, Base>::~FormCB() [with
Controller=ControlCopyright,
Base=FormDB<FormCopyrightDialogImpl>]" at line 62 of
"../../../src/frontends/controllers/ControlCopyright.h"
implicit generation of "FormCopyright::~FormCopyright()" at line
62 of
"../../../src/frontends/controllers/ControlCopyright.h"
instantiation of "GUICopyright<GUIview,
GUIbc>::GUICopyright(LyXView &, Dialogs &) [with
GUIview=FormCopyright, GUIbc=qt2BC]"
if (dialog_.get()) return dialog_->form;
-------------------------------------------^
patch.diff.gz