Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-09

building pdf documentation

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

I read the readme.txt file in the fpcdocs checked out files. Is says to make PDF documentation I need to run 'make pdf'. Below is my attempt -- which failed. :-( Any hints on the magic key combination?

-----------------------
$ cd /opt/fpcdocs_svn
$ make pdf
Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop.
$ fpcmake
Processing Makefile.fpc
x86_64-linux requires:
Writing Makefile
$ make pdf
Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop.
-----------------------

I can run 'latex' and 'pdflatex' on my own .tex files without problems... See output below:

-----------------------------
$ latex test.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled.
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) (./test.aux) [1] (./test.aux) )
Output written on test.dvi (1 page, 420 bytes).
Transcript written on test.log.

$ pdflatex test.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled.
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) No file test.aux.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )</usr/shar
e/texmf-texlive/fonts/type1/bluesky/cm/cmr12.pfb></usr/share/texmf-texlive/font s/type1/bluesky/cm/cmr17.pfb>
Output written on test.pdf (1 page, 10918 bytes).
Transcript written on test.log.
-----------------------------

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Graeme Geldenhuys

In our previous episode, Graeme Geldenhuys said:

I read the readme.txt file in the fpcdocs checked out files. Is says to make PDF documentation I need to run 'make pdf'. Below is my attempt -- which failed. :-( Any hints on the magic key combination?

Install fpc. The below error might indicate that FPC can't be found from which it obtains platform and version.

Show quoted text 14 lines
----------------------- $ cd /opt/fpcdocs_svn $ make pdf Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop. $ fpcmake Processing Makefile.fpc x86_64-linux requires: Writing Makefile $ make pdf Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop. -----------------------

Something which can be fairly easily seen by checking out line 198 in the makefile btw.

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: I read the readme.txt file in the fpcdocs checked out files. Is says to make PDF…
Graeme Geldenhuys wrote
I read the readme.txt file in the fpcdocs checked out files. Is says to make PDF documentation I need to run 'make pdf'. Below is my attempt -- which failed. :-( Any hints on the magic key combination?

make pdf works fine here.

when you run fpcmake, you should run
fpcmake -Tall

Michael.

Show quoted text 71 lines
----------------------- $ cd /opt/fpcdocs_svn $ make pdf Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop. $ fpcmake Processing Makefile.fpc x86_64-linux requires: Writing Makefile $ make pdf Makefile:198: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop. ----------------------- I can run 'latex' and 'pdflatex' on my own .tex files without problems... See output below: ----------------------------- $ latex test.tex This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode (./test.tex LaTeX2e <2005/12/01> Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded. (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) (./test.aux) [1] (./test.aux) ) Output written on test.dvi (1 page, 420 bytes). Transcript written on test.log. $ pdflatex test.tex This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode (./test.tex LaTeX2e <2005/12/01> Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded. (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size12.clo)) No file test.aux. [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )</usr/shar e/texmf-texlive/fonts/type1/bluesky/cm/cmr12.pfb></usr/share/texmf-texlive/font s/type1/bluesky/cm/cmr17.pfb> Output written on test.pdf (1 page, 10918 bytes). Transcript written on test.log. ----------------------------- Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Graeme Geldenhuys
to Marco van de Voort: In our previous episode, Graeme Geldenhuys said: Install fpc. The below error might…

Marco van de Voort het geskryf:

Install fpc. The below error might indicate that FPC can't be found from which it obtains platform and version.

I have FPC installed, but on my new system (2 weeks old) I didn't have fpc in the PATH environment setup.

After that, I got a bit futher, running the following command:

make pdf FPCSRCDIR=/opt/fpc_2.3.1/src/

Now for that could work it said that it couldn't find a4.sty. I had to download another 270MB from apt repository to fullfill that dependency!!! That's 340MB downloaded so far just for LaTeX support on my system.

Now I do 'make pdf ....bla bla' again and this time I got 100's of lines as shown below....

------------------------
No documentation node found for identifier :
#rtl.sysutils.EHeapMemoryError.FreeInstance
No documentation node found for identifier : #rtl.Classes.TCollection.Sort No documentation node found for identifier :
#rtl.Classes.TStrings.StrictDelimiter
No documentation node found for identifier :
#rtl.Classes.TAbstractObjectReader.ReadUnicodeString No documentation node found for identifier :
#rtl.Classes.TBinaryObjectReader.ReadUnicodeString No documentation node found for identifier :
#rtl.Classes.TAbstractObjectReader.ReadUnicodeString No documentation node found for identifier :
#rtl.Classes.TReader.ReadUnicodeChar

[....snip....]
--------------------------

And after all that latex gives some errors and drops me to some latex prompt for input... Why I do not know.... First some problem with "facnyheads" and then another missing file "ptmr8t". Sheezzz, how much more must I download to full-fill the LaTeX docs requirements to generate PDF docs!

-------------------
Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is use
less on input line 326.

))
Writing index file rtl.idx
(/usr/share/texmf-texlive/tex/latex/tools/tabularx.sty (/usr/share/texmf-texlive/tex/latex/tools/array.sty)) No file rtl.aux.
(/usr/share/texmf-texlive/tex/latex/psnfss/t1ptm.fd)kpathsea: Running mktextfm ptmr8t
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr8t
This is METAFONT, Version 2.71828 (Web2C 7.5.6)

kpathsea: Running mktexmf ptmr8t
! I can't find file `ptmr8t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr8t

Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr8t

Transcript written on mfput.log.
grep: ptmr8t.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ptmr8t' failed to make ptmr8t.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font not loadable: Metric (TFM) file
not found
.
<to be read again>
relax
l.41 \begin{document}

-------------------

I'm sorry Michael.... give me OpenOffice Writer any time of the day! Plus it's a 170MB download which include the Java runtime environment and all ODT documents work.

[warning... more ranting]
Maybe I should just drool over what is in the FPC latex docs and wait for the next PDF downloads from the freepascal.org website. [ranting stopped]

Do we maybe have "pdf document snapshots" (like we have for FPC & Lazarus) one could download instead of jumping through all these LaTeX loops to try and compile the documents ourselves?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 16 lines
Marco van de Voort het geskryf: > > Install fpc. The below error might indicate that FPC can't be found from > which it obtains platform and version. I have FPC installed, but on my new system (2 weeks old) I didn't have fpc in the PATH environment setup. After that, I got a bit futher, running the following command: make pdf FPCSRCDIR=/opt/fpc_2.3.1/src/ Now for that could work it said that it couldn't find a4.sty. I had to download another 270MB from apt repository to fullfill that dependency!!! That's 340MB downloaded so far just for LaTeX support on my system.

[snip]

I'm sorry Michael.... give me OpenOffice Writer any time of the day! Plus it's a 170MB download which include the Java runtime environment and all ODT documents work.

I don't understand why you have so many problems. I did a standard ubuntu install, installed all of latex (there is a metapackage), and the docs compiled without a single glitch.

Show quoted text 8 lines
[warning... more ranting] Maybe I should just drool over what is in the FPC latex docs and wait for the next PDF downloads from the freepascal.org website. [ranting stopped] Do we maybe have "pdf document snapshots" (like we have for FPC & Lazarus) one could download instead of jumping through all these LaTeX loops to try and compile the documents ourselves?

No we don't, and I don't plan to set it up.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: make pdf works fine here. when you run fpcmake, you should run fpcmake -Tall Michael.

Michael Van Canneyt het geskryf:

make pdf works fine here.

As my other post suggested, on my side it doesn't. Sorry about that email - I was venting some steam. :-/

[...after a string coffee...]

At the latex prompt (after some missing file error), I just kept pressing enter. Eventually it dropped me back to the linux prompt. I have a few PDF files now. They contained the pages and screenshots/images, but not text. I guess the missing file latex complained about was a font? I search via http://packages.ubuntu.com/ for the package that contains a file like 'ptmr8t', but no such package exists, so I have no clue where to get that from. :-(

I'm using Ubuntu 9.04 (64bit).

BTW:
Is there a way of only "compiling" the ref.tex to PDF? I don't need the fpdoc, rtl etc documentation for now. The readme.txt files doesn't mention if this is possible.

I tried:
  $ make ref
  $ make ref.tex
  $ make ref.tex pdf
  ...and a few more variants...

None of them yielded any results.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
I tried: $ make ref $ make ref.tex $ make ref.tex pdf ...and a few more variants...

make ref.pdf

The most basic usage of make is to simply tell it what file it should "make". It's only with more complex rules that you get pseudo (.phony) targets, such as "all", "cycle", "pdf", etc.

Jonas

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: Michael Van Canneyt het geskryf: As my other post suggested, on my side it doesn't. Sorry…
Graeme Geldenhuys wrote 18 lines
Michael Van Canneyt het geskryf: > > make pdf works fine here. As my other post suggested, on my side it doesn't. Sorry about that email - I was venting some steam. :-/ [...after a string coffee...] At the latex prompt (after some missing file error), I just kept pressing enter. Eventually it dropped me back to the linux prompt. I have a few PDF files now. They contained the pages and screenshots/images, but not text. I guess the missing file latex complained about was a font? I search via http://packages.ubuntu.com/ for the package that contains a file like 'ptmr8t', but no such package exists, so I have no clue where to get that from. :-( I'm using Ubuntu 9.04 (64bit).

So am I...

Show quoted text 12 lines
BTW: Is there a way of only "compiling" the ref.tex to PDF? I don't need the fpdoc, rtl etc documentation for now. The readme.txt files doesn't mention if this is possible. I tried: $ make ref $ make ref.tex $ make ref.tex pdf ...and a few more variants... None of them yielded any results.

For make you need to type the target. Thus

make ref.pdf

or

make rtl.pdf

and so on.

Michel.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: [snip] I don't understand why you have so many problems. I did a standard ubuntu install,…

Michael Van Canneyt het geskryf:

I don't understand why you have so many problems. I did a standard ubuntu install, installed all of latex (there is a metapackage), and the docs compiled without a single glitch.

I couldn't find any 'latex' metapackage. Anyway, I google'd the issue which I thought was a missing font. The packages search website of ubuntu did not reveal anything. I then google'd some more and eventually found a website mentioning the same problem and luckily with a solution as well.

It was indeed missing fonts located in the following Ubuntu package:

texlive-fonts-recommended

I can now successfully 'make ref.pdf' at last!
Thanks Michael, Marco and Jonas for all all your input.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 15 lines
Michael Van Canneyt het geskryf: > > I don't understand why you have so many problems. I did a standard ubuntu > install, installed all of latex (there is a metapackage), and the docs > compiled without a single glitch. I couldn't find any 'latex' metapackage. Anyway, I google'd the issue which I thought was a missing font. The packages search website of ubuntu did not reveal anything. I then google'd some more and eventually found a website mentioning the same problem and luckily with a solution as well. It was indeed missing fonts located in the following Ubuntu package: texlive-fonts-recommended

The package that contains all is called texlive-full.

I can now successfully 'make ref.pdf' at last! Thanks Michael, Marco and Jonas for all all your input.

Glad that you could do it, now you can start doing real work :-)

Michael.

Reply by email