POV-Ray : Newsgroups : povray.unix : 3.7.0.10 on Amazon Fire HD 10 Server Time
30 Mar 2025 23:04:57 EDT (-0400)
  3.7.0.10 on Amazon Fire HD 10 (Message 1 to 1 of 1)  
From: John Campbell
Subject: 3.7.0.10 on Amazon Fire HD 10
Date: 27 Mar 2025 00:01:10
Message: <67e4cd86$1@news.povray.org>
I just got 3.7.0.10 to build and run under Termux on my Fire tablet. I 
just figured I'd let people know, because the documentation for how to 
make POV work on Android was not super helpful in doing this.

The first problem I ran into, that couldn't be solved by just installing 
the obvious package, was that configure refused to recognize libboost, 
even when pointed directly at it.

I eventually determined that the problem was that the Termux boost 
package was only providing the boost libraries, not the header files and 
such necessary to actually build anything against boost (this may be a 
change from earlier versions of it), and so resorted to downloading the 
boost source tarball and building and installing it myself, which to be 
fair worked smoothly.

Then configure could find libboost, but still couldn't find 
libboost_thread, so I had to add "--with-boost-thread=boost_thread" to 
the configure command line. Because apparently it's looking for 
"boost-thread".

That and installing libpng, libjpeg, and libtiff packages got it through 
./configure, but then it crashed out of the compile with C++ errors. 
Apparently the C++ committees, in their infinite wisdom, have removed a 
feature that POV-Ray was using. I eventually tracked down the compiler 
flags necessary to reinstate the missing feature. The command line that 
finally worked was:

./configure --with-boost-thread=boost_thread --prefix=$FS/usr 
CXXFLAGS="-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES -D_HAS_AUTO_PTR_ETC=1 
-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"

$FS is an environment variable I set to the root of the Termux sandbox 
(/data/data/com.termux/files on this device), because I got tired of 
typing that path over and over with the awful tablet virtual keyboard.

I don't think all of those compiler flags are actually necessary, but it 
works with them, and by that time I was getting very tired of re-running 
configure and having it or the compile crash out, so I didn't go back 
and figure out which one(s) are actually the correct one(s).

After that, make check and make install worked fine.

4:33.557 on the official benchmark.

And having done all this, I just thought to actually check the Termux 
repository, and there's a 3.8 package available in it. I've gotten too 
used to Slackware and building everything myself, apparently. Oh well, 
3.7 is what all my other machines are using anyway.

-- 
John Campbell
jca### [at] lynnci-ncom


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.