patriciogonzalezvivo / thebookofshaders

Step-by-step guide through the abstract and complex universe of Fragment Shaders.
http://TheBookOfShaders.com
Other
6.05k stars 688 forks source link

compile on ubuntu and pdf creation #6

Closed toastbrotch closed 9 years ago

toastbrotch commented 9 years ago

hi i'd love to read your book on my mobile while traveling. so i tried to create the pdf on my ubuntu14.10 workstation (no raspy around).

it seems that some images are missing:

pandoc: Could not find image `./02/tmp-hello_world.png', skipping...
pandoc: Could not find image `./03/tmp-time.png', skipping...
pandoc: Could not find image `./03/tmp-space.png', skipping...
pandoc: Could not find image `./05/tmp-linear.png', skipping...
pandoc: Could not find image `./05/tmp-expo.png', skipping...
pandoc: Could not find image `./05/tmp-step.png', skipping...
pandoc: Could not find image `./05/tmp-smoothstep.png', skipping...

i've set up the my machine to compile your book like this:

sudo apt-get install git-core libfreeimage-dev texlive-xetex pandoc texlive-fonts-recommended texlive-latex-extra
git clone https://github.com/patriciogonzalezvivo/thebookofshaders.git
cd thebookofshaders
make

but i was not yet able to compile the glslViewer (bcm_host.h missing)... as far as i understand glslViewer is needed to create the missing images above?

thanx and cheers.ivo

patriciogonzalezvivo commented 9 years ago

Hi, glslViewer is the one makes the images from the shaders files. Without it is not possible to compile the book.

I should port glslViewer soon. keep in touch

On Mar 19, 2015, at 6:44 AM, toastbrotch notifications@github.com wrote:

hi i'd love to read your book while traveling on my mobile. so i tried to create the pdf on my ubuntu14.10 workstation (no raspy around).

it seems that some images are missing:

pandoc: Could not find image ./02/tmp-hello_world.png', skipping... pandoc: Could not find image./03/tmp-time.png', skipping... pandoc: Could not find image ./03/tmp-space.png', skipping... pandoc: Could not find image./05/tmp-linear.png', skipping... pandoc: Could not find image ./05/tmp-expo.png', skipping... pandoc: Could not find image./05/tmp-step.png', skipping... pandoc: Could not find image `./05/tmp-smoothstep.png', skipping... where do i get them?

btw: i've set up the my machine to compile your book like this:

sudo apt-get install git-core libfreeimage-dev texlive-xetex pandoc texlive-fonts-recommended texlive-latex-extra git clone https://github.com/patriciogonzalezvivo/thebookofshaders.git cd thebookofshaders make btw2: i was not yet able to compile the glslViewer (bcm_host.h missing)...

— Reply to this email directly or view it on GitHub https://github.com/patriciogonzalezvivo/thebookofshaders/issues/6.

toastbrotch commented 9 years ago

hi. cool thanx meanwhile i found a quick and dirty hack how to compile the book (with some images missing):

wget http://upload.wikimedia.org/wikipedia/commons/c/ca/1x1.png
sed -i 's/shaderCommand = .*$/shaderCommand = "cp 1x1.png  " + shaderImage/' src/parseBook.py
sed -i 's/sincos\.gif/sincos.png/' 05/README.md 05/tmp.md book.tex
make