Opencv 3.0 Compilation Error when using CMake flags -D WITH_OPENNI=ON (Bug #3293)


Added by Juan Perez Rua over 11 years ago. Updated over 11 years ago.


Status:Done Start date:2013-09-27
Priority:Normal Due date:
Assignee:Roman Donchenko % Done:

0%

Category:-
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Linux
Difficulty: HW Platform:x64
Pull request:https://github.com/Itseez/opencv/pull/1565

Description

The compilation errors are

.../src/cap_openni.cpp:273:59: error: conversion from 'xn::DepthMetaData*' to non-scalar type 'cv::Ptr<xn::DepthMetaData>' requested

and
.../src/cap_openni.cpp:279:59: error: conversion from 'xn::ImageMetaData*' to non-scalar type 'cv::Ptr<xn::ImageMetaData>' requested

The lines are:
273: cv::Ptr<xn::DepthMetaData> depthPtr = new xn::DepthMetaData;
279: cv::Ptr<xn::ImageMetaData> imagePtr = new xn::ImageMetaData;

I think the problem is caused by an incompatibility with the new Ptr implementation. Unfortunately I don't have any OpenNi device to test a possible solution right now.


Associated revisions

Revision 478dd01c
Added by Maksim Shabunin over 10 years ago

Merge pull request #3293 from a-wi:MSMF_remove_ATL_dependency_v3

History

Updated by Vladislav Vinogradov over 11 years ago

  • Assignee set to Roman Donchenko

Updated by Anna Kogan over 11 years ago

Hello Juan,

Thank you for reporting the issue!

  • Affected version changed from branch 'master' (2.9) to branch 'master' (3.0-dev)
  • Status changed from New to Open
  • Description changed from The compilation errors are .../src/cap_openni.cpp:273:59: error: conversion ... to The compilation errors are <pre> .../src/cap_openni.cpp:273:59: error: ... More

Updated by Anna Kogan over 11 years ago

  • Description changed from The compilation errors are <pre> .../src/cap_openni.cpp:273:59: error: ... to The compilation errors are <pre> .../src/cap_openni.cpp:273:59: error: ... More

Updated by Anna Kogan over 11 years ago

  • Description changed from The compilation errors are <pre> .../src/cap_openni.cpp:273:59: error: ... to The compilation errors are <pre>.../src/cap_openni.cpp:273:59: error: c... More

Updated by Roman Donchenko over 11 years ago

If you don't have OpenNI devices, why are you building with OpenNI? :-)

Either way, sorry about that; I've submitted a pull request to fix it.

  • Pull request set to https://github.com/Itseez/opencv/pull/1565

Updated by Roman Donchenko over 11 years ago

Should be fixed now. Reopen if it isn't.

  • Status changed from Open to Done

Also available in: Atom PDF