POV-Ray : Newsgroups : povray.unix : make on RasPi2 (ARMv7) fails on bezier.cpp:858 bezier_subpatch_intersect() : Re: make on RasPi2 (ARMv7) fails on bezier.cpp:858 bezier_subpatch_interse= Server Time
16 Apr 2024 16:33:58 EDT (-0400)
  Re: make on RasPi2 (ARMv7) fails on bezier.cpp:858 bezier_subpatch_interse=  
From: kolloid
Date: 16 Feb 2015 10:55:01
Message: <web.54e21260dffa7d59b60834bb0@news.povray.org>
"JBeale" <nomail@nomail> wrote:
> Any hints for me? Trying to compile POV-Ray 3.7 from github on Raspberry Pi 2
> (ARM Cortex-A7), I did this:
>
> sudo apt-get install autoconf
> sudo apt-get install libboost-all-dev
> sudo apt-get install libjpeg-dev
> sudo apt-get install libtiff-dev
> cd povray/unix/
> ../prebuild.sh
> cd ..
> ../configure COMPILED_BY="J.Beale"
> make check
>
> It worked away for about 17 minutes and then hit an error:
>
> make  all-recursive
> make[1]: Entering directory '/home/pi/povray'
> Making all in source
> make[2]: Entering directory '/home/pi/povray/source'
> depbase=`echo backend/shape/bezier.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 -pthread -I/usr/include
> -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
> -Wno-non-template-friend -s -O3 -ffast-math -pthread -MT backend/shape/bezier.o
> -MD -MP -MF $depbase.Tpo -c -o backend/shape/bezier.o backend/shape/bezier.cpp
> &&\
> mv -f $depbase.Tpo $depbase.Po

> pov::BicubicPatch::bezier_subpatch_intersect(const pov::BasicRay&, const
> Vector3d (*)[4][4], double, double, double, double, pov::IStack&,

> ../backend/shape/bezier.h:128:13: error: candidate is: int
> pov::BicubicPatch::bezier_subpatch_intersect(const pov::BasicRay&, const
> Vector3d (*)[4][4], double, double, double, double, pov::IStack&)
>
> [... and many additional errors after that ...]

Yes, indeed, the same happened to me. Looks like the latest committer (c-lipka?)
introduced changes in sources/backend/shape/bezier.cpp but forgot to update
bezier.h

You can make the changes yourself. In sources/backend/shape/bezier.h add the
argument TraceThreadData * as the last arg of the following functions (I already
did it, you can just copy from the list below):

int intersect_bicubic_patch0(const BasicRay& , IStack&, TraceThreadData *);

int bezier_subpatch_intersect(const BasicRay&, const ControlPoints *, DBL, DBL,
DBL, DBL, IStack&, TraceThreadData *);

int bezier_subdivider(const BasicRay&, const ControlPoints *, DBL, DBL, DBL,
DBL, int, IStack&, TraceThreadData *);

int bezier_tree_walker(const BasicRay&, const BEZIER_NODE *,
IStack&,TraceThreadData *);


and then compile again. It should work. However this code is probably work in
process, so be careful.

Tom


Post a reply to this message

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