Menu

No such file or diretory

TexasOwl
2009-02-11
2012-09-26
  • TexasOwl

    TexasOwl - 2009-02-11

    I am trying to rund an example from the boo "Learning Open CV" by Bradski.

    I have down loaded the library and other files under c:/Dev-C++/OpenCV.

    I am trying to run the following file:

    include <c:/Dev-Cpp/OpenCV/otherlib/highgui/highgui.h>

    int main( int argc, char* argv ) {
    IplImage
    img = cvLoadImage( argv[1] );
    cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE );
    cvShowImage( “Example1”, img );
    cvWaitKey(0);
    cvReleaseImage( &img );
    cvDestroyWindow( “Example1” );
    }

    I get the following error :
    56 C:\Dev-Cpp\My Programs\Image load.cpp:1
    c:/Dev-Cpp/OpenCV/otherlib/highgui/highgui.h: No such file or directory.

    I am running version 4.9.8.0 on windows XP

     
  • anonymous nobody

    Why don't you add C:\Dev-Cpp\OpenCV\otherlib as a directory to search for
    headers?

    The reason, by the way, is angled brackets <> only search within given header
    directories. Use quotes "":

    #include "C:\Dev-Cpp\OpenCV\otherlib\highgui\highgui.h"
    
     
  • cpns

    cpns - 2010-01-30

    Well does the file "c:/Dev-Cpp/OpenCV/otherlib/highgui/highgui.h" exist or
    not!? (The answer is no by the way). Find the file, and modify the path
    accordingly.

    Always post the log from the Compile Log" tab, not the "Compiler" tab - that
    filters out important diagnostic information. And use code tag mark-up for
    code.

     
  • laxman varada

    laxman varada - 2010-08-16

    hi,

    Always post the log from the Compile Log" tab, not the "Compiler" tab - that
    filters out important diagnostic information. And use code tag mark-up for
    code.

    regards,
    phe9oxis,
    http://www.guidebuddha.com

     

Log in to post a comment.