Runtime error (macOS)
Stephan Witt
st.witt at gmx.net
Sat Aug 13 16:55:07 UTC 2022
Am 13.08.2022 um 10:56 schrieb Christoph Schmitz <chr.schmitz at web.de>:
>
> I deleted my local LyX repository and cloned it again from Git. Now LyX works again. I should have tried that before.
>
> Stephan, I have seen that you are one of the co-authors of the INSTALL.MacOSX file. This file contains a lot of information for older systems. Have you ever considered to update the document to cover current machines and newer Qt and macOS versions?
Yes, and I’ve promised it already :( and never finished it.
> That's the way it currently works for me (on macOS 13.0 Beta 5 Ventura on both platforms, AMD64 and ARM64):
>
> - Qt6, automake, gettext, and pkgconfig are installed with Homebrew.
> - LyX is cloned from Git.
> - Cd into LyX folder.
This I wouldn’t recommend. Making a separate build directory makes it easier to start over from scratch (or do a bisect :).
> ./autogen.sh
>
> ./configure \
> --with-version-suffix=-2.4 \
> --prefix=/Users/chris/Desktop/LyX.app \
> --with-x=no \
> --disable-stdlib-debug \
> --with-included-hunspell \
> --with-libiconv-prefix=/usr \
> --enable-qt6 \
> --with-macos-deployment-target=12.0
>
> make -j8 && make install-strip
The resulting app is usable for you only. It neither can be started on another CPU-arch nor can it run on a system without Homebrew+Qt6. But of course you can work with it.
I’m building Qt with frameworks myself (as universal bundles on M1) and build an LyX app with these frameworks included (on a M1 system with M1 and Intel CPU).
I’ll document this procedure the next weeks.
BR, Stephan
>> Am 13.08.2022 um 09:37 schrieb Stephan Witt <st.witt at gmx.net>:
>>
>> Am 13.08.2022 um 09:26 schrieb Christoph Schmitz <chr.schmitz at web.de>:
>>>
>>> Since a few days I get the following error message when starting a newly compiled version of LyX:
>>>
>>> Unable to determine the system directory having searched
>>> /Users/chris/Desktop/LyX.app/Contents/Resources/
>>> Use the '-sysdir' command line parameter or set the environment variable
>>> LYX_DIR_24x to the Lyx system directory containing the file "chkconfig.Itx'.
>>>
>>> The contents of the folder ./LyX.app/Contents/Resources/ is completely different when compared with the contents of the last working version. If you manually copy the contents to the newly compiled version, the program starts up again.
>>>
>>> I have the same problem on two different computers running macOS: an Intel machine and an M1 machine.
>>
>> I’m using autotools to create the app and a disk image and don’t have this problem.
>>
>> Are you able to bisect with git?
>>
>> Stephan
>>
>
> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
More information about the lyx-devel
mailing list