2016년 7월 1일 금요일

Problems compiling motion 3.2.12 on Fedora 24

Note: On July 17, 2016 Leigh Scott created a new rpmfusion package motion-3.3.0.trunkREV561-2.fc24.x86_64 for motion webcam which contains a patch for ffmpeg-3. You can also check out the rpmfusion/motion repository on github to see the changes which must be made to ffmpeg.c and configure.in for motion to properly compile.

https://github.com/rpmfusion/motion/blob/master/api-update_libav10.patch
https://github.com/rpmfusion/motion/blob/master/api-update_ffmpeg-2.9.patch

============================================

I recently upgraded from f23 to f24 as soon as the latter was released. There are quite a few packages from the RPM Fusion community repo which are not yet available on F24 that are available on F23.

When compiling motion the first issue I encountered after running
./configure
make

------------------
fatal error: linux/videodev.h: No such file or directory
compilation terminated.

I fixed this problem by installing fedora package libv4l-devel and v4l-utils-devel-tools

Then I created the following symlink:

sudo ln -s /usr/include/libv4l1-videodev.h   /usr/include/linux/videodev.h 

I tried to compile again:
./configure
make clean
make

The next problem, however, is that motion looks for PIX_FMT_YUV420P in ffmpeg's pixfmt.h header file provided by ffmpeg-3.0.2-1.fc24.x86_64 from RPM Fusion but this variable has been renamed to AV_PIX_FMT_YUV420P 

I need to find which files to edit with new variable names in order to compile motion... 



References: