new site / source question

Discussion of XBMC4XBOX development.
Post Reply
plugh
Posts: 6
Joined: Tue Aug 28, 2012 2:33 pm

new site / source question

Post by plugh »

Bummer about the old site & forum :(
Thanks for bringing up the new site & forum :)

Veetle.com has made a change that has broken xbmc playback. Based upon some sleuthing over at xbmc forum, change has possibly been identified.

Where can I find sources for the 'avformat-##.dll' build used in xbmc4xbox?

Also, are current sources still at sourceforge? I see a 3.2 announced here, but only 3.1 tag in svn.

Thanks!
User avatar
BuZz
Site Admin
Posts: 1891
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 66 times
Been thanked: 423 times
Contact:

Re: new site / source question

Post by BuZz »

plugh wrote:Bummer about the old site & forum :(
Thanks for bringing up the new site & forum :)

Veetle.com has made a change that has broken xbmc playback. Based upon some sleuthing over at xbmc forum, change has possibly been identified.

Where can I find sources for the 'avformat-##.dll' build used in xbmc4xbox?

Also, are current sources still at sourceforge? I see a 3.2 announced here, but only 3.1 tag in svn.

Thanks!
click the development link above.
plugh
Posts: 6
Joined: Tue Aug 28, 2012 2:33 pm

Re: new site / source question

Post by plugh »

click the development link above
Duh - thanks!

But where / how do I find the source base, toolchain, build options, etc used to build the avformat-##.dll? I'm poking around the ffmpeg sources areas, but am having trouble making the mental source->binary connection between them and the dll in your xbmc4xbox svn.

Or to put it another way, how do I recreate a / the specific version of this dll in your svn?

Thanks again!
User avatar
BuZz
Site Admin
Posts: 1891
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 66 times
Been thanked: 423 times
Contact:

Re: new site / source question

Post by BuZz »

plugh wrote:
click the development link above
Duh - thanks!

But where / how do I find the source base, toolchain, build options, etc used to build the avformat-##.dll? I'm poking around the ffmpeg sources areas, but am having trouble making the mental source->binary connection between them and the dll in your xbmc4xbox svn.

Or to put it another way, how do I recreate a / the specific version of this dll in your svn?
you need to get mingw installed. I made an installer for xbmc4xbox that sets it up as we like in - /tools/MingwBuildEnvironment

then you can build the library using the xbmc/cores/dvdplayer/Codecs/ffmpeg/make-xbmc-lib.sh script.
plugh
Posts: 6
Joined: Tue Aug 28, 2012 2:33 pm

Re: new site / source question

Post by plugh »

BuZz wrote:
plugh wrote:Or to put it another way, how do I recreate a / the specific version of this dll in your svn?
you need to get mingw installed. I made an installer for xbmc4xbox that sets it up as we like in - /tools/MingwBuildEnvironment
Awesome!!

Are the version installed also "OK" for rebuilding mplayer.dll (MingW 4.1.0, MSYS 1.0.10, GCC 3.4.4 as per old wiki)?

Losing the old wiki (and forum) really hurts. However I was able to find a few key items via Internet Archive. Hope they help others...

Development Notes - XBMC
Basic overview of the XBMC source code - XBMC
HOW-TO compile XBMC for Xbox from source code - XBMC
HOW-TO compile mplayer.dll from source code - XBMC
DVDPlayer - XBMC
XBMC Online Manual - XBMC

Finally (for now) what is the relationship between:
xbmc/cores/dvdplayer/Codecs/ffmpeg and vendor/ffmpeg/...
Vendor is upstream snapshots? .vs. cores is instance used for xbmc build?
And I guess docs/sources/dvdplayer/ffmpeg is no longer used??

(It's been a couple years since I last poked at this stuff...)

Thanks!
User avatar
BuZz
Site Admin
Posts: 1891
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 66 times
Been thanked: 423 times
Contact:

Re: new site / source question

Post by BuZz »

[quote="plugh"
Are the version installed also "OK" for rebuilding mplayer.dll (MingW 4.1.0, MSYS 1.0.10, GCC 3.4.4 as per old wiki)?

Finally (for now) what is the relationship between:
xbmc/cores/dvdplayer/Codecs/ffmpeg and vendor/ffmpeg/...
Vendor is upstream snapshots? .vs. cores is instance used for xbmc build?
And I guess docs/sources/dvdplayer/ffmpeg is no longer used??

(It's been a couple years since I last poked at this stuff...)

Thanks![/quote]

i've not touched mplayer or building the dll. I assume it should work.

the vendor branch is the vanilla versions, tagged etc, for making merging in new versions slightly easier - http://svnbook.red-bean.com/en/1.1/ch07s05.html

docs/sources/dvdplayer/ffmpeg is defunct yeh. should be deleted i guess.
plugh
Posts: 6
Joined: Tue Aug 28, 2012 2:33 pm

Re: new site / source question

Post by plugh »

sigh, it's never simple... help??

Code: Select all

$ ./make-xbmc-lib.sh all
Cleaning ...
Configuring ...
--extra-cflags="-D_XBOX -msse -mfpmath=sse -pipe" --extra-ldflags="-Wl,--enable-
auto-import"    --cpu=pentium3   --enable-gpl   --enable-shared   --disable-stat
ic   --enable-w32threads   --enable-memalign-hack   --enable-small   --enable-zl
ib   --disable-debug     --disable-doc   --disable-ffmpeg   --disable-ffplay   -
-disable-ffprobe   --disable-ffserver   --disable-avconv     --disable-muxers
--enable-muxer=spdif,adts   --disable-encoders   --disable-devices   --disable-b
sfs     --enable-postproc     --disable-filters     --disable-protocol=rtmp,rtmp
e,rtmps,rtmpt,rtmpte     --disable-vdpau   --disable-vaapi   --disable-dxva2
 --disable-altivec   --disable-amd3dnow   --disable-amd3dnowext   --disable-ssse
3   --disable-avx   --disable-armv5te   --disable-armv6   --disable-armv6t2   --
disable-armvfp   --disable-iwmmxt   --disable-mmi   --disable-neon   --disable-v
is     --disable-decoders     --enable-decoder=mpeg4,msmpeg4v1,msmpeg4v2,msmpeg4
v3     --enable-decoder=vp6,vp6a,vp6f     --enable-decoder=mp1,mp2,mp3,mpegvideo
,mpeg1video,mpeg2video     --enable-decoder=mjpeg,mjpegb,rawvideo     --enable-d
ecoder=wmav1,wmav2,wmapro,wmv1,wmv2,wmv3     --enable-decoder=aac,ac3,dca,dvbsub
,dvdsub,flv,h263,h264,rtp,vorbis         --disable-demuxers     --enable-demuxer
=mp1,mp2,mp3,mpegps,mpegts,mpegtsraw,mpegvideo     --enable-demuxer=aac,ac3,dts,
asf,avi,flv,h263,h264,ogg,matroska,mov     --enable-demuxer=nuv,sdp,rtsp,appleht
tp
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

Mangler@gx270d-xp /d/exp1_dir/31085/xbmc4xbox/xbmc/cores/dvdplayer/Codecs/ffmpeg

$ gcc -v
sh: gcc: command not found

Mangler@gx270d-xp /d/exp1_dir/31085/xbmc4xbox/xbmc/cores/dvdplayer/Codecs/ffmpeg

$ ls /c/mingw/bin
addr2line.exe  gcov.exe            libmpfr-1.dll          pthreadGC2.dll
ar.exe         gprof.exe           libssp-0.dll           quserex-test.exe
as.exe         ld.bfd.exe          libz-1.dll             ranlib.exe
c++filt.exe    ld.exe              mingw-get.exe          readelf.exe
cpp.exe        libgcc_s_dw2-1.dll  mingw32-gcc-4.5.2.exe  size.exe
dlltool.exe    libgmp-10.dll       mingw32-gcc.exe        strings.exe
dllwrap.exe    libgomp-1.dll       mingwm10.dll           strip.exe
elfedit.exe    libiconv-2.dll      nm.exe                 windmc.exe
gcc.exe        libintl-8.dll       objcopy.exe            windres.exe
gccbug         libmpc-2.dll        objdump.exe

Mangler@gx270d-xp /d/exp1_dir/31085/xbmc4xbox/xbmc/cores/dvdplayer/Codecs/ffmpeg

$ /c/mingw/bin/gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r
untime-libs --disable-werror --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.5.2 (GCC)

Mangler@gx270d-xp /d/exp1_dir/31085/xbmc4xbox/xbmc/cores/dvdplayer/Codecs/ffmpeg
$ set
!::='::\'
!C:='C:\MinGW'
ALLUSERSPROFILE='C:\Documents and Settings\All Users'
APPDATA='C:\Documents and Settings\Mangler\Application Data'
BASH=/usr/bin/sh
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="1" [2]="17" [3]="1" [4]="release" [5]="i686-pc-msys"
)
BASH_VERSION='3.1.17(1)-release'
COLUMNS=80
COMMONPROGRAMFILES='C:\Program Files\Common Files'
COMPUTERNAME=GX270D-XP
COMSPEC='C:\WINDOWS\system32\cmd.exe'
DEVENVDIR='C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE'
DIRSTACK=()
DJGPP='C:\DJGPP\DJGPP.ENV'
DXSDK_DIR='C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\'
EUID=500
FP_NO_HOST_CHECK=NO
FRAMEWORKDIR='C:\WINDOWS\Microsoft.NET\Framework'
FRAMEWORKSDKDIR='C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1'
FRAMEWORKVERSION=v1.1.4322
GROUPS=()
HISTFILE=/home/Mangler/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/Mangler
HOMEDRIVE=C:
HOMEPATH='\'
HOSTNAME=gx270d-xp
HOSTTYPE=i686
IFS='
'
INCLUDE='C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE;C
:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE;C:\Program Files\M
icrosoft Visual Studio .NET 2003\VC7\PlatformSDK\include\prerelease;C:\Program F
iles\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include;C:\Program Files\
Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program Files\Microsoft Vi
sual Studio .NET 2003\SDK\v1.1\include\'
LIB='C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;C:\Progra
m Files\Microsoft Visual Studio .NET 2003\VC7\LIB;C:\Program Files\Microsoft Vis
ual Studio .NET 2003\VC7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft V
isual Studio .NET 2003\VC7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Stu
dio .NET 2003\SDK\v1.1\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SD
K\v1.1\Lib\'
LINES=25
LOGNAME=Mangler
LOGONSERVER='\\GX270D-XP'
MACHTYPE=i686-pc-msys
MAILCHECK=60
MAKE_MODE=unix
MSVCDIR='C:\Program Files\Microsoft Visual Studio .NET 2003\VC7'
MSYSCON=sh.exe
MSYSTEM=MINGW32
NUMBER_OF_PROCESSORS=2
OLDPWD=/d/exp1_dir/31085/xbmc4xbox
OPTERR=1
OPTIND=1
OS=Windows_NT
OSTYPE=msys
PATH='.:/usr/local/bin:/mingw/bin:/bin:/c/Program Files/Microsoft Visual Studio
.NET 2003/Common7/IDE:/c/Program Files/Microsoft Visual Studio .NET 2003/VC7/BIN
:/c/Program Files/Microsoft Visual Studio .NET 2003/Common7/Tools:/c/Program Fil
es/Microsoft Visual Studio .NET 2003/Common7/Tools/bin/prerelease:/c/Program Fil
es/Microsoft Visual Studio .NET 2003/Common7/Tools/bin:/c/Program Files/Microsof
t Visual Studio .NET 2003/SDK/v1.1/bin:/c/WINDOWS/Microsoft.NET/Framework/v1.1.4
322:/c/Program Files/Microsoft Xbox SDK/xbox/bin:/c/WINDOWS/system32:/c/WINDOWS:
/c/WINDOWS/System32/Wbem:/c/Program Files/TortoiseSVN/bin:/c/Program Files/Suppo
rt Tools/:/c/DJGPP/BIN:.'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PIPESTATUS=([0]="127")
POSIXLY_CORRECT=y
PPID=1
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='x86 Family 15 Model 2 Stepping 9, GenuineIntel'
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0209
PROGRAMFILES='C:\Program Files'
PROMPT='$P$G'
PS1='\[\033]0;$MSYSTEM:\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
PS2='> '
PS4='+ '
PWD=/d/exp1_dir/31085/xbmc4xbox/xbmc/cores/dvdplayer/Codecs/ffmpeg
SESSIONNAME=Console
SHELL=/bin/sh
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:moni
tor:posix
SHLVL=1
SYSTEMDRIVE=C:
SYSTEMROOT='C:\WINDOWS'
TEMP=/tmp
TERM=cygwin
TMP=/tmp
UID=500
USERDOMAIN=GX270D-XP
USERNAME=Mangler
USERPROFILE='C:\Documents and Settings\Mangler'
VCINSTALLDIR='C:\Program Files\Microsoft Visual Studio .NET 2003'
VS71COMNTOOLS='C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\
'
VSINSTALLDIR='C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE'
WD='C:\MinGW\msys\1.0\\bin\'
WINDIR='C:\WINDOWS'
XDK='C:\Program Files\Microsoft Xbox SDK'
_=path
i='/etc/profile.d/*.sh'

Mangler@gx270d-xp /d/exp1_dir/31085/xbmc4xbox/xbmc/cores/dvdplayer/Codecs/ffmpeg
User avatar
BuZz
Site Admin
Posts: 1891
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 66 times
Been thanked: 423 times
Contact:

Re: new site / source question

Post by BuZz »

guess it isn't pathed correctly ? should just work I would have thought - try adding c:\mingw\bin to system environment variables (control panel/system/advanced/environment variables).
plugh
Posts: 6
Joined: Tue Aug 28, 2012 2:33 pm

Re: new site / source question

Post by plugh »

That's why I included the 'set' output, to show the msys mangled 'path', etc.
But even more confusing, System Properties control panel system environment is

Code: Select all

C:\Program Files\Microsoft Xbox SDK\xbox\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Support Tools\
but a dos prompt shows

Code: Select all

PATH=C:\Program Files\Microsoft Xbox SDK\xbox\bin;C:\WINDOWS\system32;C:\WINDOWS
;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Supp
ort Tools\;C:\DJGPP\BIN;C:\MinGW\bin;C:\MinGW\MSYS\1.0\local\bin;C:\MinGW\msys\1
.0\bin
Oh and the gcc -v works from the dos prompt (makes sense since it's in the path there).

Uh, C:\mingw\start.bat *is* the correct way to kick off the session, right?
User avatar
BuZz
Site Admin
Posts: 1891
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 66 times
Been thanked: 423 times
Contact:

Re: new site / source question

Post by BuZz »

yeh.
Post Reply