Setting up a development env on macOS big sur (M1)
Christoph Schmitz
chr.schmitz at web.de
Thu Oct 14 16:13:10 UTC 2021
Hi,
This is how I compile LyX whenever the repository is updated. I am running macOS 12.0 Beta (21A5552a).
1. Install the required dependencies with homebrew (https://brew.sh):
brew install automake gettext pkg-config qt
2. Clone the LyX rep:
git clone git://git.lyx.org/lyx LyX
3. Go to the LyX folder, which was created with the previous command and run autogen.sh:
./autogen.sh
4. Run configure:
./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-qt-dir=/opt/homebrew/opt/qt
Change --prefix= to the folder where you want the application to be built.
5. Build the application:
git pull && make -j8 && make install-strip
After the application is created successfully for the first time, you only need to run the last line again when the remote repository is updated.
That's all! Hope this helps!
Best,
Chris
> Am 14.10.2021 um 16:44 schrieb Stephan Witt <st.witt at gmx.net>:
>
> Am 14.10.2021 um 16:38 schrieb Nusret BALCI <nusretbalci at gmail.com>:
>>
>> Hi there,
>> How can I set up my development environment to be able to compile a git cloned lyx sourcecode directory?
>> I have XCode installed. My OS is Big Sur. I installed Homebrew and autotools. I downloaded QT 6.2 (official release from Qt). I run autogen, then configure script. But I am not sure what command line arguments I should pass and although I pass the bin directory of the Qt installation (6.2.0) it cannot find Qt. So I can't even start. Anyone willing to help or share their build command?
>> Best regards,
>> Nusret
>
> Hi Nusret,
>
> I’m building LyX regularly on Mac on Mojave and sometimes on Big Sur. I never did it with the binary distribution of Qt. I’m always using the Qt source package.
>
> I’m not at home and cannot tell you more details - but I’ll do it later.
>
> Best regards,
> 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