ERROR while compiling Kicad From source On Linux

a2x: ERROR: “dblatex” -t pdf -p “/etc/asciidoc/dblatex/asciidoc-dblatex.xsl” -s “/etc/asciidoc/dblatex/asciidoc-dblatex.sty” -P latex.output.revhistory=0 -P doc.publisher.show=0 -s /home/fouad/Downloads/kicad-doc-master/CMakeSupport/pdf-cover-dblatex.sty -b xetex -p /home/fouad/Downloads/kicad-doc-master/src/cvpcb/…/…/xsl/dblatex-pdf-ru.xsl -o /home/fouad/Downloads/kicad-doc-master/build/src/cvpcb/es/cvpcb.pdf “/home/fouad/Downloads/kicad-doc-master/build/src/cvpcb/es/cvpcb.xml” returned non-zero exit status 1
make[2]: *** [src/cvpcb/CMakeFiles/cvpcb_pdf_es] Error 1
make[1]: *** [src/cvpcb/CMakeFiles/cvpcb_pdf_es.dir/all] Error 2
make: *** [all] Error 2

i have installed dblatex usng sudo apt-get install dblatex also
but the error remains

Please tell us more about your Linux distribution version.

Please show a bigger log, I believe the real error message is above these lines. Eventually use a service like http://pastebin.com/

Can you also try these commands and post the result?

cd /home/fouad/Downloads/kicad-doc-master/build/
cd /home/fouad/Downloads/kicad-doc-master/build/src/cvpcb/CMakeFiles/cvpcb_pdf_es
dblatex -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s "/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P latex.output.revhistory=0 -P doc.publisher.show=0 -s /home/fouad/Downloads/kicad-doc-master/CMakeSupport/pdf-cover-dblatex.sty -b xetex -p /home/fouad/Downloads/kicad-doc-master/src/cvpcb/../../xsl/dblatex-pdf-ru.xsl -o /home/fouad/Downloads/kicad-doc-master/build/src/cvpcb/es/cvpcb.pdf "/home/fouad/Downloads/kicad-doc-master/build/src/cvpcb/es/cvpcb.xml" 

after using make command

the result after 2nd command
bash: cd: cvpcb_pdf_es: No such file or directory
although there is so many cvpcb_*.dir

the result after the third command
Build the book set list…
Build the listings…
XSLT stylesheets DocBook - LaTeX 2e (0.3.4-3)

Build cvpcb.pdf
xelatex failed
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:296: Package babel Error: Unknown option `spanish’. Either you misspelled it
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:296: leading text: \ProcessOptions*
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:329: Package babel Error: You haven’t specified a language option.
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty:329: leading text: …ry to proceed from here, type x to quit.}
cvpcb.tex:41: \shorthandsspanish undefined.
cvpcb.tex:41: leading text: \setupbabel{es}
Unexpected error occured
Error: xelatex compilation failed
fouad@fouad:~/Downloads/kicad-doc-master/build/src/cvpcb/CMakeFiles$
fouad@fouad:~/Downloads/kicad-doc-master/build/src/cvpcb/CMakeFiles$ Reply
No command ‘Reply’ found, did you mean:
Command ‘reply’ from package ‘libreply-perl’ (universe)
Reply: command not found

The first log is not more usefull than your first post. There might be a debugging mode that needs to be enabled.

The third command thankfully explains the prolem. You need spanish support in latex. Try this command:
sudo apt-get texlive-lang-spanish

You will probably have to repeat it for many languages. If you just want to build a specific language (“es” for instance), try instead of make :
make cvpcb_html_es

Your topic title says you want to build KiCad. Do you realise that you are actually building ONLY the documentation? The program per se is in a separate repository. It is called kicad-source-mirror on github.

3 Likes

OMG!!! i never noticed that i am not compiling the source but the docs !
Thanks a lot