Skip to content

Commit 7398a41

Browse files
authored
Merge pull request #611 from kwizart/cv_headers_soname
* Fix headers for opencv2 and later * Drop PROJECT_VER_MINOR in APIVER Reviewed-by: Benn Snyder <[email protected]>
2 parents 0ae4663 + 79e357e commit 7398a41

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ set (PROJECT_VER_PATCH 1)
5151
set (PROJECT_VER
5252
"${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}")
5353
set (PROJECT_APIVER
54-
"${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}")
54+
"${PROJECT_VER_MAJOR}")
5555

5656
OPTION(BUILD_REDIST_PACKAGE "Build libfreenect in a legally-redistributable manner (only affects audio)" ON)
5757
OPTION(BUILD_EXAMPLES "Build example programs" ON)

wrappers/opencv/cvdemo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#include <opencv/cv.h>
2-
#include <opencv/highgui.h>
1+
#include <opencv2/highgui/highgui_c.h>
32
#include <stdio.h>
43
#include "libfreenect_cv.h"
54

wrappers/opencv/libfreenect_cv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include <opencv/cv.h>
3+
#include <opencv2/core/core_c.h>
44

55
#ifdef __cplusplus
66
extern "C" {

0 commit comments

Comments
 (0)