Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6350253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:46:32+00:00 2026-05-24T21:46:32+00:00

I am using opencv 2.3 on ubuntu 11.04. while compiling, for completeness, I’d set

  • 0

I am using opencv 2.3 on ubuntu 11.04. while compiling, for completeness, I’d set WITH_OPENNI=ON. (regret it now, because I dont plan to use a kinect soon, and openni is giving me headaches with normal opencv programs)

anyway, to test the opencv installation i compiled following code that shows me video from my laptop webcam:

#include <stdio.h>
#include <string.h>
#include "highgui.h"
#include "cv.h"

int main()
{
cvNamedWindow("Webcam",CV_WINDOW_AUTOSIZE);
CvCapture* capture=cvCaptureFromCAM(0);
IplImage* frame;

while(1)
{
    frame=cvQueryFrame(capture);
    if(!frame) break;
    cvShowImage("Webcam",frame);
    char c=cvWaitKey(33);
    if(c==27) break;
}

cvReleaseCapture(&capture);
cvDestroyWindow("Webcam");
}

the code complies correctly but gives the following error on execution:

OpenCV Error: Unspecified error (Failed to enumerate production trees: Can’t create any node of the requested type!) in CvCapture_OpenNI, file /home/samarth/OpenCV-2.3.0/modules/highgui/src/cap_openni.cpp, line 188
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/samarth/OpenCV-2.3.0/modules/highgui/src/cap_openni.cpp:188: error: (-2) Failed to enumerate production trees: Can’t create any node of the requested type! in function CvCapture_OpenNI

Aborted

has anybody faced the same problem? any idea to cure this would be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:46:34+00:00Added an answer on May 24, 2026 at 9:46 pm

    This problem was fixed in OpenCV 2.3.1 release.

    See following link for the details:
    https://code.ros.org/trac/opencv/ticket/1237

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using cvCalcOpticalFlowLK function in my code (OpenCV 2.4.1 and Ubuntu 12.04). I
I'm using Opencv's K-means implementation to cluster a large set of 8-dimensional vectors. They
I had already installed opencv 2.4.2 on my ubuntu 12.04 lts system. But now
I'm using OpenCV to fit a line from a set of points using cvFitLine()
I am using OpenCV 2.3.1 with C++ on NetBeans 7.1 on Ubuntu 11.04 (Gnome).
I cannot successfully calculate the distance transformation using OpenCV (2.3) on an ubuntu. The
I am trying to use OpenCV on my Ubuntu machine but I am having
I am using NetBeans 7.0.1 to develop C++ applications using OpenCV 2.4.0 on Ubuntu
I am using opencv 2.3.1a in ubuntu 11.o4. I installed opencv using: http://www.samontab.com/web/2011/06/installing-opencv-2-2-in-ubuntu-11-04/ Since
i am using ubuntu 12.04, and i have installed opencv 2.4 (actually, i installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.