epicflow icon indicating copy to clipboard operation
epicflow copied to clipboard

How to complie the Epicflow code using cmake

Open yuanxy92 opened this issue 8 years ago • 1 comments

I want to complie the Epicflow code by myself. (macOS 10.12) but I get this error (The error is same using the original Makefile):

image.c:214:36: error: cannot convert between vector values of different size ('float' and 'v4sf' (aka '__v4sf'))

how to solve this problem?

Thanks very much!

yuanxy92 avatar Jan 21 '17 10:01 yuanxy92

@yuanxy92

You can make the broadcast explicit. That is, change

*dstp = (coeff[0]+coeff[1])*(*srcp) + coeff[2]*(*srcp_p1);

to

float coeff01 = coeff[0]+coeff[1];
v4sf c01 = {coeff01, coeff01, coeff01, coeff01};
v4sf c2 = {coeff[2], coeff[2], coeff[2], coeff[2]};

*dstp = c01*(*srcp) + c2*(*srcp_p1);

You have to perform similar changes in more than 10 places.

By the way, you can ask the authors for help https://thoth.inrialpes.fr/src/epicflow/, which may be much quicker.

csukuangfj avatar Nov 18 '17 10:11 csukuangfj