LyX Developers,

I'm currently having trouble building LyX 2.2.0b2 against Qt5 on OSX
10.11.3 (El Capitan, the latest released OSX).  Hopefully one of the
experts here can help so I can more effectively provide feedback on the
bleeding edge.

A bit of background: I have extensive LaTeX experience, reasonably
extensive experience developing C++ and Fortran-based scientific codes, and
some experience with developing Perl/Python Tk-based GUI applications.
However, I have no experience developing Qt-based GUI applications.

Regardless, I use Fink for managing packages on my OSX machines to afford a
Linux-like environment/toolset.  I would prefer to get LyX built using (a)
Fink-provided tools or (b) independently built/installed tools.  I do not
want to install another manager such as Homebrew or MacPorts.  Sorry, but I
feel as though one is enough.

Nevertheless, I have tried:

   - Building LyX against Fink's Qt4, version 4.8.7 (from qt4-base-mac) with

   ./configure --with-qt-dir=/sw/lib/qt4-mac/

   This leads to successful configuration, where I can then `make` and have
   a working build.  However, there is no Retina support (the feature I've
   most been waiting for).

   Note that I have not tried building against Fink's Qt4, version 4.7.3,
   from qt4-base-x11.
   - Building LyX against Fink's Qt5, version 5.5.1 (from qt5-mac) with

   ./configure --with-qt-dir=/sw/lib/qt5-mac/

   which fails to configure with

   configure: error: cannot compile a simple Qt executable. Check you have
   the right $QTDIR.

   Setting `export QTDIR='/sw/lib/qt5-mac'` does not fix this.
   Note that there is no equivalent qt5-x11 package to test with.

   - Building LyX against qt.io <http://www.qt.io/>'s Open Source compiled
   version of Qt 5.6.0 with first configure/making Qt5 with the source code
   installer here
   
<http://download.qt.io/official_releases/qt/5.6/5.6.0/single/qt-everywhere-opensource-src-5.6.0.tar.gz>
which
   appears to configure/make/make install (to /sw/lib/qt5-qtio) successfully.
   I then try

   ./configure --with-qt-dir=/sw/lib/qt5-qtio/

   where I again see

   configure: error: cannot compile a simple Qt executable. Check you have
   the right $QTDIR.

   Note that the size of /sw/lib/qt5-qtio is 9.3M to be compared with
   Fink's Qt4 size of 610M and Fink's Qt5 size of 719M.  I didn't want to
   "install" all the features; however, this seems awfully light...

This is very likely a case of me not understanding a subtle directory
structure change between Qt4 and Qt5 because I would expect Fink's Qt5 to
be adequate.  Morever, I do see a bin/qmake for both Qt4 and Qt5 (for both
Fink and qt.io).  I'm unsure what else might be needed for "a simple Qt
executable."

Any thoughts you can provide are most appreciated.

Please don't hesitate to contact me with any comments, questions, or
concerns.

Thank you,
Joel

Reply via email to