Originally Posted by
mc4man
MPlayer SVN-r29241
If you also replace the libswscale folder in mplayer using the one from the 0.5 release then the build succeeds
(( 'replace' meant merge. not rm & cp
(again may be unintended consequences, could be narrowed down to a file(s) and or line(s)
http://www.ffmpeg.org/download.html
(at very bottom of page
(interesting that there is nothing in the libswscale folder in ffmpeg-mt source
Nope, still doesn't work for me.
Step-by-step description of what I did:
1. Get the current SVN version of mplayer (r 29241), ffmpeg, ffmpeg-mt
Code:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
git clone git://gitorious.org/ffmpeg/ffmpeg-mt.git
2. Replace the folders in the mplayer directory with the ones from ffmpeg-mt
Code:
cd mplayer
rm -rf libavcodec libavformat libavutil
cp -a ../ffmpeg-mt/libavcodec .
cp -a ../ffmpeg-mt/libavformat .
cp -a ../ffmpeg-mt/libavutil .
3. Use the libswscale stuff from ffmpeg sources and "merge" it into my mplayer/libswscale folder
Code:
cd ..
cp -fr ffmpeg/libswscale/* mplayer/libswscale/
4. Configure and Make mplayer
Code:
cd mplayer
./configure --codecsdir=/usr/lib/codecs --confdir=/etc/mplayer --enable-gui --prefix=/usr
make
make produces the same error.
Code:
swscale.c: In function 'sws_format_name':
swscale.c:482: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:482: error: (Each undeclared identifier is reported only once
swscale.c:482: error: for each function it appears in.)
swscale.c:484: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:486: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:488: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:490: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c:492: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
In file included from swscale.c:1196:
swscale_template.c: In function 'yuv2yuv1_MMX2':
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c: In function 'yuv2packed2_MMX2':
swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules
swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type
swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules
swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type
swscale_template.c: In function 'hScale_MMX2':
swscale_template.c:2244: warning: initialization discards qualifiers from pointer target type
swscale_template.c: In function 'swScale_MMX2':
swscale_template.c:2946: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2947: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2952: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2953: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2959: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2960: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2969: warning: cast from pointer to integer of different size
swscale_template.c:2975: warning: cast from pointer to integer of different size
swscale_template.c:2983: warning: cast from pointer to integer of different size
swscale_template.c:2998: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale_template.c:2998: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale_template.c:2998: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale_template.c:2998: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale_template.c:2998: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale_template.c:2998: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale_template.c: In function 'sws_init_swScale_MMX2':
swscale_template.c:3155: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale_template.c:3156: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale_template.c:3157: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale_template.c:3158: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale_template.c:3159: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale_template.c:3160: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c: In function 'getSwsFunc':
swscale.c:1795: warning: unused variable 'flags'
swscale.c: In function 'planarCopy':
swscale.c:2166: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:2166: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:2166: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:2166: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:2166: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c:2166: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale.c: In function 'getSubSampleFactors':
swscale.c:2223: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:2224: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:2243: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:2244: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale.c:2249: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:2250: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c: In function 'sws_setColorspaceDetails':
swscale.c:2288: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:2288: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:2288: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:2288: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:2288: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c:2288: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale.c: In function 'sws_getColorspaceDetails':
swscale.c:2336: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:2336: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:2336: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:2336: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:2336: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c:2336: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale.c: In function 'sws_getContext':
swscale.c:2408: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:2408: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:2408: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:2408: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:2408: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c:2408: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale.c: In function 'reset_ptr':
swscale.c:2917: error: 'PIX_FMT_YUV420PLE' undeclared (first use in this function)
swscale.c:2917: error: 'PIX_FMT_YUV422PLE' undeclared (first use in this function)
swscale.c:2917: error: 'PIX_FMT_YUV444PLE' undeclared (first use in this function)
swscale.c:2917: error: 'PIX_FMT_YUV420PBE' undeclared (first use in this function)
swscale.c:2917: error: 'PIX_FMT_YUV422PBE' undeclared (first use in this function)
swscale.c:2917: error: 'PIX_FMT_YUV444PBE' undeclared (first use in this function)
swscale.c: In function 'sws_getCachedContext':
swscale.c:3404: warning: assignment discards qualifiers from pointer target type
make[1]: *** [swscale.o] Error 1
make[1]: Leaving directory `/home/ingo/SOURCE/mplayer/libswscale'
make: *** [libswscale/libswscale.a] Error 2
@mc4man: Is this what you did as well and where it worked for you???
The funny thing is though that it works if I do not replace the three libav* folders with the stuff from ffmpeg-mt (step 2). So I don't actually think it' just related to libswscale but (also) to something else.
Fresh ideas are welcome ...
Bookmarks