Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

videoUNICAP build fails on Linux due to undefined math functions #58

Closed
avilleret opened this issue Sep 12, 2014 · 0 comments
Closed

videoUNICAP build fails on Linux due to undefined math functions #58

avilleret opened this issue Sep 12, 2014 · 0 comments

Comments

@avilleret
Copy link
Contributor

I don't know why this happens but today when building videoUNICAP on Ubuntu 14.04 I got :

videoUNICAP.cpp: In function 'float {anonymous}::dimension_penalty(int, int, unicap_rect_t&)':
videoUNICAP.cpp:237:30: error: 'sqrt' was not declared in this scope
         double r=sqrt(w*w+h*h);
videoUNICAP.cpp:239:25: error: 'fabs' was not declared in this scope
         return fabs(r-r0);
videoUNICAP.cpp:242:26: error: 'sqrt' was not declared in this scope
         double r=sqrt(w*h);
videoUNICAP.cpp:244:25: error: 'fabs' was not declared in this scope
         return fabs(r-r0);
videoUNICAP.cpp:247:31: error: 'fabs' was not declared in this scope
       return fabs(w-size.width);
videoUNICAP.cpp:249:32: error: 'fabs' was not declared in this scope
       return fabs(h-size.height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant