POV-Ray : Newsgroups : povray.unix : error in base/image/hdr.cpp Server Time
28 Mar 2024 10:11:01 EDT (-0400)
  error in base/image/hdr.cpp (Message 1 to 9 of 9)  
From: crystal
Subject: error in base/image/hdr.cpp
Date: 12 May 2017 09:05:00
Message: <web.5915b1e8d12137a095d15ec90@news.povray.org>
I am trying to install povray-3.7-stable version in fedora.
../configure --prefix=/usr/scratch1/nath/POVRAY
--withboost-libdir=/usr/scratch1/nath/BOOST/lib
--with-libtiff=/usr/scratch1/nath/TIFF/lib
COMPILED_BY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

is working fine. Then when I am trying to install (make check or make install)
it, it is giving this following error>>>>>>>


make  all-recursive
make[1]: Entering directory
'/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable'
Making all in source
make[2]: Entering directory
'/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable/source'
depbase=`echo backend/povray.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
backend/povray.o -MD -MP -MF $depbase.Tpo -c -o backend/povray.o
backend/povray.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/iff.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/iff.o -MD -MP -MF $depbase.Tpo -c -o base/image/iff.o
base/image/iff.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/image.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/image.o -MD -MP -MF $depbase.Tpo -c -o base/image/image.o
base/image/image.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/jpeg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/jpeg.o -MD -MP -MF $depbase.Tpo -c -o base/image/jpeg.o
base/image/jpeg.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/openexr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/openexr.o -MD -MP -MF $depbase.Tpo -c -o base/image/openexr.o
base/image/openexr.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/pgm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/pgm.o -MD -MP -MF $depbase.Tpo -c -o base/image/pgm.o
base/image/pgm.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/png.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/png.o -MD -MP -MF $depbase.Tpo -c -o base/image/png.o
base/image/png.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/ppm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/ppm.o -MD -MP -MF $depbase.Tpo -c -o base/image/ppm.o
base/image/ppm.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/targa.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/targa.o -MD -MP -MF $depbase.Tpo -c -o base/image/targa.o
base/image/targa.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/tiff.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/tiff.o -MD -MP -MF $depbase.Tpo -c -o base/image/tiff.o
base/image/tiff.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo base/image/hdr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
-I../source/frontend -I../unix -I../vfe -I../vfe/unix
-I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
base/image/hdr.o -MD -MP -MF $depbase.Tpo -c -o base/image/hdr.o
base/image/hdr.cpp &&\
mv -f $depbase.Tpo $depbase.Po




   if(*file == false)
      ~~~~~~^~~~~~~~




   if((file->getline(line, sizeof(line)) == false) || (line[0] == '-') ||
(line[0] == '+'))
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


   if(file->Read_Byte(b) == false)
      ~~~~~~~~~~~~~~~~~~~^~~~~~~~


   if(file->Read_Byte(b) == false)
      ~~~~~~~~~~~~~~~~~~~^~~~~~~~


     if(file->Read_Byte(b) == false)
        ~~~~~~~~~~~~~~~~~~~^~~~~~~~


      if(file->Read_Byte(val) == false)
         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


       if(file->Read_Byte(val) == false)
          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~




     if(file->write(&rgbe, sizeof(RGBE)) == false)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


         if(file->Write_Byte(scanline[col][i]) == false)
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


        if(file->Write_Byte(scanline[col++][i]) == false)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


       if(file->Write_Byte(scanline[beg][i]) == false)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Makefile:1100: recipe for target 'base/image/hdr.o' failed
make[2]: *** [base/image/hdr.o] Error 1
make[2]: Leaving directory
'/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable/source'
Makefile:662: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable'
Makefile:455: recipe for target 'all' failed
make: *** [all] Error 2


Post a reply to this message

From: crystal
Subject: Re: error in base/image/hdr.cpp
Date: 12 May 2017 09:25:00
Message: <web.5915b716644509b295d15ec90@news.povray.org>
fedora version 25




"crystal" <tri### [at] yahoocoin> wrote:
> I am trying to install povray-3.7-stable version in fedora.
> ../configure --prefix=/usr/scratch1/nath/POVRAY
> --withboost-libdir=/usr/scratch1/nath/BOOST/lib
> --with-libtiff=/usr/scratch1/nath/TIFF/lib
> COMPILED_BY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
>
> is working fine. Then when I am trying to install (make check or make install)
> it, it is giving this following error>>>>>>>
>
>
> make  all-recursive
> make[1]: Entering directory
> '/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable'
> Making all in source
> make[2]: Entering directory
> '/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable/source'
> depbase=`echo backend/povray.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> backend/povray.o -MD -MP -MF $depbase.Tpo -c -o backend/povray.o
> backend/povray.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/iff.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/iff.o -MD -MP -MF $depbase.Tpo -c -o base/image/iff.o
> base/image/iff.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/image.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/image.o -MD -MP -MF $depbase.Tpo -c -o base/image/image.o
> base/image/image.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/jpeg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/jpeg.o -MD -MP -MF $depbase.Tpo -c -o base/image/jpeg.o
> base/image/jpeg.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/openexr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/openexr.o -MD -MP -MF $depbase.Tpo -c -o base/image/openexr.o
> base/image/openexr.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/pgm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/pgm.o -MD -MP -MF $depbase.Tpo -c -o base/image/pgm.o
> base/image/pgm.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/png.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/png.o -MD -MP -MF $depbase.Tpo -c -o base/image/png.o
> base/image/png.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/ppm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/ppm.o -MD -MP -MF $depbase.Tpo -c -o base/image/ppm.o
> base/image/ppm.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/targa.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/targa.o -MD -MP -MF $depbase.Tpo -c -o base/image/targa.o
> base/image/targa.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/tiff.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/tiff.o -MD -MP -MF $depbase.Tpo -c -o base/image/tiff.o
> base/image/tiff.cpp &&\
> mv -f $depbase.Tpo $depbase.Po
> depbase=`echo base/image/hdr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../source/backend -I../source/base
> -I../source/frontend -I../unix -I../vfe -I../vfe/unix
> -I/usr/scratch1/nath/TIFF/lib/../include  -pthread -I/usr/include
> -I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread -MT
> base/image/hdr.o -MD -MP -MF $depbase.Tpo -c -o base/image/hdr.o
> base/image/hdr.cpp &&\
> mv -f $depbase.Tpo $depbase.Po




>    if(*file == false)
>       ~~~~~~^~~~~~~~




>    if((file->getline(line, sizeof(line)) == false) || (line[0] == '-') ||
> (line[0] == '+'))
>        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


>    if(file->Read_Byte(b) == false)
>       ~~~~~~~~~~~~~~~~~~~^~~~~~~~


>    if(file->Read_Byte(b) == false)
>       ~~~~~~~~~~~~~~~~~~~^~~~~~~~


>      if(file->Read_Byte(b) == false)
>         ~~~~~~~~~~~~~~~~~~~^~~~~~~~


>       if(file->Read_Byte(val) == false)
>          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


>        if(file->Read_Byte(val) == false)
>           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~




>      if(file->write(&rgbe, sizeof(RGBE)) == false)
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


>          if(file->Write_Byte(scanline[col][i]) == false)
>             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


>         if(file->Write_Byte(scanline[col++][i]) == false)
>            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~


>        if(file->Write_Byte(scanline[beg][i]) == false)
>           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
> Makefile:1100: recipe for target 'base/image/hdr.o' failed
> make[2]: *** [base/image/hdr.o] Error 1
> make[2]: Leaving directory
> '/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable/source'
> Makefile:662: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> '/net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable'
> Makefile:455: recipe for target 'all' failed
> make: *** [all] Error 2


Post a reply to this message

From: William F Pokorny
Subject: Re: error in base/image/hdr.cpp
Date: 12 May 2017 11:32:45
Message: <5915d59d$1@news.povray.org>
On 05/12/2017 09:00 AM, crystal wrote:
>
> I am trying to install povray-3.7-stable version in fedora.
> ../configure --prefix=/usr/scratch1/nath/POVRAY
> --withboost-libdir=/usr/scratch1/nath/BOOST/lib
> --with-libtiff=/usr/scratch1/nath/TIFF/lib
> COMPILED_BY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
>
> is working fine. Then when I am trying to install (make check or make install)
> it, it is giving this following error>>>>>>>
>
>
>
Does the normal build method work?

Something like:

cd /net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable

cd ./unix

./prebuild.sh

cd ..

./configure COMPILED_BY="crystal"

make

----
Bill P.


Post a reply to this message

From: Le Forgeron
Subject: Re: error in base/image/hdr.cpp
Date: 12 May 2017 14:45:43
Message: <591602d7$1@news.povray.org>
Le 12/05/2017 à 15:00, crystal a écrit :
> 
> I am trying to install povray-3.7-stable version in fedora.
> ../configure --prefix=/usr/scratch1/nath/POVRAY
> --withboost-libdir=/usr/scratch1/nath/BOOST/lib
> --with-libtiff=/usr/scratch1/nath/TIFF/lib
> COMPILED_BY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
> 
> is working fine. Then when I am trying to install (make check or make install)
> it, it is giving this following error>>>>>>>
> 

> base/image/hdr.cpp: In function ‘void pov_base::HDR::ReadOldLine(unsigned char*,
> int, pov_base::IStream*)’:
> base/image/hdr.cpp:147:12: error: no match for ‘operator==’ (operand types are
> ‘pov_base::IStream’ and ‘bool’)
>    if(*file == false)
>       ~~~~~~^~~~~~~~

Your compiler is enforcing the modern rules of C++...
and without a cast operator, an object cannot be compared to a boolean.

Have a look at
https://github.com/LeForgeron/povray/commit/3035a03209781218f0dd78c1584fdcd13e2d314d
for a fast patch (one more line) to be fine.

Alternative would be to replace all "XXXXX == false" with "!XXXXX" but
it is far more heavy and make code less readable (but works, because
operator!() is defined in code).

Best regards :-)


Post a reply to this message

From: clipka
Subject: Re: error in base/image/hdr.cpp
Date: 13 May 2017 06:30:01
Message: <5916e029@news.povray.org>
Am 12.05.2017 um 15:22 schrieb crystal:

> fedora version 25

Please let us know what version of g++ you are using.

You should be able to glean this piece of information from the output of
`./configure`.


Post a reply to this message

From: clipka
Subject: Re: error in base/image/hdr.cpp
Date: 13 May 2017 07:57:23
Message: <5916f4a3$1@news.povray.org>
I've just checked in a patch to 3.7-stable that you might want to try
out; it silences a few clang warnings, including some that seem to
correspond to your error messages. You can find the source code here:

https://github.com/POV-Ray/povray/tree/hotfix/3.7.0_clang_warnings


Still, I would love to hear what g++ version you are using.


Post a reply to this message

From: crystal
Subject: Re: error in base/image/hdr.cpp
Date: 15 May 2017 07:30:01
Message: <web.591990da644509b295d15ec90@news.povray.org>
gcc version 6.3.1

clipka <ano### [at] anonymousorg> wrote:
> I've just checked in a patch to 3.7-stable that you might want to try
> out; it silences a few clang warnings, including some that seem to
> correspond to your error messages. You can find the source code here:
>
> https://github.com/POV-Ray/povray/tree/hotfix/3.7.0_clang_warnings
>
>
> Still, I would love to hear what g++ version you are using.


Post a reply to this message

From: crystal
Subject: Re: error in base/image/hdr.cpp
Date: 15 May 2017 07:35:00
Message: <web.591991a7644509b295d15ec90@news.povray.org>
I can not use normal build. I do not have access. Also TIFF library I had to
install locally. Also the ./configure part executed without error.

William F Pokorny <ano### [at] anonymousorg> wrote:
> On 05/12/2017 09:00 AM, crystal wrote:
> >
> > I am trying to install povray-3.7-stable version in fedora.
> > ../configure --prefix=/usr/scratch1/nath/POVRAY
> > --withboost-libdir=/usr/scratch1/nath/BOOST/lib
> > --with-libtiff=/usr/scratch1/nath/TIFF/lib
> > COMPILED_BY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
> >
> > is working fine. Then when I am trying to install (make check or make install)
> > it, it is giving this following error>>>>>>>
> >
> >
> >
> Does the normal build method work?
>
> Something like:
>
> cd /net/theorie/auto/scratch1/nath/POVRAY/povray-3.7-stable
>
> cd ./unix
>
> ./prebuild.sh
>
> cd ..
>
> ./configure COMPILED_BY="crystal"
>
> make
>
> ----
> Bill P.


Post a reply to this message

From: crystal
Subject: Re: error in base/image/hdr.cpp
Date: 16 May 2017 04:55:00
Message: <web.591abe1c644509b295d15ec90@news.povray.org>
This worked. Thanks!
clipka <ano### [at] anonymousorg> wrote:
> I've just checked in a patch to 3.7-stable that you might want to try
> out; it silences a few clang warnings, including some that seem to
> correspond to your error messages. You can find the source code here:
>
> https://github.com/POV-Ray/povray/tree/hotfix/3.7.0_clang_warnings
>
>
> Still, I would love to hear what g++ version you are using.


Post a reply to this message

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