• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 13
HOW-TO compile XBMC for Xbox from SVN
#61
i found that with wincvs when i right click and update it doesnt actually download new folders and their contents. not sure what ive set up wrong in wincvs (ive left it pretty much default) but i did find nuking hte whole tree and starting again helped.
Reply
#62
uhm, someone should tell to the people that build xbmc and release it on.... you know..... that ftp to clean cvs before compile and release xbmc. otherwise we will have forever post regarding bug with iso, with compressed textures and so on.... bye
Reply
#63
if you want to be sure you're getting new files - do checkout instead of update.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#64
is there a cvs checkout option in tortoise?
Reply
#65
yes, there is. you need the click on the directory that contains your xbmc directory.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#66
bleah
Reply
#67
here's the script i use to build xbmc. it automatically retrieves the latest cvs code, compiles it and compresses it into a date-tagged rar. hope it's useful.

Quote:@echo off
cls
title xbmc build prepare script
echo preparing the build...

:: where this file is located ::
set home=d:\program files\makexbmc

:: a directory containing any custom skins (can be empty) ::
set skins=%home%\skins

:: a directory containing any custom codecs (can be empty) ::
set codecs=%home%\codecs

:: path to command line cvs, from http://www.cvshome.org/downloads.html ::
set cvs=d:\program files\cvs\cvs.exe

:: path to visual studio .net 7.1 2003 (with ms xbox sdk 5778+ installed) ::
set net=d:\program files\visual studio .net\common7\ide\devenv.exe
:: compile options ::
set opts=%home%\xbmc\xbmc.sln

:: path to command line rar.exe included with winrar, from http://www.rarlab.com/download.htm ::
set rar=d:\program files\rar\rar.exe
:: compression options ::
set compressops=a -ep1 -r -m5
:: extraction options ::
set extractops=x -r

:: path to xbmctex.exe, must be compiled from xbmc\tools\xbmctex\xbmctex.sln ::
set tex=d:\program files\xbmctex\xbmctex.exe

:: path to xbepatch, from http://www.xbox-scene.com/tools/tools.php?page=xbexbx ::
set xbe=d:\program files\xbepatch\xbepatch.exe

:: get the date, this only works on nt ::
for /f "tokens=2-4 delims=/ " %%f in ('date /t') do (
set mm=%%f
set dd=%%g
set yyyy=%%h
)

cd /d "%home%"
if not exist exclude.txt echo cvs>exclude.txt
echo retrieving cvs source...
"%cvs%" -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout xbmc
echo cleaning solution...
"%net%" "%opts%" /clean release
echo building solution...
"%net%" "%opts%" /build release
echo cleaning upload directory...
rmdir "%home%\upload" /s /q
echo patching xbe...
"%xbe%" "%home%\xbmc\release\default.xbe"
echo copying files...
md "%home%\upload"
copy "%home%\xbmc\release\default.xbe" "%home%\upload"
copy "%home%\xbmc\*.xml" "%home%\upload"
copy "%home%\xbmc\*.txt" "%home%\upload"
xcopy "%home%\xbmc\mplayer" "%home%\upload\mplayer" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\mediacenter\fonts" "%home%\upload\skin\mediacenter\fonts" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\mediacenter\*.xml" "%home%\upload\skin\mediacenter" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\credits" "%home%\upload\credits" /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\language" "%home%\upload\language" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\xbmc\keyboard\media" "%home%\upload\media" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\visualisations" "%home%\upload\visualisations" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\weather" "%home%\upload\weather" /e /q /i /y /exclude:exclude.txt
xcopy "%codecs%" "%home%\upload\mplayer\codecs" /e /q /i /y
xcopy "%skins%" "%home%\upload\skin" /e /q /i /y
echo compressing textures...
"%tex%" -input "%home%\xbmc\skin\mediacenter\media" -output "%home%\upload\skin\mediacenter\media"
echo extracting archives...
"%rar%" %extractops% "%home%\xbmc\web\xbmc.rar" "%home%\upload\web\"
"%rar%" %extractops% "%home%\xbmc\python\python.rar" "%home%\upload\python\"
echo rarring...
"%rar%" %compressops% "%home%\builds\xbmc xbox media center %yyyy%-%mm%-%dd%.rar" "%home%\upload\*"
echo finished!
Reply
#68
(ythan @ april 05 2004,09:07 Wrote:here's the script i use to build xbmc. it automatically retrieves the latest cvs code, compiles it and compresses it into a date-tagged rar. hope it's useful.

Quote:@echo off
cls
title xbmc build prepare script
echo preparing the build...

:: where this file is located ::
set home=d:\program files\makexbmc

:: a directory containing any custom skins (can be empty) ::
set skins=%home%\skins

:: a directory containing any custom codecs (can be empty) ::
set codecs=%home%\codecs

:: path to command line cvs, from http://www.cvshome.org/downloads.html ::
set cvs=d:\program files\cvs\cvs.exe

:: path to visual studio .net 7.1 2003 (with ms xbox sdk 5778+ installed) ::
set net=d:\program files\visual studio .net\common7\ide\devenv.exe
:: compile options ::
set opts=%home%\xbmc\xbmc.sln

:: path to command line rar.exe included with winrar, from http://www.rarlab.com/download.htm ::
set rar=d:\program files\rar\rar.exe
:: compression options ::
set compressops=a -ep1 -r -m5
:: extraction options ::
set extractops=x -r

:: path to xbmctex.exe, must be compiled from xbmc\tools\xbmctex\xbmctex.sln ::
set tex=d:\program files\xbmctex\xbmctex.exe

:: path to xbepatch, from http://www.xbox-scene.com/tools/tools.php?page=xbexbx ::
set xbe=d:\program files\xbepatch\xbepatch.exe

:: get the date, this only works on nt ::
for /f "tokens=2-4 delims=/ " %%f in ('date /t') do (
set mm=%%f
set dd=%%g
set yyyy=%%h
)

cd /d "%home%"
if not exist exclude.txt echo cvs>exclude.txt
echo retrieving cvs source...
"%cvs%" -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout xbmc
echo cleaning solution...
"%net%" "%opts%" /clean release
echo building solution...
"%net%" "%opts%" /build release
echo cleaning upload directory...
rmdir "%home%\upload" /s /q
echo patching xbe...
"%xbe%" "%home%\xbmc\release\default.xbe"
echo copying files...
md "%home%\upload"
copy "%home%\xbmc\release\default.xbe" "%home%\upload"
copy "%home%\xbmc\*.xml" "%home%\upload"
copy "%home%\xbmc\*.txt" "%home%\upload"
xcopy "%home%\xbmc\mplayer" "%home%\upload\mplayer" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\mediacenter\fonts" "%home%\upload\skin\mediacenter\fonts" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\mediacenter\*.xml" "%home%\upload\skin\mediacenter" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\credits" "%home%\upload\credits" /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\language" "%home%\upload\language" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\xbmc\keyboard\media" "%home%\upload\media" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\visualisations" "%home%\upload\visualisations" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\weather" "%home%\upload\weather" /e /q /i /y /exclude:exclude.txt
xcopy "%codecs%" "%home%\upload\mplayer\codecs" /e /q /i /y
xcopy "%skins%" "%home%\upload\skin" /e /q /i /y
echo compressing textures...
"%tex%" -input "%home%\xbmc\skin\mediacenter\media" -output "%home%\upload\skin\mediacenter\media"
echo extracting archives...
"%rar%" %extractops% "%home%\xbmc\web\xbmc.rar" "%home%\upload\web\"
"%rar%" %extractops% "%home%\xbmc\python\python.rar" "%home%\upload\python\"
echo rarring...
"%rar%" %compressops% "%home%\builds\xbmc xbox media center %yyyy%-%mm%-%dd%.rar" "%home%\upload\*"
echo finished!
thanks! works great! =)
Reply
#69
ythan,

thanks as well, just started using your script last night, after making some adjustments, works great.
Reply
#70
i always thought it would be nice to see the actual cvs build date when you select settings->system info rather than just 'build: xbox media center cvs build'.  i'm currently using the following script to change this automatically:

Quote:rem download gsar from http://home.online.no/~tjaberg/
rem set the cvs build date - repeat and or modify for other languages
gsar "-sxbox media center cvs build" "-rcvs %date%" -o build\language\english\strings.xml

rem tidy up the case of the filename
ren build\language\english\strings.xml strings.xml

the script and gsar both reside in the root of the cvs and assumes that the final build is in the build directory (default if you use build.bat included with the cvs)

now when you look at the info it will read 'build: cvs fri 16/04/2004' - %date% uses your computers date settings to determine the format.

i also use this method to change some of the default settings in xboxmediacenter.xml to appropriate values for my network.
Reply
#71
fyi: ms just released a free (as in beer) version of the cmdline c++ .net comipler here: http://msdn.microsoft.com/visualc/vctoolkit2003/

i'm sure the xdk is still required but this may alleviate the need for vs.net 2003 for some of us. (not that i know, i'm just posting the info that i've found).
--jaga
Reply
#72
thanks tober! good tip!

-y
Reply
#73
i would like to start to compile my own builds however i am unsure of one part.  the batch file says to use xbmctex.exe.

:: path to xbmctex.exe, must be compiled from xbmc\tools\xbmctex\xbmctex.sln
:: set tex=d:\program files\xbmctex\xbmctex.exe


how do i compile the xbmctex? i believe i have everything else and am anxious to get to helping out with bugs for the release of 1.0!

thanks!
Reply
#74
you must install directx xdk and after compil it
Reply
#75
to build xbmctex (note, you only need to do this if you're altering skins, the default cvs skin comes with a prebuilt textures.xpr that you can use).

install the directx 9.0 (summer update) sdk.
open xbmc\tools\xbmctex\xbmctex.sln in visual studio.
open stdafx.h.
edit the lines #include "/dx90sdk/include/d3d8.h" and #include "/dx90sdk/include/d3dx8.h" to point to your dx sdk installation directory.
go to the project menu, open the properties page for the project, select linker then input. edit "\dx90sdk\lib\d3d8.lib \dx90sdk\lib\d3dx8.lib" on the additional dependencies field to point to your dx sdk directory.
build the solution.
you should have xbmctex.exe in the release directory.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 13

Logout Mark Read Team Forum Stats Members Help
HOW-TO compile XBMC for Xbox from SVN0