Difference between revisions of "HowTo Talk:Install POV"

From POV-Wiki
Jump to navigation Jump to search
(→‎Windows: edit)
(Added my experience with installing for Termux on Android)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Windows==
 
==Windows==
I recommend logging into an actual administrator account before installing POV-Ray on Windows. I have had trouble when using "Run as..." or the "Run as administrator" option. Also, keep in mind that the include files and so forth are installed for the current user only by default. Make sure to explicitly switch the destination to the "Public" folder or your non-admin account. [[User:SharkD|SharkD]] 04:13, 26 January 2021 (UTC)
+
<s>I recommend logging into an actual administrator account before installing POV-Ray on Windows. I have had trouble when installing as a non-admin, and the installer does not ask you first. Also, keep in mind that the include files and so forth are installed under the profile of the user doing the installing by default. Make sure to explicitly switch the destination to the "Public" folder or your non-admin account during installation. [[User:SharkD|SharkD]] 04:13, 26 January 2021 (UTC)</s>
 +
 
 +
Added this suggested change . [[User:Maurice|Maurice]] ([[User talk:Maurice|talk]]) 16:59, 28 May 2021 (UTC)
 +
 
 +
== Running POV from the command line ==
 +
 
 +
We could use some instructions on how to set up and run POV from the command line. Specifically under Linux. Thanks. [[User:SharkD|SharkD]] 04:22, 26 January 2021 (UTC)
 +
 
 +
== Installing POV-Ray on Termux for Android ==
 +
I built and installed POV-Ray 3.8 in Termux on my Samsung Galaxy A51.
 +
 
 +
First, I had to get the POV-Ray source and dependencies:
 +
 
 +
<code>pkg upgrade</code>
 +
 
 +
<code>pkg install git make automake autoconf clang boost libjpeg libpng libtiff</code>
 +
 
 +
<code>git clone <nowiki>https://github.com/POV-Ray/povray</nowiki></code>
 +
 
 +
I found that zlib was already there, and openexr is not available for Termux.
 +
 
 +
Next, I followed the standard Unix build instructions as per the github readme, using the configure prefix option to specify the install location. The latter is necessary because a) without root access you don't have permission to write to the standard locations, and b) those locations may not even be usable by Termux because of its self-contained nature. The prefix option needs an absolute path, so I used <code>pwd</code> to get the full path to my install directory.
 +
 
 +
<code>cd povray/unix</code>
 +
 
 +
<code>./prebuild.sh</code>
 +
 
 +
<code>cd ../</code>
 +
 
 +
<code>./configure --prefix=/absolute/install/path COMPILED_BY="name <email>"</code>
 +
 
 +
<code>make</code>
 +
 
 +
<code>make install</code>
 +
 
 +
This gave me a working POV-Ray install in the home directory. Adding this location to PATH in ~/.bashrc allowed the executable to be run from anywhere.
 +
 
 +
To make my life easier, I also ran <code>termux-setup-storage</code> to enable read/write access to the communal Android directories, and added some extra keys (arrows etc) to ~/.termux/termux.properties.
 +
 
 +
Finally, I recommend using an .ini file when running povray, setting <code>Output_File_Name = ~/storage/dcim/POVRay/</code> or similar. This redirects the output file to that location, using the default filename. All of this allows running renders thusly:
 +
 
 +
<code>povray settings.ini scene.pov</code>
 +
 
 +
[[User:Bill Pragnell|Bill Pragnell]] ([[User talk:Bill Pragnell|talk]]) 18:45, 22 June 2021 (UTC)

Latest revision as of 18:45, 22 June 2021

Windows

I recommend logging into an actual administrator account before installing POV-Ray on Windows. I have had trouble when installing as a non-admin, and the installer does not ask you first. Also, keep in mind that the include files and so forth are installed under the profile of the user doing the installing by default. Make sure to explicitly switch the destination to the "Public" folder or your non-admin account during installation. SharkD 04:13, 26 January 2021 (UTC)

Added this suggested change . Maurice (talk) 16:59, 28 May 2021 (UTC)

Running POV from the command line

We could use some instructions on how to set up and run POV from the command line. Specifically under Linux. Thanks. SharkD 04:22, 26 January 2021 (UTC)

Installing POV-Ray on Termux for Android

I built and installed POV-Ray 3.8 in Termux on my Samsung Galaxy A51.

First, I had to get the POV-Ray source and dependencies:

pkg upgrade

pkg install git make automake autoconf clang boost libjpeg libpng libtiff

git clone https://github.com/POV-Ray/povray

I found that zlib was already there, and openexr is not available for Termux.

Next, I followed the standard Unix build instructions as per the github readme, using the configure prefix option to specify the install location. The latter is necessary because a) without root access you don't have permission to write to the standard locations, and b) those locations may not even be usable by Termux because of its self-contained nature. The prefix option needs an absolute path, so I used pwd to get the full path to my install directory.

cd povray/unix

./prebuild.sh

cd ../

./configure --prefix=/absolute/install/path COMPILED_BY="name <email>"

make

make install

This gave me a working POV-Ray install in the home directory. Adding this location to PATH in ~/.bashrc allowed the executable to be run from anywhere.

To make my life easier, I also ran termux-setup-storage to enable read/write access to the communal Android directories, and added some extra keys (arrows etc) to ~/.termux/termux.properties.

Finally, I recommend using an .ini file when running povray, setting Output_File_Name = ~/storage/dcim/POVRay/ or similar. This redirects the output file to that location, using the default filename. All of this allows running renders thusly:

povray settings.ini scene.pov

Bill Pragnell (talk) 18:45, 22 June 2021 (UTC)