how to exclude a class from a module using cmakelist/clang ?

asked 2017-01-11 13:31:48 -0600

Hi, I'm building a version of opencv for the hololens (Win10, UWP, x86). I've already successfully done it for v3.1 and now I'm trying to do it for v3.2. Alas, the Tracker class (contrib/tracking) now references a new algorithm called GoTurn (TrackerGOTURN) which relies on deep neural network (dnn) which in turns relies on ProtoBuf which is not yet supported on this target. However all the other trackers do work perfectly. I can easily exclude the code from the result of the cmake build - that works - however I'm wondering if there is a better way to drive the inclusion/exclusion of a specific class within a module using the clang syntax (which I'm not familiar with). My goal is to do like I did for 3.1, aka, adjust the pre-cmake code or cmakelist.txt files rather than the result of the build. Any hint or suggestion appreciated. Thks.

edit retag flag offensive close merge delete

Comments

ahh, dependancy hell ;(

do you actually need the tracking module ?

berak gravatar imageberak ( 2017-01-11 13:35:10 -0600 )edit
1

Yes - I'm using the KCF tracker on the hololens. As mentioned I can get the stuff running for my personal needs, or even publish the result of the build .. but I'm trying to learn to do ti the 'right' way.. if possible... For reference, here is the link of what I published for v3.1 -

https://github.com/sylvain-prevost/op...

sylvain gravatar imagesylvain ( 2017-01-11 13:39:28 -0600 )edit

Dear Sylvain, dear OpenCV-Team, is there a solution around. Or are there possibilities to port OpenCV to the Hololens by now? @sylvain: are you going to push the v3.2 in the near future?

Luhlen gravatar imageLuhlen ( 2017-07-03 07:25:26 -0600 )edit