|
|
Teaser: https://imgur.com/a/p8Ali
Yesterday I installed https://termux.com/ - a terminal emulator and Linux
environment on my unrooted Nexus4 device (which runs Android 5+). Why not
run POV on my Android? I downloaded and installed POV-Ray 3.1g, something
like:
$ uname -a
Linux localhost 3.4.0-perf-gdffc258 #1 SMP PREEMPT Wed Jul 8 23:25:22 UTC 2015
armv7l Android
$ apt install vim wget make gcc
# wget [...] povuni_s.tgz and povuni_d.tgz
$ tar xfz povuni_s.tgz
$ cd povray31/source/unix/
$ vi makefile # minor adaptions:
CFLAGS = -g -O2 -finline-functions -ffast-math -c -ansi
-DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC)
$(LIBPNGINC) $(ZLIBINC)
# Define the default POV-Ray library location
POVLIBDIR = /data/data/com.termux/files/usr/share/povray
# Define the path under which you want POV-Ray files to be installed,
# typically /usr/local/bin, though Linux distributions may wish to
# alter this to /usr/bin
POVPATH = /data/data/com.termux/files
$ make -j5 newunix
make[1]: Entering directory
'/data/data/com.termux/files/home/povray31/source/unix'
gcc -g -O2 -finline-functions -ffast-math -c -ansi
-DCOMPILER_VER=\".`uname`.gcc\"
-DPOV_LIB_DIR=\"/data/data/com.termux/files/usr/share/povray\" -I. -I..
-I../libpng -I../zlib ../bbox.c
gcc -g -O2 -finline-functions -ffast-math -c -ansi
-DCOMPILER_VER=\".`uname`.gcc\"
-DPOV_LIB_DIR=\"/data/data/com.termux/files/usr/share/povray\" -I. -I..
-I../libpng -I../zlib ../bezier.c
[...]
$ file povray
povray: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically
linked, interpreter /system/bin/linker, not stripped
$ cp povray /data/data/com.termux/files/usr/bin/povray
# wget [...] skyvase.pov
$ gdb povray
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-androideabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from povray...done.
(gdb) run +Iskyvase.pov
Starting program: /data/data/com.termux/files/home/povray31/source/unix/povray
+Iskyvase.pov
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 3.1)
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.png, 24 bpp PNG
Graphic display.....Off
Mosaic preview......Off
CPU usage histogram.Off
Continued trace.....Off Allow interruption...On Pause when done.....Off
Verbose messages....Off
Tracing Options
Quality: 9
Bounding boxes.......On Bounding threshold: 25
Light Buffer.........On Vista Buffer.........On
Antialiasing........Off
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...
Program received signal SIGSEGV, Segmentation fault.
0xb6f91ca0 in sincos () from /system/lib/libm.so
(gdb) bt
#0 0xb6f91ca0 in sincos () from /system/lib/libm.so
#1 0x2a031cfc in MIdentity (result=0xbefff568) at ../matrices.c:132
#2 Compute_Axis_Rotation_Transform (transform=transform@entry=0xbefff568,
V1=V1@entry=0xbefff4d0,
angle=<optimized out>) at ../matrices.c:880
#3 0x2a031efc in Compute_Coordinate_Transform (trans=0x2a0bdb40,
origin=0xbefff6c0,
origin@entry=0xbefff6b8, up=up@entry=0xbefff6a0, radius=<optimized out>,
length=<optimized out>)
at ../matrices.c:947
#4 0x2a0173e0 in Compute_Cone_Data (Object=Object@entry=0x2a0bdaa8) at
...../cones.c:893
#5 0x2a04ae3c in Parse_Cone () at ../parse.c:1489
#6 Parse_Object () at ../parse.c:3686
#7 0x2a04fe24 in Parse_RValue (Previous=Previous@entry=129,
NumberPtr=0x2a0bda7c, DataPtr=0x2a0bda78,
ParFlag=ParFlag@entry=0, SemiFlag=SemiFlag@entry=1) at ../parse.c:5241
#8 0x2a051060 in Parse_Declare () at ../parse.c:4877
#9 0x2a07a67c in Parse_Directive (After_Hash=After_Hash@entry=1) at
...../tokenize.c:2421
#10 0x2a07d59c in Get_Token () at ../tokenize.c:988
#11 0x2a07e604 in Get_Token () at ../tokenize.c:863
#12 0x2a04d158 in Parse_Frame () at ../parse.c:3967
#13 Parse () at ../parse.c:195
#14 0x2a005c18 in FrameRender () at ../povray.c:420
#15 main (argc=<optimized out>, argv=<optimized out>) at ../povray.c:339
(gdb)
Not sure, what causes this..
--
Koppi
Post a reply to this message
|
|