(Solved) Fix opencv compilation in vlc-3.0.0 for archlinux

*nix specific usage questions
nokangaroo
Blank Cone
Blank Cone
Posts: 29
Joined: 30 Dec 2010 17:11

(Solved) Fix opencv compilation in vlc-3.0.0 for archlinux

Postby nokangaroo » 11 Feb 2015 20:27

vlc-3.0-opencv.patch:

Code: Select all

diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c index 0ca54a3..ce0d900 100644 --- a/modules/video_filter/opencv_wrapper.c +++ b/modules/video_filter/opencv_wrapper.c @@ -39,8 +39,8 @@ #include <vlc_image.h> #include "filter_picture.h" -#include <cxcore.h> -#include <cv.h> +#include <opencv/cxcore.h> +#include <opencv/cv.h> /***************************************************************************** * Local prototypes
also add

Code: Select all

export OPENCV_CFLAGS='-I /usr/include/opencv' export OPENCV_LIBS=`pkg-config --libs opencv`
to your compiler flags.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: (Solved) Fix opencv compilation in vlc-3.0.0 for archlinux

Postby Jean-Baptiste Kempf » 12 Feb 2015 11:44

Works fine on my Arch.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

nokangaroo
Blank Cone
Blank Cone
Posts: 29
Joined: 30 Dec 2010 17:11

Re: (Solved) Fix opencv compilation in vlc-3.0.0 for archlinux

Postby nokangaroo » 12 Feb 2015 23:05

Sorry, it does not work for me without the patch; I just tried it again:

video_filter/opencv_wrapper.c:42:20: fatal error: cxcore.h: No such file or directory
#include <cxcore.h>
^
compilation terminated.
Makefile:12228: recipe for target 'video_filter/opencv_wrapper.lo' failed
make[4]: *** [video_filter/opencv_wrapper.lo] Error 1
make[4]: Leaving directory '/home/BUILD/vlc-3.0/modules'
Makefile:15234: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/BUILD/vlc-3.0/modules'
Makefile:6956: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/BUILD/vlc-3.0/modules'
Makefile:2260: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/BUILD/vlc-3.0'
Makefile:2145: recipe for target 'all' failed
make: *** [all] Error 2

Exporting the variables is not enough.
After reapplying the patch the compilation finishes.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests