English 中文(简体)
未明确提及“_imp__ZN11C1394Camera10InitCameraEi, 1394cmu on eclipse
原标题:undefined reference to `_imp___ZN11C1394Camera10InitCameraEi with 1394cmu on eclipse

I m using this program with Opencv and 1394cmu to grab a video stream from firewire. but when I compile the project I get some errors. the libraries are correctly imported in eclipse in fact the object s method are seen and the two ddl are also correctly imported so I have no idea qhere is the problem

undefined reference to `_imp___ZN11C1394Camera10InitCameraEi    
undefined reference to `_imp___ZN11C1394Camera12AcquireImageEv  
undefined reference to `_imp___ZN11C1394Camera12SetVideoModeEm  
undefined reference to `_imp___ZN11C1394Camera14SetVideoFormatEm    
undefined reference to `_imp___ZN11C1394Camera16StopImageCaptureEv  
undefined reference to `_imp___ZN11C1394Camera17SetVideoFrameRateEm     
undefined reference to `_imp___ZN11C1394Camera21StartImageAcquisitionEv 
undefined reference to `_imp___ZN11C1394Camera6getRGBEPhm   
undefined reference to `_imp___ZN11C1394Camera9CheckLinkEv  
undefined reference to `_imp___ZN11C1394CameraC1Ev  



 #include "1394Camera.h"

// adjust parameters to your needs
#define CAM_RES_WIDTH 640
#define CAM_RES_HEIGHT 480
#define CAM_RES_CHANNELS 3

//camera object of the 1394CMU driver
C1394Camera Camera;


 int main( int argc, char** argv )
{
    // several checks if camera is connected and can be initialized as well as setting
    // of camera properties and starting of image aquisition
    if(Camera.CheckLink() != CAM_SUCCESS)
    {
            printf("
No Link.");
            return -1;
    }
    if(Camera.InitCamera() != CAM_SUCCESS)
    {
            printf("
Initialization failed.");
            return -1;
    }
    if(Camera.SetVideoFormat(0) != CAM_SUCCESS)
    {
            printf("
Could not set video format.");
            return -1;
    }
    if(Camera.SetVideoMode(5) != CAM_SUCCESS)
    {
            printf("
Could not set video mode.");
            return -1;
    }
    if(Camera.SetVideoFrameRate(4) != CAM_SUCCESS)
    {
            printf("
Could not set frame rate.");
            return -1;
    }
    if(Camera.StartImageAcquisition() != CAM_SUCCESS)
    {
            printf("
Could not start image acquisation.");
            return -1;
    }

  //give camera a chance to inititalize and adjust before starting frame aquisition
    cvWaitKey(1000); 

    cvNamedWindow( "Source",1);     

    IplImage *Image = cvCreateImage( cvSize(CAM_RES_WIDTH, CAM_RES_HEIGHT), 8,      CAM_RES_CHANNELS);

  //aquire frame from camera
    if(Camera.AcquireImage() != CAM_SUCCESS)
    {       
            printf("
Could not acquire image.");
            return 1;
    }

  //read frame from internal CMU1394 storage to buffer
    Camera01.getRGB((unsigned char*)(Image->imageData), (CAM_RES_WIDTH*CAM_RES_HEIGHT*3));

    cvShowImage("Source", Image);
    cvWaitKey(0);

    Camera.StopImageCapture();
    cvReleaseImage(&Image);
    cvDestroyWindow("Source");
}
问题回答

你们如何汇编和如何将方案联系起来? 或许你在链接时间忘记了一些图书馆,例如<代码>-l opencv或任何东西。 图书馆秩序。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签