POV-Ray : Newsgroups : povray.beta-test : Linux source ? Server Time
23 Dec 2024 13:43:14 EST (-0500)
  Linux source ? (Message 1 to 9 of 9)  
From: tpso
Subject: Linux source ?
Date: 26 Jul 2010 19:05:00
Message: <web.4c4e138bd95914de9de8ac2f0@news.povray.org>
Any timeframe on an updated version of the linux source.
The source for 3.7beta is still 35a, with an expirydate back in march.

/tpso


Post a reply to this message

From: Chris Cason
Subject: Re: Linux source ?
Date: 27 Jul 2010 04:11:15
Message: <4c4e94a3@news.povray.org>
On 27/07/2010 09:00, tpso wrote:
> Any timeframe on an updated version of the linux source.
> The source for 3.7beta is still 35a, with an expirydate back in march.

Yes, there will be a binary and source up in the next 24 hours.

-- Chris


Post a reply to this message

From: Edouard
Subject: Re: Linux source ?
Date: 27 Jul 2010 05:45:00
Message: <web.4c4ea9ccf4269f7cae1acfb10@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
> On 27/07/2010 09:00, tpso wrote:
> > Any timeframe on an updated version of the linux source.
> > The source for 3.7beta is still 35a, with an expirydate back in march.
>
> Yes, there will be a binary and source up in the next 24 hours.

Thank-you for this - I've been wanting to try compiling a command-line version
to play with on the Mac, and having the latest source up will be great.

> -- Chris

Cheers,
Edouard.


Post a reply to this message

From: Chris Cason
Subject: Re: Linux source ?
Date: 27 Jul 2010 12:01:53
Message: <4c4f02f1$1@news.povray.org>
On 27/07/2010 19:41, Edouard wrote:
> Thank-you for this - I've been wanting to try compiling a command-line
> version to play with on the Mac, and having the latest source up will be
> great.

Could you please sanity-check the archives? There are two, one has a binary
(gcc, x86, no X support) and installer, and the other has the source:

  http://www.povray.org/temp/povray-3.7.0.beta.38-linux2_6-x86.tar.bz2
  http://www.povray.org/temp/povray-3.7.0.beta.38.tar.bz2

-- Chris


Post a reply to this message

From: Le Forgeron
Subject: Re: Linux source ?
Date: 27 Jul 2010 12:35:25
Message: <4c4f0acd@news.povray.org>
Le 27/07/2010 18:01, Chris Cason nous fit lire :
> On 27/07/2010 19:41, Edouard wrote:
>> Thank-you for this - I've been wanting to try compiling a command-line
>> version to play with on the Mac, and having the latest source up will be
>> great.
> 
> Could you please sanity-check the archives? There are two, one has a binary
> (gcc, x86, no X support) and installer, and the other has the source:

Checking the sources only; others can probably test the binary ?

>   http://www.povray.org/temp/povray-3.7.0.beta.38.tar.bz2
> 
> -- Chris


Warnings in bootstrap (ubuntu 10.4 amd64)

+ rm -f config.log config.status
+ aclocal -I .
+ autoheader --warnings=all
+ automake --warnings=all
+ autoconf --warnings=all
configure.ac:291: warning: The macro `AC_LANG_SAVE' is obsolete.
configure.ac:291: You should run autoupdate.
../../lib/autoconf/lang.m4:126: AC_LANG_SAVE is expanded from...
unix/config/acx_pthread.m4:78: ACX_PTHREAD is expanded from...
configure.ac:291: the top level
configure.ac:291: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:291: You should run autoupdate.
../../lib/autoconf/c.m4:73: AC_LANG_C is expanded from...
configure.ac:291: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:291: You should run autoupdate.
../../lib/autoconf/general.m4:2654: AC_TRY_LINK is expanded from...
configure.ac:291: warning: The macro `AC_LANG_RESTORE' is obsolete.
configure.ac:291: You should run autoupdate.
../../lib/autoconf/lang.m4:135: AC_LANG_RESTORE is expanded from...
+ cat ./configure
+ sed -e s,configure.gnu  --help=recursive,& --srcdir=$ac_srcdir,g -e
s,\(cd \)\($ac_\)\(pop\)*\(dir\),\1"\2\3\4",g -e
s,$am_aux_dir/missing,\\"$am_aux_dir\\"/missing,g
+ mv -f ./configure.tmp ./configure
+ chmod +x ./configure
+ rm -f -r ./autom4te.cache


Problem with my usual configure
(./configure COMPILED_BY="..." --disable-io-restrictions )
as make is failing:

povray.cpp: In function ‘void<unnamed>::BuildInitInfo(POVMSData*)’:
povray.cpp:320: error: ‘POV_RAY_IS_OFFICIAL’ was not declared in this scope

(file from source/backend)

Grepping for the symbol give only 3 instances:

./source/backend/parser/tokenize.cpp:#if POV_RAY_IS_OFFICIAL == 1
./source/backend/povray.cpp:            err = POVMSUtil_SetBool(msg,
kPOVAttrib_Official, POV_RAY_IS_OFFICIAL);
./source/backend/povray.h:#if POV_RAY_IS_OFFICIAL == 1

Seems solved with : export CPPFLAGS="-DPOV_RAY_IS_OFFICIAL=1"
but isn't it cheating a bit ?
(undocumented at least)


Post a reply to this message

From: Chris Cason
Subject: Re: Linux source ?
Date: 27 Jul 2010 13:08:43
Message: <4c4f129b@news.povray.org>
On 28/07/2010 02:35, Le_Forgeron wrote:



Thanks for pointing this out - the archive has a corrected version now.

-- Chris


Post a reply to this message

From: geep999
Subject: Re: Linux source ?
Date: 1 Aug 2010 10:55:00
Message: <web.4c558a54f4269f7c380f8080@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
> On 27/07/2010 19:41, Edouard wrote:
> > Thank-you for this - I've been wanting to try compiling a command-line
> > version to play with on the Mac, and having the latest source up will be
> > great.
>
> Could you please sanity-check the archives? There are two, one has a binary
> (gcc, x86, no X support) and installer, and the other has the source:
>
>   http://www.povray.org/temp/povray-3.7.0.beta.38-linux2_6-x86.tar.bz2
>   http://www.povray.org/temp/povray-3.7.0.beta.38.tar.bz2
>
> -- Chris

Hi Chris and everybody,

I tried beta38 - both the binary install script and compiling from source.

Compiled from source. This runs OK on Slackware 13.0 x86_64 with KDE 4.2.4, gcc
4.3.3, boost 1.38.
Comment - the source is much smaller than previous beta.35a
-rw-r--r-- 1 dad users 6327923 2010-03-13 23:24
/home/dad/povray-3.7.0.beta.35a.tar.bz2
-rw-r--r-- 1 dad users 1900261 2010-07-27 18:07
/home/dad/povray-3.7.0.beta.38.tar.bz2

For the install script for the binary - logged on as root on Slackware Current
x86_64. KDE 4.4.5
(Also tried as su - it can't create the KDE popups - normal Slackware behaviour
- "cannot connect to X server :0".
Didn't try as sudo).

1/ On a first install it detects that /usr/local/share/povray-3.7 already
exists.
It didn't exist. Must have been created by the script before the "if exists"
test. Could be confusing.

2/ Some information screens have the last line partially obscured - can only see
the top half of the last line of text.

3/ The test render fails - cannot find biscuit.pov.
But it exists in:
-rw-r--r-- 1 root root 8891 2010-08-01 10:16 /root/biscuit.pov
-rw-r--r-- 1 root root 8891 2010-07-27 11:13
/root/povray-3.7.0.beta.38-linux2_6-x86/scenes/advanced/biscuit.pov
-rw-r--r-- 1 root root 8891 2010-08-01 10:13
/usr/local/share/povray-3.7/scenes/advanced/biscuit.pov

See a copy of the relevant bits of the console messages below.
Fixed - see patches below. The test render is not running povray from the
correct directiory as cd has failed.

4/ From the console messages I see the complaint:
which: no kde-config in
(/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/kde4/libexec:/u
sr/lib64/qt/bin)
Finished installing POV-Ray 3.7.0

See:
http://techbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION
KDE_SESSION_VERSION
Introduced in KDE4, this environment variable is set to the major version number
of the KDE desktop being run on startup.
This allows one to know which kde?-config to run:
kde${KDE_SESSION_VERSION}-config.
For KDE3 this will resolve to kde-config and for KDE4 this will result in
kde4-config.
One can then use this knowledge to query more details, such as the minor
version, prefixes, etc.

Fixed. Change line 468 to:
KDECONFIG=kde${KDE_SESSION_VERSION}-config

5/ Don't understand the message about "install kde" (maybe related to 4/ above)
install kde
install: missing destination file operand after `kde'
Try `install --help' for more information.

6/ Tested the installed povray.
povray biscuit.pov
povray: this pre-release version of POV-Ray for Unix expires on 1 January 2011
povray: cannot open the user configuration file /root/.povray/3.7/povray.conf:
No such file or directory
Persistence of Vision(tm) Ray Tracer Version 3.7.0.beta.38 (g++ 4.4.3 @
 i686-pc-linux-gnu)

biscuit.png looks OK.

7/ I made some changes to install which allows it to run cleanly without errors.
See below for patches.

7.1/ install now runs the test render of biscuit.pov.

The render is started at line 981 of install
On line 980 I removed the logging. Also at 983.
Piping to tee seems to prevent the cd from executing and changing directory.

7.2/ install now also creates the 2 files
$KDE_INSTALL_DIR/share/mimelnk/text/x-povray-script.desktop &
$KDE_INSTALL_DIR/share/mimelnk/text/x-povray-include.desktop
On my system they are in /usr/share/mimelnk/text/x-povray-script.desktop &
/usr/share/mimelnk/text/x-povray-include.desktop
I guess they are supposed to tell the system to use povray to open .pov or .POV
files, but I don't think they are correct.

Running "install kde" as either root or a user still produces the error message:
install: missing destination file operand after `kde'
Try `install --help' for more information.

Cheers,
Peter
###### Patches ######
--- original/install 2010-07-27 12:16:27.000000000 +0100
+++ new/install 2010-08-01 15:02:20.815963390 +0100
@@ -465,7 +465,7 @@

 kde_install()
 {
-  KDECONFIG=`which kde-config`
+  KDECONFIG=kde${KDE_SESSION_VERSION}-config

   if [ -z "$KDECONFIG" ] ; then
     return 0
@@ -574,7 +574,9 @@

     echo "  generating $POVRAY file types..." 2>&1 | tee -a "$TMP_LOG"

-    test -d "$KDE_INSTALL_DIR/share/mimelnk/text" || mkdir -p
"$KDEHOME/share/mimelnk/text" 2>&1 | tee -a "$TMP_LOG"
+    if [ ! -d "$KDE_INSTALL_DIR/share/mimelnk/text" ]; then
+      mkdir -p "$KDE_INSTALL_DIR/share/mimelnk/text"
+    fi

     echo "[Desktop Entry]
 Comment=POV-Ray script file
@@ -977,10 +979,10 @@
  VER_STRING=`povray -version 2>&1`
  if echo "$VER_STRING" | grep "3.7.0" > /dev/null ; then
   cp scenes/advanced/biscuit.pov "$HOME/"
-  cd "$HOME" | tee -a "$TMP_LOG"
+  cd "$HOME"
   povray -ibiscuit.pov -f +v +p -w320 -h240 +a0.3 $1 2>&1 | tee -a "$TMP_LOG"
   rm -f ./biscuit.pov
-  cd "$DIR" | tee -a "$TMP_LOG"
+  cd "$DIR"
  else
   error_message "the test render was not successful since the
 program 'povray' (`which povray`) is not a $POVRAY

###### Console messages ######
../install

POV-Ray 3.7.0 installation
=============================

which: no povray in
(/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/kde4/libexec:/u
sr/lib64/qt/bin)
installing POV-Ray in default location (/usr/local)
clearing install log.
------------------------------------------------------
Copying files...
  creating supplementary files directory (/usr/local/share/povray-3.7)...

  clearing /usr/local/share/povray-3.7
  copying include files...
  copying sample scenes...
  copying ini files...
  copying script files...
  copying icon files...
  copying POV-Ray man page...
  copying POV-Ray executable...
  creating directory /usr/local/share/doc...
  creating directory /usr/local/share/doc/povray-3.7...
  copying POV-Ray documentation...
Finished copying files
------------------------------------------------------
updating system level configuration...
  creating directory /usr/local/etc/povray/3.7...
  installing new main POV-Ray ini file...
  updating main POV-Ray ini file...
  checking ini file /usr/local/etc/povray/3.7/povray.ini
    - file does not need to be modified
  installing POV-Ray configuration file...
Finished updating configuration
------------------------------------------------------

POV-Ray does not seem to have been previously installed
on this system.  The installation created a default
povray.ini at:

  /usr/local/etc/povray/3.7/povray.ini

which can be modified for individual requirements.

A new i/o restrictions configuation file has been created:

  /usr/local/etc/povray/3.7/povray.conf

See the documentation for how to customize the settings.

  running test render...
povray: this pre-release version of POV-Ray for Unix expires on 1 January 2011
povray: cannot open the user configuration file /root/.povray/3.7/povray.conf:
No such file or directory
Persistence of Vision(tm) Ray Tracer Version 3.7.0.beta.38 (g++ 4.4.3 @
 i686-pc-linux-gnu)
This is a time-limited beta test version which expires 31 Dec 2010.
General distribution is strongly discouraged.
....
Support libraries used by POV-Ray:
  ZLib 1.2.3.3, Copyright 1995-1998 Jean-loup Gailly and Mark Adler
  LibPNG 1.2.42, Copyright 1998-2002 Glenn Randers-Pehrson
  LibJPEG 62, Copyright 1998 Thomas G. Lane
  LibTIFF 3.9.2, Copyright 1988-1997 Sam Leffler, 1991-1997 SGI
  Boost 1.43, http://www.boost.org/
  OpenEXR, Copyright (c) 2004-2007, Industrial Light & Magic.

Parser Options
  Input file: biscuit.pov
  Remove bounds........On
  Split unions.........Off
  Library paths:
    /usr/local/share/povray-3.7
    /usr/local/share/povray-3.7/ini
    /usr/local/share/povray-3.7/include
==== [Parsing...] ==========================================================
Possible Parse Error: Cannot find file 'biscuit.pov', even after trying to
 append file type extension.
Parse Error: Cannot open input file.
Fatal error in parser: Cannot parse input.
Render failed


------------------------------------------------------

which: no kde-config in
(/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/kde4/libexec:/u
sr/lib64/qt/bin)
Finished installing POV-Ray 3.7.0

This install script can also add some useful entries to
the KDE panel if KDE is installed.  Running:

  install kde

as a user will add entries for this user.


Post a reply to this message

From: Chris Cason
Subject: Re: Linux source ?
Date: 8 Aug 2010 11:09:30
Message: <4c5ec8aa@news.povray.org>
Thanks for the updates to the installer: I have integrated those into the
two tarfiles.

-- Chris


Post a reply to this message

From: Chris Cason
Subject: Re: Linux source ?
Date: 8 Aug 2010 11:10:16
Message: <4c5ec8d8$1@news.povray.org>
On 27/07/2010 09:00, tpso wrote:
> Any timeframe on an updated version of the linux source.
> The source for 3.7beta is still 35a, with an expirydate back in march.

The new files (binary and source) are now available via the beta section of
the website.

-- Chris


Post a reply to this message

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