AnswerBun.com

Building Emacs from source doesn't generate a native application on macOS Catalina

Emacs Asked by Ashton Wiersdorf on January 1, 2022

I’ve been trying to build Emacs 28 from source on my MacBook Pro running macOS 10.15.5. I managed to get the feature/native-comp branch working, but I found it to be too unstable, so I deleted Emacs and tried rebuilding off of the master branch.

Now when I build off of the master branch, I can’t get the GUI’d Emacs to build. I’ve tried blowing away the source directory and rebuilding from scratch, but that didn’t fix anything.

Here’s how I build:

$ ./autogen.sh
$ ./configure --without-ns && make
$ make install

I worry I might have bungled deleting the old app. Any suggestions on what I might try next?

One Answer

When using the flag --without-ns, that means do not build Emacs specifically for the MacOS platform. How about using --with-ns instead, or no flag at all? The build script should automatically build Emacs for MacOS when building on that platform -- i.e., when not using --with-ns or --without-ns. The package Emacs.app will be in the nextstep folder of the Emacs source code.

Here is an excerpt from the ./configure --help output:

Optional Packages:

  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)

  --with-ns               use Nextstep (macOS Cocoa or GNUstep) windowing
                          system. On by default on macOS.

Answered by lawlist on January 1, 2022

Add your own answers!

Related Questions

Can I take vector (SVG) screenshots of Emacs?

2  Asked on September 2, 2021 by clment

     

tramp and sudo: how to edit files under another account

3  Asked on September 2, 2021 by daniel-wu

 

Tramp session fails to recover from inactivity

2  Asked on September 2, 2021 by bignose

 

How company-mode suggestions are delivered?

1  Asked on September 2, 2021 by seonghyun-park

 

How to set utf-8 encoding for *markdown-output* buffer?

1  Asked on September 2, 2021 by volodymyr

 

Bind keybord shortcuts to a MIDI keyboard?

1  Asked on September 2, 2021 by gabriele-nicolardi

 

How to wrap lines at window edge

2  Asked on September 2, 2021 by lambda-pumpkin

 

C-h v gives ” Symbol’s value as variable is void: default

0  Asked on September 2, 2021 by brian-postow

     

Fixed length buffer for shell

1  Asked on September 2, 2021

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP