Following some helpful suggestions from Juergen Spitzmueller and
Alfredo Braunstein, and some hacking in the LyX source, I was able to
compile Lyx-1.3.2 with the newly-released Trolltech GPL MacOSX QT
libraries.  Both were compiled with gcc-2.95.2 (gcc-3.1 in the Apple
implementation cannot compile LyX-1.3.x).  These libraries feature a
direct Aqua interface and do not require X11.

The bottom line is that it compiles, and a LyX/QT window quickly pops
up on the screen, but the LyX window does not seize focus, and is
hence useless.  I suspect this will take a good deal of debugging in
the QT code, and that it may not even work with gcc-2.95.2.  If
someone wants to mess more with this combination, I've enclosed the
patch (apply in .../lyx-1.3.2/src) needed to get it to compile with
the Trolltech libraries.  (I, alas, have work to do, and the X11/QT
version on MacOSX will get it done just fine!)

Regards, and thanks for the quick help from Juergen and Alfredo,
-- 

Ronald Florence                         www.18james.com




----------[lyx-patch-for-Trolltech-QT]----------
*** frontends/controllers/ControlRef.C.orig     Thu Sep  5 11:14:21 2002
--- frontends/controllers/ControlRef.C  Tue Jun 24 16:44:16 2003
***************
*** 27,38 ****
  extern BufferList bufferlist;
  
  
! ControlRef::ControlRef(LyXView & lv, Dialogs & d)
        : ControlCommand(lv, d, LFUN_REF_INSERT)
  {}
  
  
! vector<string> const ControlRef::getLabelList(string const & name) const
  {
        Buffer const * buf = bufferlist.getBuffer(MakeAbsPath(name));
        if (!buf)
--- 27,38 ----
  extern BufferList bufferlist;
  
  
! ControlLyXRef::ControlLyXRef(LyXView & lv, Dialogs & d)
        : ControlCommand(lv, d, LFUN_REF_INSERT)
  {}
  
  
! vector<string> const ControlLyXRef::getLabelList(string const & name) const
  {
        Buffer const * buf = bufferlist.getBuffer(MakeAbsPath(name));
        if (!buf)
***************
*** 41,60 ****
  }
  
  
! void ControlRef::gotoRef(string const & ref)
  {
        lyxfunc().dispatch(FuncRequest(LFUN_BOOKMARK_SAVE, "0"), false);
        lyxfunc().dispatch(FuncRequest(LFUN_REF_GOTO, ref));
  }
  
  
! void ControlRef::gotoBookmark()
  {
        lyxfunc().dispatch(FuncRequest(LFUN_BOOKMARK_GOTO, "0"), false);
  }
  
  
! vector<string> const ControlRef::getBufferList() const
  {
        vector<string> buffers = bufferlist.getFileNames();
        for (vector<string>::iterator it = buffers.begin();
--- 41,60 ----
  }
  
  
! void ControlLyXRef::gotoRef(string const & ref)
  {
        lyxfunc().dispatch(FuncRequest(LFUN_BOOKMARK_SAVE, "0"), false);
        lyxfunc().dispatch(FuncRequest(LFUN_REF_GOTO, ref));
  }
  
  
! void ControlLyXRef::gotoBookmark()
  {
        lyxfunc().dispatch(FuncRequest(LFUN_BOOKMARK_GOTO, "0"), false);
  }
  
  
! vector<string> const ControlLyXRef::getBufferList() const
  {
        vector<string> buffers = bufferlist.getFileNames();
        for (vector<string>::iterator it = buffers.begin();
***************
*** 66,72 ****
  }
  
  
! int ControlRef::getBufferNum() const
  {
        vector<string> buffers = bufferlist.getFileNames();
        string const name = buffer()->fileName();
--- 66,72 ----
  }
  
  
! int ControlLyXRef::getBufferNum() const
  {
        vector<string> buffers = bufferlist.getFileNames();
        string const name = buffer()->fileName();
***************
*** 77,83 ****
        return int(cit - buffers.begin());
  }
  
! string const ControlRef::getBufferName(int num) const
  {
        return bufferlist.getFileNames()[num];
  }
--- 77,83 ----
        return int(cit - buffers.begin());
  }
  
! string const ControlLyXRef::getBufferName(int num) const
  {
        return bufferlist.getFileNames()[num];
  }
*** frontends/controllers/ControlRef.h.orig     Mon Oct 21 13:38:08 2002
--- frontends/controllers/ControlRef.h  Tue Jun 24 16:44:45 2003
***************
*** 20,29 ****
  
  /** A controller for the Ref Dialog.
   */
! class ControlRef : public ControlCommand {
  public:
        ///
!       ControlRef(LyXView &, Dialogs &);
        ///
        std::vector<string> const getLabelList(string const &) const;
        ///
--- 20,29 ----
  
  /** A controller for the Ref Dialog.
   */
! class ControlLyXRef : public ControlCommand {
  public:
        ///
!       ControlLyXRef(LyXView &, Dialogs &);
        ///
        std::vector<string> const getLabelList(string const &) const;
        ///
*** frontends/qt2/Dialogs_impl.h.orig   Mon Jan 13 04:57:15 2003
--- frontends/qt2/Dialogs_impl.h        Tue Jun 24 16:47:05 2003
***************
*** 185,191 ****
  typedef GUI<ControlPrint, QPrint, OkApplyCancelPolicy, Qt2BC>
  PrintDialog;
  
! typedef GUI<ControlRef, QRef, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
  RefDialog;
  
  typedef GUI<ControlSearch, QSearch, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
--- 185,191 ----
  typedef GUI<ControlPrint, QPrint, OkApplyCancelPolicy, Qt2BC>
  PrintDialog;
  
! typedef GUI<ControlLyXRef, QRef, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
  RefDialog;
  
  typedef GUI<ControlSearch, QSearch, NoRepeatedApplyReadOnlyPolicy, Qt2BC>
*** frontends/qt2/QRef.C.orig   Wed Dec 18 20:10:41 2002
--- frontends/qt2/QRef.C        Tue Jun 24 16:47:37 2003
***************
*** 38,44 ****
  using std::endl;
  
  
! typedef Qt2CB<ControlRef, Qt2DB<QRefDialog> > base_class;
  
  
  QRef::QRef()
--- 38,44 ----
  using std::endl;
  
  
! typedef Qt2CB<ControlLyXRef, Qt2DB<QRefDialog> > base_class;
  
  
  QRef::QRef()
***************
*** 104,118 ****
  
  bool QRef::nameAllowed()
  {
!       return controller().docType() != ControlRef::LATEX &&
!               controller().docType() != ControlRef::LITERATE;
  }
  
  
  bool QRef::typeAllowed()
  {
!       return controller().docType() != ControlRef::LINUXDOC &&
!           controller().docType() != ControlRef::DOCBOOK;
  }
  
  
--- 104,118 ----
  
  bool QRef::nameAllowed()
  {
!       return controller().docType() != ControlLyXRef::LATEX &&
!               controller().docType() != ControlLyXRef::LITERATE;
  }
  
  
  bool QRef::typeAllowed()
  {
!       return controller().docType() != ControlLyXRef::LINUXDOC &&
!           controller().docType() != ControlLyXRef::DOCBOOK;
  }
  
  
*** frontends/qt2/QRef.h.orig   Sat Oct 19 21:48:28 2002
--- frontends/qt2/QRef.h        Tue Jun 24 16:48:02 2003
***************
*** 20,31 ****
  #include <vector>
  #include "LString.h"
  
! class ControlRef;
  class QRefDialog;
  
  
  class QRef
!       : public Qt2CB<ControlRef, Qt2DB<QRefDialog> >
  {
  public:
        friend class QRefDialog;
--- 20,31 ----
  #include <vector>
  #include "LString.h"
  
! class ControlLyXRef;
  class QRefDialog;
  
  
  class QRef
!       : public Qt2CB<ControlLyXRef, Qt2DB<QRefDialog> >
  {
  public:
        friend class QRefDialog;
*** ../boost/libs/regex/src/cregex.cpp.orig     Fri May 24 08:53:12 2002
--- ../boost/libs/regex/src/cregex.cpp  Tue Jun 24 17:13:31 2003
***************
*** 22,27 ****
--- 22,28 ----
  
  
  #define BOOST_REGEX_SOURCE
+ #define BOOST_REGEX_NARROW_INSTANTIATE 
  #include <boost/cregex.hpp>
  #include <boost/regex.hpp>
  #if !defined(BOOST_NO_STD_STRING)
-----------[eof]-----------

Reply via email to