Skip to main content

Questions tagged [build]

Building Emacs from source

Filter by
Sorted by
Tagged with
0 votes
1 answer
319 views

Correct gtk3 version build emacs 29.2 from source with gtk3 and xwidgets support

I use linux 5.4.0-150-generic #167~18.04.1-Ubuntu with libgtk-3-0:amd64 3.22.30-1ubuntu4 What is the correct Gtk3 version to get xwidgets running without warnings? when I run the build configuration (...
huckfinn's user avatar
  • 135
1 vote
1 answer
375 views

How to build Emacs29 with tree-sitter without sudo

Here are the commands I'm running First I install tree-sitter make PREFIX=${HOME}/.tree-sitter make PREFIX=${HOME}/.tree-sitter install This populates ~/.tree-sitter directory ├── include │   └── ...
phoxd's user avatar
  • 241
1 vote
0 answers
119 views

Can I run two different builds of the same Emacs version?

My Linux distribution ships out Emacs version 28.2, with a particular build configuration, and I currently use that. However, it was not compiled with xwidget support, and so I want to build 28.2 from ...
nonreligious's user avatar
0 votes
0 answers
170 views

How can I build the native aarch64 Emacs application for Android on a x86_64 system?

I'm struggling to build Emacs from the feature/android branch. I tried running the ./configure script this way: ANDROIDJAR=~/Android/platforms/android-33-ext4/android.jar BUILDTOOLS=~/Android/build-...
cidra's user avatar
  • 151
0 votes
2 answers
1k views

Using Emacs.app when building from source (Mac OS)

I've built Emacs from source on MacOS (12.4, M1) and it works when I execute the binary from /usr/local/bin/emacs, but I can't open Emacs from Emacs.app. For example: mv ~/emacs/nextstep/Emacs.app /...
treeblah's user avatar
  • 123
0 votes
1 answer
82 views

Building emacs for Alpine Linux info/dir target failure

I am trying to build emacs for Alpine Linux by following the instructions. After installing the relevant packages I run configure --with-x-toolkit=lucid --with-mailutils --enable-gcc-warnings --with-...
Satrapes's user avatar
1 vote
1 answer
117 views

Cannot access symbols in treesit.c when building and running feature/tree-sitter

I'm trying out the feature branch feature/tree-sitter available on remote https://github.com/emacs-mirror/emacs.git. Build and startup all works fine. However, the functions defined in the Emacs ...
Nordlöw's user avatar
  • 527
0 votes
1 answer
160 views

What is the difference between pdump and pbootstrap?

I recently built emacs from the source code and I have some questions about portable dump. Building process generates bootstrap-emacs.pdmp and emacs.pdmp successively in the last part of building. ...
user38323's user avatar
1 vote
0 answers
313 views

Getting an error when running the Emacs 28.1 binary that I built from source (--with-native-compilation)

When building Emacs 27.2 from source, I use the following config: ./autogen.sh ./configure --prefix=/home/user/emacs --bindir=/home/user/bin \ --with-json --with-gif --with-jpeg --with-png --with-...
cinnaroll45's user avatar
2 votes
1 answer
157 views

How do I build only the Emacs C source files and not the Elisp source files in the Emacs repository?

Running the default procedure: ~/emacs $ mkdir build ~/emacs $ cd build ~/emacs/build $ ../configure ~/emacs/build $ make Results in building both the C source files and the Elisp source files. What ...
John DeBord's user avatar
1 vote
0 answers
93 views

Can't launch emacs from outside bin directory

I'm building emacs from source (the feature/native-comp branch) on Ubuntu inside WSL 2. This was working a couple weeks ago, but today it stopped (I hadn't used it in some time though). I've cloned ...
gregghz's user avatar
  • 133
3 votes
0 answers
1k views

Compiling gccemacs (Emacs 28) from source. To bootstrap or not to bootstrap?

With the following build script on Big Sur + homebrew, I get horribly long compile times when using make bootstrap as opposed to simply make on gccemacs. I've read the Makefile in the src directory - ...
o__b's user avatar
  • 33
0 votes
1 answer
124 views

Debuggable emacs and vanilla emacs binaries

I'm running Ubuntu 20.04. I would like to build an emacs binary for general usage (no debug symbols) and another emacs binary (when something goes wrong). The build is pretty straight-forward, but I ...
o__b's user avatar
  • 33
0 votes
1 answer
226 views

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

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 ...
Ashton Wiersdorf's user avatar
0 votes
0 answers
209 views

Error building emacs master on Ubuntu: xmenu.c Fx_menu_bar_open_internal undeclared

If this is just a transient problem with the master branch, or more likely a misconfiguration on my part, feel free to let me know. I'm building emacs from scratch on Ubuntu 18.04. I'm at git commit ...
GaryO's user avatar
  • 496
0 votes
2 answers
233 views

Issue building Emacs's docs with texi2dvi - '-recorder' and '\openout' not supported

I'm trying to build the latest version of Emacs from source, but I seem to be running into an issue. The binary itself works fine, but when it comes to building the docs, the make process runs into ...
Alexander Bisono's user avatar
0 votes
0 answers
168 views

Unable to install emacs 26.3

I am trying to install emacs 26.3. In installed sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev It cant find ...
velcro12's user avatar
2 votes
2 answers
1k views

installing emacs 26.3

I'm trying to install emacs 26.3 on debian 10. After the download : ./configure sudo make sudo checkinstall during the checkinstall, I have the following error : rm -f "/usr/local/share/emacs/26.3/...
Kafka's user avatar
  • 125
2 votes
1 answer
552 views

No `emacsclient` binary when building from source

I have built Emacs from source and, after make ends successfully, no emacsclient binary is present in the output (./src) directory. What is the recommended way to get the emacsclient binary in this ...
Arthur Colombini Gusmão's user avatar
12 votes
2 answers
9k views

Is there an X11-free build of Emacs that can run on Wayland (not going through XWayland)

I am running Wayland on Ubuntu 18.04. According to the Wayland FAX, one of it's advantages, compared to X11, is that Wayland allows better isolation between processes: one window cannot access ...
Craig  Hicks's user avatar
1 vote
1 answer
394 views

Building on macOS with a prefix

When I pull 25.1 down from FTP and configure using the following (extrapolated from this run): curl -o "/tmp/emacs-25.1.tar.xz" "https://ftp.gnu.org/gnu/emacs/emacs-25.1.tar.xz" tar xf "/tmp/emacs-25....
Sean Allred's user avatar
  • 7,051
4 votes
2 answers
5k views

Another way to install emacs on OS X using homebrew

It seems homebrew has removed all the options (incl. --with-cocoa) for brew install emacs. Now it recommends to use brew cask install emacs to get a built binary from https://emacsformacosx.com/. ...
skyork's user avatar
  • 231
1 vote
1 answer
2k views

How can I tell if emacs was built with X support?

Is there a variable like system-configuration-options that will provide the computed features of the running emacs? Specifically, I'm looking for X support (--with-x=yes|no). Ultimately I'm trying ...
Sean Allred's user avatar
  • 7,051
1 vote
1 answer
527 views

How to know the current configuration options of the running Emacs?

How can I know the current configuration options, like with-cocoa, with-librsvg, with-modules(i.e. the options using when Emacs was built), of the running Emacs, programmatically?
cmal's user avatar
  • 775
1 vote
1 answer
689 views

Emacs 26 build on RHEL6 has blank window frame

I just built Emacs 26.1 (stable) on Centos 6 (RHEL 6.9). When I fire up the executable with src/emacs -Q over X11 it shows an empty window with no minibuffer: I built Emacs without gnutls, but that ...
halloleo's user avatar
  • 1,405
3 votes
2 answers
3k views

Emacs 26.1 configure script doesn't like the gnutls version on a RedHat sytem

Even though gnutls-devel.x86_64 is installed on my RedHat 6.6 system. How do I guide the configure script to the required libraries? [update 2018-06-03 after hint from Ian] In fact configure found ...
Dieter.Wilhelm's user avatar
1 vote
0 answers
165 views

-static flag leads to “error: C compiler cannot create executables”

The compiler here is gcc (v. 6.2.0). If I add -static to either LDFLAGS or CPPFLAGS, the ./configure step of an Emacs build fails, with the error configure: error: C compiler cannot create ...
kjo's user avatar
  • 3,347
2 votes
1 answer
472 views

Cannot enable sound when building from source

I can't seem to enable sound support when building Emacs from source: Does Emacs support sound? no It does not seem to be doing anything even if I do: ./configure ...
AccidentalRebel's user avatar
5 votes
3 answers
1k views

configure chooses the "wrong" libraries

I'm trying to build Emacs 26 from source but make fails ./temacs --batch --load loadup bootstrap ./temacs: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such ...
gboffi's user avatar
  • 624
1 vote
1 answer
123 views

How to programmatically extract path to etags executable

Q:  Assuming that we open Emacs with a path to ../Emacs.app/Contents/MacOS/Emacs, how can we programmatically extract the path to etags located at ../Emacs.app/Contents/MacOS/bin/etags. [The location ...
lawlist's user avatar
  • 19.5k
2 votes
2 answers
2k views

How to build Emacs for an embedded ARM Linux system

I am trying to build Emacs for an embedded ARM Linux system. Unfortunately, it is proving to be more difficult than I anticipated. I have the device mounted at /mnt/my_device. Now I am not sure ...
GDP2's user avatar
  • 1,350
35 votes
3 answers
14k views

Does emacs have an option to display build settings?

Does emacs have an option or some internal command that displays build time settings and whatever features it supports? A good example is the nginx -V command which lists the ./configure options it ...
vfclists's user avatar
  • 1,471
0 votes
1 answer
622 views

Cannot open JPEG files in new emacs build

When I try to open jpeg images on a new emacs build I get the error message Cannot display image: (This Emacs mishandles this image file type) I compiled on Debian Jessie and the configure commands ...
vfclists's user avatar
  • 1,471
1 vote
1 answer
133 views

How do I resolve Ubuntu 16.04 emacs v46.1 default versus compiled v25.2-1 "downgrade"? [closed]

I'm working for the first time on an Ubuntu 16.04 LTS machine, and honestly I'm not sure if this is an emacs build/debian package question or if it's an Ubuntu 16.04 question. Please nudge me in the ...
Doug Meyer's user avatar
1 vote
0 answers
1k views

What Debian packages are needed to build Emacs from source?

I know that I can run sudo apt-get install emacs25, but (for reasons I don't want to get into) I want to build Emacs from source. In the past, in order to do this, I've had to apt-get install Debian ...
kjo's user avatar
  • 3,347
6 votes
0 answers
156 views

How to build Emacs without byte-compiling Lisp files

Q:  Is there an option to build Emacs without byte-compiling the Lisp files? BACKGROUND:  The length of time needed to build Emacs makes debugging / developing an extremely slow process. For example,...
lawlist's user avatar
  • 19.5k
0 votes
0 answers
124 views

How to build and run Emacs from source with Eclipse?

I have just downloaded the latest version (Oxygen, Release 4.7.0) of the Eclipse IDE for C/C++ Developers, and would like to use it to build and run Emacs from source, which I have downloaded from the ...
Evan Aad's user avatar
  • 1,571
0 votes
1 answer
277 views

Installing Emacs from source: the command `C-h v` for accessing variables doesn't work

I have installed the latest development version of Emacs on my Mac from the source by cloning the Git repository here ('Emacs source repository' under 'Anonymous clone'), and then executing make in ...
Evan Aad's user avatar
  • 1,571
6 votes
1 answer
1k views

Installing Emacs from source: no 'configure' file

I wish to build the latest development version of Emacs from source. I've browsed to https://savannah.gnu.org/projects/emacs and executed the command suggested on the front page, namely git clone -b ...
Evan Aad's user avatar
  • 1,571
1 vote
2 answers
2k views

How can I install Emacs25.2 on openSuse?

On Ubuntu I would install emacs dependencies with apt-get build-dep emacs24, extract the emacs25.2.tar.gz and install but the dependencies don't seem to be on openSuse's zypper (package manager). Atm ...
irregular's user avatar
  • 1,032
0 votes
1 answer
73 views

Downloaded 1996 Emacs (19.34), consulted INSTALL, no `configure` file

I'm trying to build Emacs 19.34 (which dates from 1996) because I'm interested in its historical behaviour. I've unpacked the archive and read the INSTALL file. That file seems to say that I should ...
D A Vincent's user avatar
3 votes
0 answers
405 views

How to run emacs under valgrind correctly?

I have tried running the official Fedora build of emacs under valgrind. It very quickly errors out due to thinking it has run out of memory. This is a known issue mentioned in the Valgrind ...
Robin Green's user avatar
12 votes
1 answer
5k views

OS X emacs: difference between X11 vs NS vs Cocoa?

I believe, there are three ways to build emacs on osx --- x11, ns (nextstep?), and cocoa. Can anyone explain what the build options mean / the difference between these three are?
user avatar
5 votes
1 answer
1k views

Building Emacs 25 on CentOS *without admin rights*

I'm having a hard time getting Emacs to build under CentOS 7.1 where I don't have admin rights to install dependencies. After downloading Emacs sources I tried ./configure, and I found out that I was ...
Daniel's user avatar
  • 3,683
0 votes
2 answers
176 views

What's the lighest version of emacs for Ostro x86_64-unknown-linux-gnu?

Using Ostro on #IntelMaker #Joule, I've downloaded the earliest version of emacs available from https://ftp.gnu.org/pub/gnu/emacs/, and tried running configure, but it failed with a message that emacs ...
cnst's user avatar
  • 121
1 vote
0 answers
719 views

Find All Dependencies Necessary for an Emacs Install Without X

I'm building a script to install a version of emacs (24.5 in this case) on a small server running on a raspberry pi. Since this will be in headless mode, I have no need for a GUI/X windows based ...
zaile's user avatar
  • 463
2 votes
1 answer
553 views

Building emacs without certain packages/components

I'm a longtime Emacs user, and I've decided to take the plunge and build it myself, because I can, and because maybe I'd like to choose a different graphical toolkit. By the by, is there any way, when ...
Bronze's user avatar
  • 113
6 votes
2 answers
2k views

building emacs in a docker container

Until very recently, I've been able to build emacs from source in a docker container using this recipe. However as of last week, all my builds have been failing with Warning: Your system has a gap ...
fommil's user avatar
  • 1,830
1 vote
1 answer
333 views

How to exclude ncurses when building Emacs from source

I have a building environment/setup that contains ncurses, and I am looking to build Emacs master branch without that library. I did not see any obvious option in the .configure --help dialog, or by ...
lawlist's user avatar
  • 19.5k
0 votes
1 answer
306 views

Emacs build error when use "autogen.sh all" to generate configure for master branch

I just cloned the source and try to build Emacs under my debian Jessie, but has some problems: [23:31:04 coeus]$ ./autogen.sh all Checking whether you have the necessary tools... (Read INSTALL.REPO ...
Coeus Wang's user avatar