compton icon indicating copy to clipboard operation
compton copied to clipboard

Error building Ubuntu 16.04

Open coreybruce opened this issue 7 years ago • 1 comments

I get Makefile:146 error when I do sudo make docs and sudo make install

sudo make docs a2x --format manpage man/compton.1.asciidoc a2x: ERROR: "xmllint" --nonet --noout --valid "/tmp/compton/man/compton.1.xml" returned non-zero exit status 127 Makefile:146: recipe for target 'man/compton.1' failed make: *** [man/compton.1] Error 1 corey@stuart-laptop:/tmp/compton$ sudo make install a2x --format manpage man/compton.1.asciidoc a2x: ERROR: "xmllint" --nonet --noout --valid "/tmp/compton/man/compton.1.xml" returned non-zero exit status 127 Makefile:146: recipe for target 'man/compton.1' failed make: *** [man/compton.1] Error 1 Am I missing something?

Also I suggest better documentation on dependencies needed when installing compton like for example on ubuntu based systems as I needed to install libglu1-mesa-dev freeglut3-dev, mesa-common-dev as well as the libconfig-dev but will also depend on the distro your using but these stuff need to be noted for distros in use.

coreybruce avatar Jan 16 '18 09:01 coreybruce

This issue occurs when building man files. To skip building them do the folowing: Delete the following lines in the Makefile:

man/%.1: man/%.1.asciidoc
	a2x --format manpage $<

man/%.1.html: man/%.1.asciidoc
	asciidoc $
docs: $(MANPAGES) $(MANPAGES_HTML)

ifneq "$(MANPAGES)" ""
	@install -m644 $(MANPAGES) "$(DESTDIR)$(MANDIR)"/
endif

@rm -f $(addprefix "$(DESTDIR)$(MANDIR)"/, compton.1 compton-trans.1)

Replace

@install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)" "$(DESTDIR)$(APPDIR)"

with

@install -d "$(DESTDIR)$(BINDIR)"  "$(DESTDIR)$(APPDIR)"

and

@rm -f $(OBJS) compton $(MANPAGES) $(MANPAGES_HTML) .clang_complete

with

@rm -f $(OBJS) compton .clang_complete

imAliAzhar avatar Sep 25 '19 07:09 imAliAzhar