2.4 -> 3.0 transition guide suggestion (Feature #4346)


Added by Vincent Rabaud almost 10 years ago. Updated almost 10 years ago.


Status:Done Start date:2015-05-17
Priority:Normal Due date:
Assignee:Roman Donchenko % Done:

0%

Category:build/install
Target version:3.0
Difficulty:Easy Pull request:https://github.com/Itseez/opencv/pull/4049

Description

It is actually quite easy to get code compiling for both 2.4 and 3.0

#include <opencv2/core/version.hpp>

#ifdef CV_VERSION_EPOCH
// do opencv 2 code
#else
// do opencv 3 code
#endif

Feel free to discard that comment if you feel it does not belong to the transition guide. Thx


History

Updated by Maksim Shabunin almost 10 years ago

Suggested instructions have been added: https://github.com/Itseez/opencv/pull/4049

  • Status changed from New to Done
  • Pull request set to https://github.com/Itseez/opencv/pull/4049

Also available in: Atom PDF