Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#9934 closed defect (duplicate)

FFmpeg Packages missing libswscale include files.

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Hi,all.
I try to compile the OpenCV with Openwrt toolchain,
and I found the FFmpeg packages missing the libswscale include files.

here is some erro output:

ld_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/precomp.hpp -Winvalid-pch -o CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o -c /home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:105:34: error: libswscale/swscale.h: No such file or directory
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp: In member function 'virtual IplImage* CvCapture_FFMPEG::retrieveFrame(int)':
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:601: error: 'SWS_BICUBIC' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:602: error: 'sws_getContext' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:607: error: 'sws_scale' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:608: error: 'sws_freeContext' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp: In member function 'virtual bool CvVideoWriter_FFMPEG::writeFrame(const IplImage*)':
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1110: error: 'SWS_BICUBIC' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1111: error: 'sws_getContext' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1116: error: 'sws_scale' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1120: error: 'sws_freeContext' was not declared in this scope
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp: In member function 'virtual bool CvVideoWriter_FFMPEG::open(const char*, int, double, CvSize, bool)':
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1241: warning: 'AVFormatContext* av_alloc_format_context()' is deprecated (declared at /home/lintel/openwrt-arm/trunk/openwrt/staging_dir/target-arm_uClibc-0.9.30.1_eabi/usr/include/libavformat/avformat.h:873)
/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1241: warning: 'AVFormatContext* av_alloc_format_context()' is deprecated (declared at /home/lintel/openwrt-arm/trunk/openwrt/staging_dir/target-arm_uClibc-0.9.30.1_eabi/usr/include/libavformat/avformat.h:873)
make[6]: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o] Error 1
make[6]: Leaving directory `/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0'
make[5]:
* [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[5]: Leaving directory `/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0'
make[3]:
* /home/lintel/openwrt-arm/trunk/openwrt/build_dir/target-arm_uClibc-0.9.30.1_eabi/OpenCV-2.2.0/.built Error 2
make[3]: Leaving directory `/home/lintel/openwrt-arm/trunk/openwrt/package/opencv'
make[2]: * [package/opencv/compile] Error 2
make[2]: Leaving directory `/home/lintel/openwrt-arm/trunk/openwrt'
make[1]:
* /home/lintel/openwrt-arm/trunk/openwrt/staging_dir/target-arm_uClibc-0.9.30.1_eabi/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/lintel/openwrt-arm/trunk/openwrt'
make: * [world] 错误 2

error: libswscale/swscale.h: No such file or directory

and I make a patch to fix this errors.

Index: Makefile
===================================================================
--- Makefile (版本 27969)
+++ Makefile (工作副本)
@@ -255,6 +255,7 @@

$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/libav{codec,device,format,util} $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/include/libpostproc $(1)/usr/include/

+ $(CP) $(PKG_INSTALL_DIR)/usr/include/libswscale $(1)/usr/include/

$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libav{codec,device,format,util}.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpostproc.{a,so*} $(1)/usr/lib/

Thanks.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by nico

  • Resolution set to duplicate
  • Status changed from new to closed

See #9447

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.