Compiling and using master on macOS
Scott Kostyshak
skostysh at lyx.org
Mon Jul 6 13:49:58 UTC 2020
On Mon, Jul 06, 2020 at 09:59:32AM +0200, Daniel wrote:
> On 2020-03-15 21:37, Stephan Witt wrote:
> > Am 15.03.2020 um 17:16 schrieb Daniel <xracoonx at gmx.de>:
> > >
> > > Hi,
> > >
> > > I am about to try compiling and using master on macOS. I just has a look at INSTALL.MacOSX. It mentions Qt version 4. That seems a bit outdated. But I guess that I am looking at the latest guide to compile on macOS, right?
> >
> > Yes, it’s outdated. It should work with Qt4 - but Qt4 cannot be used on recent macOS.
> >
> > Basically I’m using the script LyX-Mac-binary-release.sh in development folder. That’s much easier than other options, IMO.
> >
> > First step is to install Xcode and the automake and/or cmake utilities. This can be done with macports or homebrew. I’m using macports.
> >
> > Second step is to get Qt5 - as source or binary distribution. I’m using the source tarball and build Qt5 myself.
> >
> > Optional components are the spell checker and libmagic frameworks.
> >
> > Finally I start development/LyX-Mac-binary-release.sh with
> > --enable-cxx11
> > --with-qt-dir=/path/to/qt5
> >
> > Stephan
>
> Thanks. Finally came around trying it on macOS. I take it one has to run the
> last command with sh, right? So, from the lyx directory (in the lyxgit
> directory) I execute
>
> sh development/LyX-Mac-binary-release.sh --enable-cxx11
> --with-qt-dir=/Users/<username>/Qt/5.9.9
>
> (where I replace <username> by my macOS user name. Unfortunately, I get the
> following:
>
> : command not found-binary-release.sh: line 2:
> : command not found-binary-release.sh: line 4:
> : command not found-binary-release.sh: line 9:
> : command not found-binary-release.sh: line 19:
> : command not found-binary-release.sh: line 23:
> : command not found-binary-release.sh: line 27:
> ': not a valid identifiery-release.sh: line 28: unset: `LD_LIBRARY_PATH
> : command not found-binary-release.sh: line 29:
> : command not found-binary-release.sh: line 44:
> : command not found-binary-release.sh: line 49:
> development/LyX-Mac-binary-release.sh: line 53: syntax error near unexpected
> tok'n `in
> 'evelopment/LyX-Mac-binary-release.sh: line 53: `case
> "${QtVersion}:${QtAPI}" in
I was going to suggest to try "bash" instead of "sh", but indeed the shebang of the script is /bin/sh so perhaps it only needs sh. One thing you could do is to uncomment the line with "set -x". That will give more information. But probably better to wait for Stephan.
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200706/949d768a/attachment.asc>
More information about the lyx-devel
mailing list