davenull
Posts: 1162
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

openVG compile/build parameters

Thu Feb 18, 2016 3:49 pm

hey
as I read, for compile / build the parameter option
-I/opt/vc/include/interface/vcos/pthreads
should be required, but I am already using
-pthread
as a parameter.

Is the 1st one needed anyway? what is this for then?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

User avatar
Paeryn
Posts: 1949
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: openVG compile/build parameters

Thu Feb 18, 2016 8:31 pm

davenull wrote:hey
as I read, for compile / build the parameter option
-I/opt/vc/include/interface/vcos/pthreads
should be required, but I am already using
-pthread
as a parameter.

Is the 1st one needed anyway? what is this for then?
-I/opt/vc/include/interface/vcos/pthreads tells the compiler where to find some of the header files that are used by the CPU-side drivers to (presumably) interface with the pthreads implementation on the VC4.
-pthread just tells the compiler to include the pthread library for the CPU (and add any needed #define's).
Both are needed.
She who travels light — forgot something.

davenull
Posts: 1162
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: openVG compile/build parameters

Fri Feb 19, 2016 8:12 am

aha, thank you, again become a bit wiser 8-)
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

Return to “OpenVG”

Who is online

Users browsing this forum: No registered users and 1 guest