On Jun 5, 2006, at 12:45 PM, Georg Baum wrote:

Am Montag, 5. Juni 2006 17:04 schrieb Bennett Helm:

Tested lyx-1.5svn with Qt3 on Mac. I could not get it to crash (where
previously it would crash regularly).

Very nice.

(However, there seems to be
something wrong with lyx2lyx: I can't open any existing documents
because it says it cannot convert from the old file format. So my
testing was not very complete.)

Strange. It works here e.g. for the tutorial. Can you give the lyx2lyx
error message from the console?

Traceback (most recent call last):
File "/Applications/LyX-test.app/Contents/Resources/lyx2lyx/ lyx2lyx", line 91, in ?
    sys.exit(main(sys.argv))
File "/Applications/LyX-test.app/Contents/Resources/lyx2lyx/ lyx2lyx", line 84, in main
    file.convert()
File "/Applications/LyX-test.app/Contents/Resources/lyx2lyx/ LyX.py", line 315, in convert
    steps = getattr(__import__("lyx_" + step), mode)
ImportError: No module named lyx_1_5

I could not get the Qt4 frontend to compile:

In file included from Dialogs.C:54:
QCitation.h:87:2: warning: "/*" within comment
Dialogs.C: In member function
'boost::shared_ptr<lyx::frontend::Dialog> Dialogs::build(const
std::string&)':
Dialogs.C:281: error: reference to 'ControlRef' is ambiguous
/Users/bennett/lyx/gcc-4.0/qt-mac-opensource-src-4.1.3-universal///
include/QtGui/../../src/gui/kernel/qwindowdefs.h:85: error:
candidates are: typedef struct OpaqueControlRef* ControlRef

This is in qt 1.4.2 too, but it seems that qwindowdefs.h is not included
here.

Does the attached patch resolve the compile problem?

Yes; I'm finishing compiling now. (It's actually a problem we had encountered this before, and Abdel, I believe, came up with the following (temporary?) solution on Mac:

Index: Dialogs.C
===================================================================
--- Dialogs.C   (revision 13865)
+++ Dialogs.C   (working copy)
@@ -278,7 +278,7 @@
                dialog->setView(new QPrint(*dialog));
                dialog->bc().bp(new OkApplyCancelPolicy);
        } else if (name == "ref") {
-               dialog->setController(new ControlRef(*dialog));
+//             dialog->setController(new ControlRef(*dialog));
                dialog->setView(new QRef(*dialog));
                dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
        } else if (name == "sendto") {


In updating for this patch, I reverted everything to most recent svn, and obliterated the fix.)

Bennett

Reply via email to