|
|
... In /data/data/com.termux/files/home/povray31/source/unix/makefile I changed
the CFLAGS to:
CFLAGS = -fno-builtin-sin -fno-builtin-cos -O6 -c -ansi
-DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC)
$(LIBPNGINC) $(ZLIBINC)
... and adapted the libpng include and lib directives
PNGDIR = $(SRCDIR)/libpng
LIBPNGINC = -I$(PNGDIR)
LIBPNGLIB = $(PNGDIR)/libpng.a
Next, I built libpng.a and povray:
$ cd ../libpng
$ make -f scripts/makefile.lnx
$ make -j5 newunix
make[1]: Entering directory
'/data/data/com.termux/files/home/povray31/source/unix'
gcc -fno-builtin-sin -fno-builtin-cos -O6 -c -ansi
-DCOMPILER_VER=\".`uname`.gcc\"
-DPOV_LIB_DIR=\"/data/data/com.termux/files/usr/share/povray\" -I. -I..
-I../libpng -I../zlib ../atmosph.c
[...]
gcc ./atmosph.o ./bbox.o ./bcyl.o ./bezier.o ./blob.o ./boxes.o ./bsphere.o
../camera.o ./chi2.o ./colour.o ./cones.o ./csg.o ./discs.o ./express.o
../fractal.o ./gif.o ./gifdecod.o ./hcmplx.o ./hfield.o ./iff.o ./image.o
../interior.o ./lathe.o ./lbuffer.o ./lighting.o ./matrices.o ./media.o ./mem.o
../mesh.o ./normal.o ./objects.o ./octree.o ./optin.o ./optout.o ./parse.o
../parstxtr.o ./pattern.o ./pgm.o ./pigment.o ./planes.o ./png_pov.o ./point.o
../poly.o ./polygon.o ./polysolv.o ./povray.o ./ppm.o ./prism.o ./quadrics.o
../quatern.o ./rad_data.o ./radiosit.o ./ray.o ./render.o ./sor.o ./spheres.o
../super.o ./targa.o ./texture.o ./tokenize.o ./torus.o ./triangle.o ./truetype.o
../txttest.o ./userio.o ./vbuffer.o ./vlbuffer.o ./warps.o ./unix.o
.../libpng/libpng.a -L../zlib -lz -lm -o povray
... and voila!
$ ./povray -i skyvase.pov +v1 -d +ft -x +a0.300 +r3 -q9 -w640 -h480 -mv2.0
+b1000
Persistence of Vision(tm) Ray Tracer Version 3.1g.Linux.gcc
This is an unofficial version compiled by:
FILL IN NAME HERE.........................
The POV-Ray Team(tm) is not responsible for supporting this version.
Copyright 1999 POV-Ray Team(tm)
Quality settings 10 and 11 are no longer valid.
Use +QR if you need radiosity.
Parsing Options
Input file: skyvase.pov (compatible to version 2.0)
Remove bounds........On Split unions........Off
Library paths: /usr/local/lib/povray31
/data/data/com.termux/files/usr/share/povray
/data/data/com.termux/files/usr/share/povray/include
Output Options
Image resolution 640 by 480 (rows 1 to 480, columns 1 to 640).
Output file: skyvase.tga, 24 bpp Targa, 1000 KByte buffer
Graphic display.....Off
Mosaic preview......Off
CPU usage histogram.Off
Continued trace.....Off Allow interruption..Off Pause when done.....Off
Verbose messages.....On
Tracing Options
Quality: 9
Bounding boxes.......On Bounding threshold: 25
Light Buffer.........On Vista Buffer.........On
Antialiasing.........On (Method 1, Threshold 0.300, Depth 3, Jitter 1.00)
Radiosity...........Off
Animation Options
Clock value.... 0.000 (Animation off)
Redirecting Options
All Streams to console..........On
Debug Stream to console.........On
Fatal Stream to console.........On
Render Stream to console........On
Statistics Stream to console....On
Warning Stream to console.......On
Parsing...........
Creating bounding slabs.
Scene contains 6 frame level objects; 3 infinite.
0:00:25 Rendering line 480 of 480 supersampled 10 times.
Done Tracing
skyvase.pov Statistics, Resolution 640 x 480
----------------------------------------------------------------------------
Pixels: 307840 Samples: 395800 Smpls/Pxl: 1.29
Rays: 1642165 Saved: 10830 Max Level: 13/20
----------------------------------------------------------------------------
Ray->Shape Intersection Tests Succeeded Percentage
----------------------------------------------------------------------------
CSG Intersection 5293982 485831 9.18
Plane 31763892 17019174 53.58
Quadric 5293982 2257576 42.64
Sphere 5293982 786477 14.86
----------------------------------------------------------------------------
Calls to Noise: 1701193 Calls to DNoise: 3165208
----------------------------------------------------------------------------
Shadow Ray Tests: 6093936 Succeeded: 139802
Reflected Rays: 1246365
----------------------------------------------------------------------------
Smallest Alloc: 12 bytes Largest: 1024008
Peak memory used: 1113872 bytes
----------------------------------------------------------------------------
Time For Trace: 0 hours 0 minutes 25.0 seconds (25 seconds)
Total Time: 0 hours 0 minutes 25.0 seconds (25 seconds)
Post a reply to this message
|
|