Questions tagged [build]

Building Emacs from source

This tag is about building Emacs from its source code. For questions about running compilers and more generally building programs from within Emacs, see .

56 questions
5
votes
3 answers

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 file or directory If I search for libjpeg.so I…
gboffi
  • 614
  • 4
  • 20
5
votes
1 answer

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 missing X libraries. I grabbed the gtk3-dev…
Daniel
  • 3,653
  • 18
  • 42
5
votes
1 answer

Error: compiled without dbus support?

I am running Emacs 24.5.1 (compiled) and Spacemacs v.0.105.4 on Ubuntu 12.04. When I try to use the spotify layer I get the following error: peculiar error: "Emacs not compiled with dbus support". How do I fix it?
3
votes
2 answers

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 the libraries but in config.log it says that the…
Dieter.Wilhelm
  • 1,906
  • 14
  • 25
3
votes
0 answers

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 documentation. The Valgrind documentation says to rebuild…
Robin Green
  • 949
  • 7
  • 17
2
votes
1 answer

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 command (or target) do I have to pass to make in…
John DeBord
  • 570
  • 3
  • 14
2
votes
1 answer

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 compiling Emacs, to only compile certain…
Bronze
  • 113
  • 1
  • 6
1
vote
0 answers

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 source. I've already done this for Emacs 27.2,…
nonreligious
  • 578
  • 3
  • 15
1
vote
1 answer

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 source module treesit.c are not available. For…
Nordlöw
  • 497
  • 3
  • 12
1
vote
1 answer

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
  • 775
  • 3
  • 14
1
vote
0 answers

-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 executables How can I troubleshoot this error further? (I…
kjo
  • 3,247
  • 17
  • 48
1
vote
1 answer

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 Googling. Q:  How, please, can I tell Emacs…
lawlist
  • 19,106
  • 5
  • 38
  • 120
0
votes
1 answer

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. After that, it executes cp -f emacs.pdmp…
user38323
  • 3
  • 1
0
votes
0 answers

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 703115829b. I'm using GTK3 toolkit. I apt…
GaryO
  • 496
  • 2
  • 17
0
votes
1 answer

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 run the configure script in the same directory,…
D A Vincent
  • 111
  • 5