pnm_parser.o vc1_parser.o dump_extradata_bsf.o h264_mp4toannexb_bsf.o imx_dump_header_bsf.o mjpega_dump_header_bsf.o movsub_bsf.o mp3_header_compress_bsf.o mp3_header_decompress_bsf.o noise_bsf.o remove_extradata_bsf.o armv4l/dsputil_arm.o armv4l/mpegvideo_arm.o armv4l/jrevdct_arm.o armv4l/simple_idct_arm.o armv4l/dsputil_arm_s.o -L"/home/ubuntuuser/vlc-make/ffmpeg"/libavutil -lavutil -lm -lws2_32
/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.1.0/../../../../arm-mingw32ce/bin/ld: cannot find -lws2_32
collect2: ld returned 1 exit status
make: *** [avcodec-51.dll] エラー 1
ubuntuuser@NEWWIND11ubuntu:~/vlc-make/ffmpeg/libavcodec$
utils.c:36: warning: 'AVFrac' is deprecated
utils.c:37: warning: 'AVFrac' is deprecated
utils.c: In function 'av_open_input_file':
utils.c:468: error: 'EILSEQ' undeclared (first use in this function)
utils.c:468: error: (Each undeclared identifier is reported only once
utils.c:468: error: for each function it appears in.)
utils.c:475: error: 'EDOM' undeclared (first use in this function)
utils.c: In function 'av_read_frame_internal':
utils.c:857: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:857: warning: format '%I64d' expects type 'int', but argument 6 has type 'int64_t'
utils.c:882: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:882: warning: format '%I64d' expects type 'int', but argument 6 has type 'int64_t'
utils.c: In function 'av_seek_frame_binary':
utils.c:1137: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:1157: warning: 'I' flag used with '%x' printf format
utils.c:1157: warning: format '%I64x' expects type 'unsigned int', but argument 4 has type 'int64_t'
utils.c:1157: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:1173: warning: 'I' flag used with '%x' printf format
utils.c:1173: warning: format '%I64x' expects type 'unsigned int', but argument 4 has type 'int64_t'
utils.c:1173: warning: 'I' flag used with '%x' printf format
utils.c:1173: warning: format '%I64x' expects type 'unsigned int', but argument 5 has type 'int64_t'
utils.c:1173: warning: format '%I64d' expects type 'int', but argument 6 has type 'int64_t'
utils.c: In function 'av_gen_search':
utils.c:1196: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:1242: warning: 'I' flag used with '%x' printf format
utils.c:1242: warning: format '%I64x' expects type 'unsigned int', but argument 4 has type 'int64_t'
utils.c:1242: warning: 'I' flag used with '%x' printf format
utils.c:1242: warning: format '%I64x' expects type 'unsigned int', but argument 5 has type 'int64_t'
utils.c:1242: warning: format '%I64d' expects type 'int', but argument 6 has type 'int64_t'
utils.c:1242: warning: format '%I64d' expects type 'int', but argument 7 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 4 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 6 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 7 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 8 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 9 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 10 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 11 has type 'int64_t'
utils.c:1271: warning: format '%I64d' expects type 'int', but argument 12 has type 'int64_t'
utils.c:1297: warning: 'I' flag used with '%x' printf format
utils.c:1297: warning: format '%I64x' expects type 'unsigned int', but argument 4 has type 'int64_t'
utils.c:1297: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c:1297: warning: format '%I64d' expects type 'int', but argument 6 has type 'int64_t'
utils.c:1297: warning: format '%I64d' expects type 'int', but argument 7 has type 'int64_t'
utils.c: In function 'compute_pkt_fields2':
utils.c:2365: warning: format '%I64d' expects type 'int', but argument 4 has type 'int64_t'
utils.c:2365: warning: format '%I64d' expects type 'int', but argument 5 has type 'int64_t'
utils.c: In function 'parse_date':
utils.c:2768: warning: cast discards qualifiers from pointer target type
utils.c: At top level:
utils.c:3058: warning: 'AVFrac' is deprecated
utils.c:3076: warning: 'AVFrac' is deprecated
make[1]: *** [utils.o] エラー 1
make: *** [lib] エラー 2
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.216
diff -u -r1.216 configure
--- configure 29 Nov 2005 21:12:30 -0000 1.216
+++ configure 2 Dec 2005 23:52:42 -0000
@@ -26,6 +26,7 @@
echo " --enable-xvid enable XviD support via xvidcore [default=no]"
echo " --enable-x264 enable H.264 encoding via x264 [default=no]"
echo " --enable-mingw32 enable MinGW native/cross Windows compile"
+echo " --enable-mingwce enable MinGW native/cross WinCE compile"
echo " --enable-a52 enable GPLed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
echo " --enable-dts enable GPLed DTS support [default=no]"
@@ -199,6 +201,7 @@
pp="no"
shared_pp="no"
mingw32="no"
+mingwce="no"
cygwin="no"
os2="no"
lshared="no"
@@ -534,6 +538,8 @@
;;
--enable-mingw32) mingw32="yes"
;;
+ --enable-mingwce) mingwce="yes"
+ ;;
--enable-shared) lshared="yes"
;;
--disable-debug) debug="no"
@@ -847,7 +855,7 @@
$cc -o $TMPE $TMPC 2> /dev/null || mmi="no"
fi
-if test "$mingw32" = "yes" ; then
+if test "$mingw32" = "yes" -o "$mingwce" = "yes"; then
v4l="no"
bktr="no"
audio_oss="no"
@@ -855,6 +863,9 @@
dc1394="no"
ffserver="no"
network="no"
+if test "$mingw32" = "yes"; then
+ protocols="no"
+fi
SLIBPREF=""
SLIBSUF=".dll"
EXESUF=".exe"
@@ -1621,6 +1632,16 @@
echo "#endif" >> $TMPH
fi
+if test "$mingwce" = "yes" ; then
+ echo "#define CONFIG_WIN32 1" >> $TMPH
+ echo "CONFIG_WIN32=yes" >> config.mak
+ echo "#define CONFIG_WINCE 1" >> $TMPH
+ echo "CONFIG_WINCE=yes" >> config.mak
+ echo "#ifndef __MINGW32__" >> $TMPH
+ echo "#define __MINGW32__ 1" >> $TMPH
+ echo "#endif" >> $TMPH
+fi
+
if test "$os2" = "yes" ; then
echo "#define CONFIG_OS2 1" >> $TMPH
echo "CONFIG_OS2=yes" >> config.mak
Index: libavformat/os_support.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/os_support.c,v
retrieving revision 1.4
diff -u -r1.4 os_support.c
--- libavformat/os_support.c 9 Nov 2004 17:27:33 -0000 1.4
+++ libavformat/os_support.c 2 Dec 2005 23:53:22 -0000
@@ -18,7 +18,8 @@
*/
#include "config.h"
#include "avformat.h"
-#ifdef CONFIG_WIN32
+#if defined(CONFIG_WINCE)
+#elif defined(CONFIG_WIN32)
#include
#include
#elif defined(CONFIG_OS2)
@@ -36,7 +37,9 @@
*/
int64_t av_gettime(void)
{
-#ifdef CONFIG_WIN32
+#if defined(CONFIG_WINCE)
+ return timeGetTime() * int64_t_C(1000);
+#elif defined(CONFIG_WIN32)
struct timeb tb;
_ftime(&tb);
return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000);
@@ -47,6 +50,7 @@
#endif
}
+#if !defined(CONFIG_WINCE)
#if !defined(HAVE_LOCALTIME_R)
struct tm *localtime_r(const time_t *t, struct tm *tp)
{
@@ -59,3 +63,4 @@
return tp;
}
#endif /* !defined(HAVE_LOCALTIME_R) */
+#endif /* !defined(CONFIG_WINCE) */
Index: libavformat/utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/utils.c,v
retrieving revision 1.168
diff -u -r1.168 utils.c
--- libavformat/utils.c 4 Nov 2005 23:50:11 -0000 1.168
+++ libavformat/utils.c 2 Dec 2005 23:53:26 -0000
@@ -2734,6 +2731,7 @@
* S+[.m...]
* @endcode
*/
+#ifndef CONFIG_WINCE
int64_t parse_date(const char *datestr, int duration)
{
const char *p;
@@ -2841,6 +2839,7 @@
}
return negative ? -t : t;
}
+#endif /* CONFIG_WINCE */
/**
* Attempts to find a specific tag in a URL.
Index: libavutil/common.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/common.h,v
retrieving revision 1.154
diff -u -r1.154 common.h
--- libavutil/common.h 1 Dec 2005 18:20:15 -0000 1.154
+++ libavutil/common.h 2 Dec 2005 23:53:26 -0000
@@ -172,6 +172,11 @@
# define snprintf _snprintf
# define vsnprintf _vsnprintf
+
+# ifdef CONFIG_WINCE
+# define perror(a)
+# endif
+
# endif
/* CONFIG_WIN32 end */
@@ -253,6 +258,9 @@
# endif
# endif /* !CONFIG_WIN32 */
+# ifdef CONFIG_WINCE
+# define abort()
+# endif
# define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)