Results 1 to 3 of 3

Thread: Install opencv on ubuntu error, please help

  1. #1
    Join Date
    Jun 2009
    Location
    AKL | New Zealand
    Posts
    62
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Install opencv on ubuntu error, please help

    hi,

    i tried to install opencv on my ubuntu system follow by:
    http://opencv.willowgarage.com/wiki/InstallGuide_Linux

    i got two errors when i tried to use "make" to build the library:

    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual IplImage* CvCapture_FFMPEG::retrieveFrame(int)’:
    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp:549: error: ‘img_convert’ was not declared in this scope
    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvVideoWriter_FFMPEG::writeFrame(const IplImage*)’:
    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp:1044: error: ‘img_convert’ was not declared in this scope
    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvVideoWriter_FFMPEG:pen(const char*, int, double, CvSize, bool)’:
    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp:1180: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:873)
    /home/cz/Webcam/trunk/opencv/src/highgui/cvcap_ffmpeg.cpp:1180: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:873)
    make[2]: *** [src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o] Error 1
    make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
    make: *** [all] Error 2
    i googled a whole day yesterday, it seen like that ffmpeg recently change their file structure, but opencv did not follow the change.

    how can i solve the problem? can anyone help me, please?
    thanks in advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Install opencv on ubuntu error, please help

    Remember that you are not limited to the ffmpeg package provided in the official Ubuntu repositories. How about downloading a compatible version, compiling and installing it yourself?
    J-P Nurmi

  3. #3
    Join Date
    Jul 2009
    Posts
    12
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Install opencv on ubuntu error, please help

    Quote Originally Posted by cooper View Post
    hi,
    i tried to install opencv on my ubuntu system follow by:
    http://opencv.willowgarage.com/wiki/InstallGuide_Linux
    Use Synaptic it's so easier

Similar Threads

  1. how to install QT on Ubuntu?
    By waxwings in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd July 2009, 10:34
  2. Replies: 0
    Last Post: 14th May 2009, 11:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.