How to make reusable code for multiplatform projects (iOS)
Hi i'm trying to write some opencv class code reusable on different platform. I followed this guide and actually managed to get my project work.
BUT Now I am to trying to integrate other classes from an external projects and I'm full of these kinds of errors.
cv::remap(src,dst,_mapx,_mapy,CV_INTER_LINEAR); return;
Use of undeclared identifier 'CV_INTER_LINEAR'; did you mean 'cv::INTER_LINEAR'?
OR
if(var < 1.0e-10)vec_ = cvScalar(0); else vec_ /= sqrt(var);
Use of undeclared identifier 'cvScalar'
if I "translate" the whole class with cv :: Scalar or cv::INTER_LINEAR everything continues to run. But these are classes and projects that are compiled into other systems.
Do not want to re-translate everything.
Where am I doing wrong in this integration? I'm working in iOS environment.
thanks in advance
OpenCV is going to pass to the C++ version, so no more C stuffs, like CV_SOETHING and CvClass or cvFunction, so it si better to do the changes now than later. The C version is deprecated
it's not related to that (for a change...)
also, please, don't follow guides from 2011...
if they're full of outdated constructs, clear sign that they're badly (or not at all) maintained. be sceptic of that.
like said above, do a big cleanup, and remove all outdated c-api things.
Thank You! What I did not understand, my ignorance, was that outdated constructs came from C!
Is there a better "Updated" way than this to make the integration of cross-platform code with iOS?