View Full Version : HOW-TO compile XBMC for Xbox from SVN
Details in the wiki (http://xbmc.org/wiki/?title=HOW-TO_compile_XBMC_for_Xbox_from_source_code).
hi all,
i'm playing with some stuff that would require making some changes to the mplayer code, or at least adding some additional exports to the dll. *however, i can't figure out how to build the damn dll. *the regular distro of mplayer only seems to support mingw or cygwin for windows, and it seems wierd that the xbox build would be using those.
could someone please give me a description - or a makefile/project file for building the mplayer.dll that is used for xbmc?
thanks in advance,
/meghead
ok, thanks to rjm i found the patch file, in the doc/ directory of the cvs (strange place but anyway...).
i got mplayer building under mingw, albeit with some strange problems with objcopy.exe. *the executable successfully plays files.
next i applied the patch and rebuilt as instructed. *after getting all the sundry stuff installed (except i never fully got ogg vorbis fully working so i took it out of the config.h), i managed, after solving more puzzles than most rpgs, to get an mplayer.dll built. *the dll looks good and has the same exports as the original (as shown by the great depends prog in ms vc++).
now, however, when i try to run xbmc against this dll, it locks up as soon as i try to play a movie file. *obviously something ain't quite right. *i'm still looking into this to try to figure out what's going on, but i was wondering if anybody had any tricks they knew of to get this working? *this is extremely frustrating and is standing in the way of me implementing some neat features towards this project, such as the full ff/rw feature. *
i agree with figuring things out myself, but this seems like something that should not be so tough if we want people to contribute to xbmc development.
thanks in advance
/meghead
i'm getting the following when i'm trying to compile the latest cvs checkout
compiling...
emuregistry.c
linking...
creating xbox image...
imagebld : warning im1029: library xonline is unapproved
imagebld : warning im1030: this image may not be accepted for certification
copying files to the xbox...
xbecopy: error x1001: could not connect to xbox ''
i did set the the solution configurations to release xbox.
i'm compliling with vs.net 2003 and december xdk.
you need to remove the last step in the build, select property page for xbmc and change "excluded from build" from no to yes in the xbox deployment section. unless you have a debug-xbox.
the warnings are just warnings, they just tell you that you might run in to trouble in the ms certification process.
in creating a fresh xbmc setup it seems there are two additional directories that need to be installed:
- /xbmc/mplayer/codecs/ - you can either download the codecs from the websites listed in readme.txt, or copy them from a "released" build.
- /xbmc/skin/hifi - this directory is present in the 12-31-03 release but not current cvs. *it looks like this directory was renamed to mediacenter. *xbmc wouldn't start up until i copied this directory from 12-31 release. *
* *first guess was something referencing it, but no "hifi" turned up via find in file. (figured that would be way too easy)
cheers,
-d
Hullebulle
2004-01-14, 21:08
- /xbmc/skin/hifi - this directory is present in the 12-31-03 release but not current cvs. *it looks like this directory was renamed to mediacenter. *xbmc wouldn't start up until i copied this directory from 12-31 release. *
* *first guess was something referencing it, but no "hifi" turned up via find in file. *(figured that would be way too easy)
it hasn't ben renamed. mediacenter is the official skin from the cvs and the hifi one is and addition from onkel bouncy (not in the cvs). the only reason xbmc won't start for you is that you set hifi as default in your general settings but it wasn't there when you start the fresh build (without the hifi skin).
not sure how i changed it, but cool! thanks for the explanation.
-d
tangent1138
2004-01-16, 05:01
hi-- this is my first attempt at compiling.
i have december xbox sdk, visual studio .net 2003, and i followed frodo's directions to get the source code from sourceforge through wincvs.
everything seems to work okay until i load up the solution in visual studio .net. it gives me 4 errors when it tries to load.
it says the following four things are not available:
c:\xbmc\xbmc\cores\dllloader\dllloader.vcproj
c:\xbmc\guilib\guilib.vcproj
c:\xbmc\xbmc\lib\libfilezilla\xbfilezilla.vcproj
c:\xbmc\xbmc.vcproj
what did i do wrong?
i have exact the same problem. i use a german installation of visual studio 2003 .net.
whats wrong with my setup ?
sers
b54
hi all,
fixed the problem, the solution was reinstalling the xdk.
now it worx fine :)
trying to compile the 2004-02-01 cvs tarball.
i get the following error:
application.obj : error lnk2019: unresolved external symbol "public: bool _ _thiscall cxbfilezilla : :start(void)" (?start@cxbfilezilla@@qae_nxz) referenced in function "public: virtual long __thiscall capplication::initialize(void)" (?initialize@capplication@@uaejxz)
any ideas?
i am having no such issues.
is this a rebuild solution? you can try doing a clean first and then rebuild.
ts
well i did a clean and then rebuild.
i first get thiss error:
link : fatal error lnk1104: cannot open file 'guilib/release/guilib.lib'
even though the file guilib.lib has been rebuilt.
if i run the build a second time without doing a clean i get the earlier reported unresolved external issue.
check the project dependencies. when i looked the other day they were all cleared, i think they should all be ticked. then try doing a rebuild.
mrc
well i ticked all the dependencies and now the guilib.lib problem went away. i still get the unresolved externals problem but inspite of that the default.xbe is generated and starts up but seems to hang after starting up since it does not respond to the controller inputs.
the latest build (latest tarball, feb 2) seems to hang on my xbox, though it builds without any problems. deleted the face008 folders but that didn't help.
any ideas, is there perhaps a way to catch the outputdebuggingstring messages from a debug build on a retail xbox to see what's happening?
i have just downloaded the latest cvs tarball, changed the solution and vcproj files to work with .net 7, fixed the dependencies and it compiles fine with no linker errors. i copied over the data and it runs with no problems so i am not sure what you are doing wrong.
what version of the xdk are you compiling with? if you can get to the main menu but your controller doesn't work then you need a more recent one - i know this happens with 5659.
if it hangs before it gets to the menu then you are probably missing a data file - debug it and see what it is looking for.
hope that helps...
mrc
my xbe was also build flawlessly just like you described (.net 7), using the december xdk (5849).
it hangs immediately, at the evox loading screen. i'm not sure how to debug a debug-build-xbe, is that possible with a retail xbox?
thanks!
solved it brute-force by deleting the complete xbmc folder, reinstalling an older working version and overwriting some of the main files (default.xbe, *.xml, mplayer) with the newest versions.
still interested in retail debugging possibilities though!
Gamester17
2004-02-03, 16:17
i'm not sure how to debug a debug-build-xbe, is that possible with a retail xbox? interested in retail debugging possibilities!
i'm no dev but i know of these three options:
1. if you have a 512+ kb modchip and xbox without the focus chip then flash bios with a debug bios and use debug with xdk.
2. all mods as long as do not have focus chip: use phoenix bios-loader to loaded a debug bios and use debug with xdk.
3. if debug bios is impossible, manualy incoperatate xport's or blackbelt's debug server code and use matching debug client
i've added
<weather>
<areacode>nlxx0017</areacode>
<format>m</format>
</weather>
to the xboxmediacenter.xml file between </video> and </xboxmediacenter>
when i press "refresh" in my weather it says "accessing weather.com", then an empty dialogbox with title "unable to get weather data". imdb works so i guess it's not a network problem? it also happens with the original ukxx0085. when i enter the xoap-url with the code, metrics and id/key in my browser it loads the weather-xml just fine. any ideas? thanks
Hullebulle
2004-02-03, 20:02
i'm not sure how to debug a debug-build-xbe, is that possible with a retail xbox? interested in retail debugging possibilities!
i'm no dev but i know of these three options:
1. if you have a 512+ kb modchip and xbox without the focus chip then flash bios with a debug bios and use debug with xdk.
2. all mods as long as do not have focus chip: use phoenix bios-loader to loaded a debug bios and use debug with xdk.
3. if debug bios is impossible, manualy incoperatate xport's or blackbelt's debug server code and use matching debug client
you do not need to touch your bios at all. just follow this tutorial --> http://xbox-scene.com/articles/debug-xdk.php
ok, build.bat should be updated to xcopy the weather directory, it works now, looks great! :d
WagaDooboo
2004-02-05, 14:54
- xdk 5778 or higher
and xdk 5558 ??
Gamester17
2004-02-05, 18:21
you do not need to touch your bios at all. just follow this tutorial --> http://xbox-scene.com/articles/debug-xdk.phpalready mentioned that, see number 2 "phoenix loader"
Hullebulle
2004-02-06, 05:23
you do not need to touch your bios at all. just follow this tutorial --> http://xbox-scene.com/articles/debug-xdk.phpalready mentioned that, see number 2 "phoenix loader"
oops :)
- xdk 5778 or higher
and xdk 5558 ??
i don't want to sound condescending, but what part of 5778 or higher was not clear ? :)
seriously, 5558 will compile, but you won't be able to move around. you really do need 5778 or higher :)
ts
here's a batch file i wrote to easily obtain a working installation with all the latest files in the right places, and to keep your own custom config .xml's in tune with the latest .xml parameter changes. after you set it up everything is about completely automatic.
basic idea: create a folder containing
- xbmc cvs folder
- config folder containing your personalized my_*.xml (so my_keymap.xml, etc) and backups of the last versions of the non-modified xml files, filenames _ prepended: _keymap.xml etc. (first time just copy them straight from the xbmc folder)
- win32codecs folder containing the extracted mplayer codecs
- extraskins folder containing any extra skins you may have (so excluding mediacenter)
now, compile xbmc and run the batchfile below (adjusting lines 2-4 to your setup). if any .xml config file has changed, your diffing program will pop up to show you what changed in the cvs, as well as your editor with your corresponding customized .xml so you can edit it to correct it for any important changes.
after you're finished and closed both, press any key to check the other .xml files or start creating the xbmcupload folder containing the complete installation.
if you have any questions let me know. if you don't know which differ you should choose- i like winmerge (http://winmerge.sourceforge.net/) myself, but there's also one included in vs (not installed by default i believe)
@echo off
set editor="c:\seteditorpathandnamehere"
set differ="c:\setdifferpathandnamehere"
set unrar="c:\program files\winrar\unrar.exe"
fc config\_keymap.xml xbmc\keymap.xml > nul
if %errorlevel%==0 goto nokeychange
start "" %differ% config\_keymap.xml xbmc\keymap.xml
start "" %editor% config\my_keymap.xml
pause
copy /y xbmc\keymap.xml config\_keymap.xml
:nokeychange
fc config\_xboxmediacenter.xml xbmc\xboxmediacenter.xml > nul
if %errorlevel%==0 goto noxbmcchange
start "" %differ% config\_xboxmediacenter.xml xbmc\xboxmediacenter.xml
start "" %editor% config\my_xboxmediacenter.xml
pause
copy /y xbmc\xboxmediacenter.xml config\_xboxmediacenter.xml
:noxbmcchange
fc "config\_filezilla server.xml" "xbmc\filezilla server.xml" > nul
if %errorlevel%==0 goto nofzschange
start "" %differ% "config\_filezilla server.xml" "xbmc\filezilla server.xml"
start "" %editor% "config\my_filezilla server.xml"
pause
copy /y "xbmc\filezilla server.xml" "config\_filezilla server.xml"
:nofzschange
rd /s /q xbmcupload
md xbmcupload
copy xbmc\release\default.xbe xbmcupload
copy config\my_xboxmediacenter.xml xbmcupload\xboxmediacenter.xml
copy config\my_keymap.xml xbmcupload\keymap.xml
copy "config\my_filezilla server.xml" "xbmcupload\filezilla server.xml"
xcopy /i /e xbmc\mplayer xbmcupload\mplayer
xcopy /i /e xbmc\skin xbmcupload\skin
xcopy /i /e xbmc\language xbmcupload\language
xcopy /i /e xbmc\weather xbmcupload\weather
xcopy /i /e xbmc\xbmc\keyboard\media xbmcupload\media
xcopy /i /e xbmc\visualisations xbmcupload\visualisations
%unrar% x xbmc\python\python.rar xbmcupload\python\
%unrar% x xbmc\web\xbmc.rar xbmcupload\web\
rem %unrar% x xbmc\scripts\scripts.rar xbmcupload\scripts\
xcopy /i /e win32codecs xbmcupload\mplayer\codecs
xcopy /i /e extraskins\* xbmcupload\skin
enjoy,
ezd
Aurora13
2004-02-09, 10:40
because i live in gmt+1 i cannot tell the exact date of the cvs build. on what timezone is the cvs date/time based on?
so i can give feedback with the correct build date of the cvs.
because i live in gmt+1 i cannot tell the exact date of the cvs build. on what timezone is the cvs date/time based on?
so i can give feedback with the correct build date of the cvs.
sourceforge is located in california, it's pst (gmt-8)
hey frodo
xbmc/xbmc/keyboard/language->e:\apps\xbmc\language
should it be xbmc/language->e:\apps\xbmc\language
i may be wrong but all the latest cvs the language dir isnt in the keyboard dir.
:d
i may be wrong but all the latest cvs the language dir isnt in the keyboard dir.
:d
the build info on page 1 is antique and shouldn't be used.there's a .txt in the cvs xbmc folder containing the correct instructions- or see my autobuild batchfile on page 4.
cheers,
ezd
edited by frodo on feb. 09 2004,13:50
its doesnt seem like an antique as its seems to be updated. i was just informing frodo and maybe he could update.
thanks anyway.
great app
its doesnt seem like an antique as its seems to be updated. i was just informing frodo and maybe he could update.
whoops, didn't see that...
edited by frodo on feb. 09 2004,13:50
its doesnt seem like an antique as its seems to be updated. i was just informing frodo and maybe he could update.
it might also be that the instruction for wincvs in the second post in this thread needs adjusting. at least it didn't work until i used the command line posted by tslayer on page 3 of this thread:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xbmc co xbmc
whats up with the xbmc nightly tarballs??. anyone had any success d/l them latly. i get file not found from sourceforge.
Aurora13
2004-02-15, 12:47
yep, same here.
Gamester17
2004-02-15, 21:18
whats up with the xbmc nightly tarballs??. anyone had any success d/l them latly. i get file not found from sourceforge.
we had to remove the cron job because it got to big (50mb+) and sourceforge.net would not host them because of the bandwith it took.
please use wincvs, tortoisecvs or other cvs-client to grab the cvs through the anonymous cvs access (link) (http://sourceforge.net/cvs/?group_id=87054) instead, sorry
i hope i am posting in the appropriate section
i just updated my cvs files from sourcefource today 27.2.2004. (got all the files approx 116 mo and a success message from win cvs at the end) and when i try to regenerate the xbmc solution i immediately get an error message as below :
run time error !
the application has requested the runtime to terminate it in an unusual way
i am a bit lost since i did the same yesterday and it worked perfectly => i could make my own build, ftp it to xbox and run it as a dash.
is there something i did wrong or could this be due to cvs uncomplete ?
please help
lud
to all,
please ignore my latest post as a simple reboot of my pc solved my problem
xbmc is really getting better and better :-)))
lud
ToeCutter
2004-02-28, 05:55
noob alert.
i'm getting the following error when downloading the cvs module:
u xbmc/xbmc/xbox/ntddstor.h * (last file retreived)
cvs [checkout aborted]: cannot rename file cvs/entries.extra.backup to cvs/entries.extra: permission denied
***** cvs exited normally with code 1 *****
any reason for alarm or is this an indication that the cvs download is complete? i have no /cvs/entries.extra.backup, only /cvs/entries.extra, so i assume it actually was renamed or never retreived?
any thoughts would be appreciated.
cRuNcHiE
2004-03-02, 00:56
heres another simple batch file i made, this one wont copy your codecs or previous configs but instead will make a clean install of xbmc ready for upload!
to use it, place it outside your xbmc cvs folder, e.g if you downloaded the cvs to c:\xbmc then place this in c:\ and run it from there.
it will then make a folder called xbmcupload in the root of c:\ containing the clean install.
**please note!**
you need to edit the path to point to wherever you have winrar installed, and of course u need winrar installed in the first place :)
hope its of some use?!
if you dont know how to make a batch file, just open notepad, paste in the code below and save to a file e.g xbmcupload.bat
then just run the xbmcupload.bat
rem this batch file needs to be put outside the xbmc cvs folder, e.g if cvs is in c:\xbmc put this in c:\ and run it
rem change the path below to wherever your winrar directory is!
rem this will not copy your codecs or previous configs!it should make a clean install!
set unrar="c:\program files\winrar\unrar.exe"
rd /s /q c:\xbmcupload
md xbmcupload
copy xbmc\release\default.xbe xbmcupload
copy xbmc\xboxmediacenter.xml xbmcupload
copy xbmc\keymap.xml xbmcupload
copy "xbmc\filezilla server.xml" xbmcupload
xcopy /i /e xbmc\mplayer xbmcupload\mplayer
xcopy /i /e xbmc\skin xbmcupload\skin
xcopy /i /e xbmc\language xbmcupload\language
xcopy /i /e xbmc\weather xbmcupload\weather
xcopy /i /e xbmc\xbmc\keyboard\media xbmcupload\media
xcopy /i /e xbmc\visualisations xbmcupload\visualisations
%unrar% x xbmc\python\python.rar xbmcupload\python\
%unrar% x xbmc\scripts\scripts.rar xbmcupload\scripts\
i tried to compile the latest cvs mar 3, 2004. i got the following error message
xbmc fatal error lnk1104: cannot open file 'guilib/release/guilib.lib'
i checked the folder. guilib.lib file is there. any ideas?
problem solved after checked the dependencies and rebuild.
Cybearman
2004-03-09, 23:17
hi guys,
i have compiled xbmc successfully, but where can i get additionnal skins (like hifi) ? is there another cvs directory for other media stuff ?
thanks for your help.
i have built xbmc as recently as a week ago but after upgrading pc hardrive and reinstalling software i am unable to build the .sln file. i get errors when i try to open it.
can not open guilib and other project files.
any tips on what i should check or how to overcome this will be appreciated.
alittle goof on the cvs update that jwnmulder did for the web server.. forgot the update the xbmc.vcproj with the 3 new files..
<file
relativepath=".\xbmc\lib\libgoahead\includes.h">
</file>
<file
relativepath=".\xbmc\lib\libgoahead\xbmcconfigurat ion.cpp">
</file>
<file
relativepath=".\xbmc\lib\libgoahead\xbmcconfigurat ion.h">
</file>
hope that helps
thanks snyper. i added the code to the vcproj file from the march 12, 2004 cvs file and was able to compile the latest cvs. before adding the code, i was getting 11 errors and the compilation would fail. i am also posting this in the how-to compile xbmc from cvs section so it can be updated and also to help others with the same problem.
ok i compiled the latest cvs, and added in the http patch, everything seems to be working great, even the http patch. however, the controllers are totally non responsive in xbmc, only the remote works. anyone else experienced something like this?
Aurora13
2004-03-16, 09:25
@frop:
you need xdk 5778 or higher
this is a bug in a early version of the xdk
oh. i was using 5558, mis read it as 5778. dammit. well thanks.
i get this error on various lines of this same object.
xbmc\cores\sscc.cpp(429) : warning c4244: '=' : conversion from 'double' to 'real', possible loss of data
i'm using vs.net 2003 and the full install of the sdk from decemeber.
any ideas?
that's a warning not an error, you can ignore it.
ChEeSyBoOfS
2004-03-18, 17:46
where do i get xdk 5778 or higher from? is it something i have to buy? is there a free equivalent?
please help!
Gamester17
2004-03-18, 18:04
where do i get xdk 5778 or higher from? is it something i have to buy? is there a free equivalent?
please help!
that has been explained about what it now feels like a zillions times in these forums (search) which is why we included it in the faq (link) (http://www.xboxmediacenter.com/info_faq.htm#03)
ChEeSyBoOfS
2004-03-18, 18:14
i did read that, and search, that faq just tells me what i need, not how i get it. the faq says you will not help to use xdk, not you will not help in getting an xdk sollution working. and i presume the open source one will do but i cant find help in installing it....
Gamester17
2004-03-18, 19:14
you need to read/look at that faq more closly (see, this link (http://www.xboxmediacenter.com/docs/xdk.txt)), first of all it's clealy say that the open source does not work.
"xdk compiler is only available to microsoft approved developers", in short you can't get/buy it if your not a official developer.
sure you could probebely download the xdk illegaly somewhere but expect us to help you with that, see our forum rules.
ps! sorry if i sound a little bif aggressive/offensive but we took the time to write the faq/forum rules, please follow them.
to update crunchie excelent time saving bat file to recent changes in xbmc.
btw for those who cant get this to work you need to open command prompt in xp and cd to the dir where the .bat file is and type nameof.bat
btw change x:\xbmc daily builds\xbmcupload to where you want files to be copied.
rem this batch file needs to be put outside the xbmc cvs folder, e.g if cvs is in c:\xbmc put this in c:\ and run it
rem change the path below to wherever your winrar directory is!
rem this will not copy your codecs or previous configs!it should make a clean install!
set unrar="c:\program files\winrar\unrar.exe"
rd /s /q x:\xbmc daily builds\xbmcupload
md xbmcupload
copy xbmc\release\default.xbe xbmcupload
copy xbmc\xboxmediacenter.xml xbmcupload
copy xbmc\keymap.xml xbmcupload
copy "xbmc\filezilla server.xml" xbmcupload
xcopy /i /e xbmc\mplayer xbmcupload\mplayer
xcopy /i /e xbmc\skin xbmcupload\skin
xcopy /i /e xbmc\language xbmcupload\language
xcopy /i /e xbmc\weather xbmcupload\weather
xcopy /i /e xbmc\xbmc\keyboard\media xbmcupload\media
xcopy /i /e xbmc\visualisations xbmcupload\visualisations
xcopy /i /e xbmc\credits xbmcupload\credits
%unrar% x xbmc\python\python.rar xbmcupload\python\
%unrar% x xbmc\scripts\scripts.rar xbmcupload\scripts\
%unrar% x xbmc\web\web.rar xbmcupload\web\
%unrar% x xbmc\web\xbmc.rar xbmcupload\web\
btw nice script *crunchie
:d
ok, i figured something out today, and maybe this was already known, and if it is, i guess i'm just a dumbass :)
i've been having this iso9660 problem for a while (about march 9th), some devs said they couldn't find the bug.
i also previously had a problem with compressed textures (ie, it couldn't find them).
what i've been doing with the cvs is this.. i use tortoisecvs, and previsously, i've been right clicking on my xbmc folder, choosing "cvs update". that's what i've always done. i would then edit some of my parameters in build.bat and run it. would compile, then i would upload it to my xbox.
like i said, been doing this for a few months now.
today, i said what the heck, i nuked my entire cvs directory, and downloaded the entire cvs tree once again. made my changes, compiled and poof, no more bugs. iso9660 works again.
i must apologize for my insistence that there's a bug. but i'm not sure if it's just the cvs not updating correctly or what.. i have no idea why a daily update would cause such a ruckus with my daily builds.
so if you're having quirky problems, try nuking your cvs folder and re-downloading the entire cvs tree, just might fix your problem that only you seem to have.
-- stokkes
Bobbin007
2004-03-23, 01:53
maybe it would also help to delete the release folder's in the project path. sometimes things only work correct after a clean build (had this a few times). maybe another approach. :)
greets
bobbin007
what corrections did you make to build.bat? stokkes?
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.
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
if you want to be sure you're getting new files - do checkout instead of update.
is there a cvs checkout option in tortoise?
yes, there is. you need the click on the directory that contains your xbmc directory.
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.
@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!
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.
@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! =)
ythan,
thanks as well, just started using your script last night, after making some adjustments, works great.
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:
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.
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).
thanks tober! good tip!
-y
budwizer
2004-04-21, 20:08
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!
you must install directx xdk and after compil it
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 (http://www.microsoft.com/downloads/details.aspx?familyid=9216652f-51e0-402e-b7b5-feb68d00f298&displaylang=en).
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.
budwizer
2004-04-22, 20:20
thanks for the help, i got it all working and was able to get a good build from cvs last night!
wabidwoveren
2004-04-30, 05:10
heres my current batch, it has a menu if u want that asks what to do. entering 10 gets u the secret menu
http://dell.gruposid.com/xbmc%20all-in-wonder.bat
wabid
got it to work, works great!
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.
@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!
great script :)
i had to change the date part as i'm in france :
:: 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
)
became
:: get the date, this only works on nt ::
for /f "tokens=1-4 delims=/ " %%f in ('date /t') do (
set dd=%%f
set mm=%%g
set yyyy=%%h
)
(tokens=2-4 => tokens=1-4 & dd/mm permutation)
there is also a big problem :
the following line only clean the main project objects (.obj)
"%net%" "%opts%" /clean release
there is few other .obj to clean in others directory than xmbc/release, i didn't checked how to remove them automatically but in the worst case, i'll use a "del *.obj" in the needded directories ;)
in a normal behavior, it should have no impact anyway (as changed .c should be more recent than compiled objects, but because of the 24h delay for anonymous account, the compiled .obj from a previos release may be more recent than an updated .c cause him not to be compiled :angry:), maybe a "/a" to force recompilation of each file is the best solution !
just tell me what you think about it ;)
dialanothernumb
2004-05-16, 18:30
i'm stumped
i compiled from cvs today, just as i've done without a problem, for 6 months, but this time i cannot find default.xbe
can anyone suggest what i should be looking at to trouble shoot?
Aron Parsons
2004-05-20, 07:42
here's a little script combo to automate changing the vs.net version numbers for building in vs.net 2002. it's a bash shell script --> easiest way to do it in windows is using cygwin (http://www.cygwin.com). or just run it on any linux box --> uses the 'sed' tool.
#!/bin/bash
find . -type f -name "$3" -print | while read i
do
sed "s|$1|$2|g" $i > $i.tmp && mv $i.tmp $i
done
now put this next code into another file (the above into a file called 'replacestring'). this passes the right arguments to the script and you're done. this could, of course, all be put into one script, but i use the 'replacestring' code for many other things.
replacestring version\ 8.00 version\ 7.00 *.sln
replacestring version=\"7.10\" version=\"7.00\" *.vcproj
hope this helps someone.
dchurch24
2004-05-30, 14:20
thanks aron,
what a little gem. i was going to do this myself, but as a .bat file/or maybe in vb.
thanks for saving me time
davidwiz
2004-06-08, 15:08
ive been downloading from cvs weekly for a couple months.
i havent been able to download from cvs yesterday or today. i just keep geting message:
"cvs checkout: [11:20:09] waiting for jwnmulder's lock in /cvsroot/xbmc/xbmc"
anything change recently with updating with wincvs or command line""%cvs%" -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout xbmc"?
update: must of been a temp cvs problem, fixed itself.
DarkVamp
2004-06-14, 07:26
hi,
i updated my cvs directory every day and there are no code-changes in the last 3 days...... !?!
DarkVamp
2004-06-15, 00:54
hi,
any help ???
that is because we didn't comitted any new code the last few days. for me that is because i have other things todo atm.
DarkVamp
2004-06-15, 10:51
hi,
:-) okay no problem hehe just thought my cvs is bad !
thanks for the script ythan! i finally got round to compiling my own builds :lookaround:
only problem i seem to be having is the rarring up of the "upload " folder to a dated rar file doesn't seem to be working for me, (i use win rar 3.30 if that affects things)
the python folder is now unrarred in the cvs so i changed that portion of the script so the python folder is copied directly to the "upload" folder (minus the cvs folders)
the other problem i'm having is compiling the xbmctex.exe, i've installed the directx9 sdk although its installed itself to c:\ as opposed to say c:\program files\microsoft vs.net 2003.
i get the following error when trying to build the xbmctex solution:
fatal error c1083: cannot open include file :"/dx90sdk/include/d3d8.h": no such file or directory
the thing is this file is there- c:\dx90sdk\include\d38d.h
do i have to incldue the dx90sdk somehow as an externally linked library?
any help appreciated!
p.s. wabidwoveren, i tried accessing your script but i keep getting sent to http://www.gruposid.com/index.htm
i've tried copying and pasting the address in both firefox and ie but no joy :(
edit* one question that doesn't affect me directly but may affect others is if you are doing a clean install of xbmc once the the source is compiled and xme is still the default skin, what happens if it isn't there? is there somewhere in the code where you can say set project mayhem or another low sized skin (maybe simplesimon) to be the default skin?
thanks!
Vortex_ICS
2004-07-08, 01:00
well, i tried frodo's way, but i get this error :
d:\xbmc\xbmc\cores\mplayer.cpp(652): error c2228: left of '.purge' must have class/struct/union type
d:\xbmc\xbmc\cores\mplayer.cpp(652): error c2065: 'g_smb' : undeclared identifier
anyone else experienced the same problem ??
well, i tried frodo's way, but i get this error :
code sample *
d:\xbmc\xbmc\cores\mplayer.cpp(652): error c2228: left of '.purge' must have class/struct/union type
d:\xbmc\xbmc\cores\mplayer.cpp(652): error c2065: 'g_smb' : undeclared identifier
anyone else experienced the same problem ??
that was my fault, it should be fixed now in anonymous cvs
Vortex_ICS
2004-07-08, 02:40
should i download the cvs again ??
when i rebuilt it, it stopped in the errors, and i saw that vs created a .bat file, after i clicked it it created the .rar and the xbox files except the .xbe ...
mod edit
* do not ask for or link to any copyrighted materials in any form, especially from microsoft!
* do not discuss piracy, warez, sharing movies, music or retail software etc. on this forum.
* do not ask for or link to xbox binaries/executables compiled with ms xbox sdk (xdk)!
* you must read the full faq and search the whole forum (inc. old posts) before posting!
* do not request support or ask for help in any forum other than the support forum!
* only xbox media center point releases are supported in the main support forum!
* cvs (beta) builds are only supported/discussed in the dedicated cvs thread!
* when reporting a bug re-read the faq and follow the rules given for bug reports!
* the xbmc website/team do not host or distribute any xdk compiled xbox binaries.
* this website is totally opposed to any form of piracy, read understand & our disclaimmer.
please remember that we are not responsible for any messages posted. we do not vouch for or warrant the accuracy, completeness or usefulness of any message, and are not responsible for the contents of any message. the messages express the views of the author of the message, not necessarily the views of this bb. any user who feels that a posted message is objectionable is encouraged to contact us immediately by email. we have the ability to remove objectionable messages and we will make every effort to do so, within a reasonable time frame, if we determine that removal is necessary.\n\nyou agree, through your use of this service, that you will not use this bb to post any material which is knowingly false and/or defamatory, inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually oriented, threatening, invasive of a person's privacy, or otherwise violative of any law. you agree not to post any copyrighted material unless the copyright is owned by you or by this bb.
hi-- this is my first attempt at compiling.
i have december xbox sdk, visual studio .net 2003, and i followed frodo's directions to get the source code from sourceforge through wincvs.
everything seems to work okay until i load up the solution in visual studio .net. it gives me 4 errors when it tries to load.
it says the following four things are not available:
c:\xbmc\xbmc\cores\dllloader\dllloader.vcproj
c:\xbmc\guilib\guilib.vcproj
c:\xbmc\xbmc\lib\libfilezilla\xbfilezilla.vcproj
c:\xbmc\xbmc.vcproj
what did i do wrong?
i am having the same problems as him.
same xdk version same visual studio version.
i have tried to reinstall both programs but it still gives me that error.
edit: nevermind... i fixed it stupid wincvs
BoomDivX
2004-08-17, 01:23
i'm trying to build the latest cvs and i get those errors at the end:
d:\console\xbox\xbmc-cvsroot\xbmc\xbmc\xbmc\filesystem\filedaap.cpp(109 ): warning c4244: '=' : conversion from 'uint64' to 'int', possible loss of data
d:\console\xbox\xbmc-cvsroot\xbmc\xbmc\xbmc\filesystem\filedaap.cpp(195 ): warning c4018: '>' : signed/unsigned mismatch
d:\console\xbox\xbmc-cvsroot\xbmc\xbmc\xbmc\filesystem\filedaap.cpp(196 ): warning c4244: '=' : conversion from 'uint64' to 'size_t', possible loss of data
d:\console\xbox\xbmc-cvsroot\xbmc\xbmc\xbmc\filesystem\filedaap.cpp(198 ): warning c4244: '=' : conversion from '__int64' to 'size_t', possible loss of data
did i do something wrong or is it normal? i'm using the xdk december 2003 and vs7 (fresh install)
ezar2003
2004-08-17, 01:30
ignore this warnings... it's ok.
phunzoid
2004-08-26, 17:39
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.
@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!
used this script to compile xbmc for myself for the very first time...although i haven't had a chance to install the finished product in my xbox yet, it appeared to all go a-ok *:kickass:
only thing that didn't work was the rar'ing of the freshly compiled xbmc
also, i realize the script says it "only works on nt", but is there some changes i can make to get the cvs date included in the folder name in win xp ?
is there an updated script that includes some fixes/changes?
ezar2003
2004-08-26, 17:50
change mediacenter to "project mayhem"
xcopy "%home%\xbmc\skin\project mayhem\fonts" "%home%\upload\skin\project mayhem\fonts" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\project mayhem\*.xml" "%home%\upload\skin\project mayhem" /e /q /i /y /exclude:exclude.txt
"%tex%" -input "%home%\xbmc\skin\project mayhem\media" -output "%home%\upload\skin\project mayhem\media"
phunzoid
2004-08-27, 07:28
decided to created separate thread for my problem *???
ezar2003
2004-08-27, 19:18
copy skin\project mayhem\media\textures.xpr from pc to xbox...
Mr Walker
2004-08-30, 09:59
i'm an all rookie to this but was gonnna give it a try. i doenloaded all the needed stuff and did some changes as my visual studio really was like 7,0. and then started to compile. after all was finished i runned the bat-file but then ib the "new" directory there was no default.xbe.
*edit: got it working now
/mr walker
i'm trying to download the cvs code but i keep getting the following error:
"cvs [login aborted]: connect to cvs.sourceforge.net:2401 failed: no connection could be made because the target machine actively refused it. "
i'm using wincvs 1.3.17.2. and have set it up as per the instructions here. i should point out that the menus must have change a little since this how-to was writen as (for instance) no "create->checkout module" menu item but i get the idea.
is the cvs server just down, or am i going something wrong?. i tried it from work also an got the same result.
jmarshall
2004-09-18, 15:58
get tortoisecvs - it's much easier to use than wincvs.
johnh123
2004-09-18, 23:30
is there a (reletively) easy way to check the cvs to see what is being checked in each day (or since you last checked)?
ezar2003
2004-09-19, 00:57
just an idea...
suscribe to xbmc-cvs archives (http://sourceforge.net/mail/?group_id=87054) and you get email when new change it's added...
when trying to compile the cvs today i get the following error:
linking...
exports2.obj : error lnk2019: unresolved external symbol _dlllocallock@4 referenced in function _$e263
exports2.obj : error lnk2019: unresolved external symbol _dlllocalhandle@4 referenced in function _$e265
exports2.obj : error lnk2019: unresolved external symbol _dlllocalunlock@4 referenced in function _$e267
exports2.obj : error lnk2019: unresolved external symbol _dllglobalhandle@4 referenced in function _$e269
exports2.obj : error lnk2019: unresolved external symbol _dllglobalunlock@4 referenced in function _$e271
exports2.obj : error lnk2019: unresolved external symbol _dllloadresource@8 referenced in function _$e273
exports2.obj : error lnk2019: unresolved external symbol _dllfindresourcea@12 referenced in function _$e275
release/xbmc.exe : fatal error lnk1120: 7 unresolved externals
how do i fix it ?
jmarshall
2004-09-22, 23:02
there is an error in cvs at the moment - comment the lines that cause the issue (in dllloader) until it's fixed.
there is an error in cvs at the moment - comment the lines that cause the issue (in dllloader) until it's fixed.
ok. thanks..
could you plz tell me which file, which lines?
trying this for the first time and getting the same exact error http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cry.gif
could you plz tell me which file, which lines?
trying this for the first time and getting the same exact error *http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cry.gif
edit xbmc/xbmc/cores/dllloader/kernel32.h
at the end remove/comment:
exp2dll* kernel32_exp136 = new exp2dll("kernel32.dll", "locallock", (unsigned long) dlllocallock);
exp2dll* kernel32_exp137 = new exp2dll("kernel32.dll", "localhandle", (unsigned long) dlllocalhandle);
exp2dll* kernel32_exp138 = new exp2dll("kernel32.dll", "localunlock", (unsigned long) dlllocalunlock);
exp2dll* kernel32_exp139 = new exp2dll("kernel32.dll", "globalhandle", (unsigned long) dllglobalhandle);
exp2dll* kernel32_exp140 = new exp2dll("kernel32.dll", "globalunlock", (unsigned long) dllglobalunlock);
exp2dll* kernel32_exp141 = new exp2dll("kernel32.dll", "loadresource", (unsigned long) dllloadresource);
exp2dll* kernel32_exp142 = new exp2dll("kernel32.dll", "findresourcea", (unsigned long) dllfindresourcea);
edit xbmc/xbmc/cores/dllloader/msvcrt.h (don't know if this is nessesary)
and remove/comment:
#ifdef global_scope
extern "c" void isalnum(void);
#else
exp2dll* msvcrt_exp164 = new exp2dll("msvcrt.dll", "isalnum", (unsigned long)isalnum);
#endif
#ifdef global_scope
extern "c" void isxdigit(void);
#else
exp2dll* msvcrt_exp165 = new exp2dll("msvcrt.dll", "isxdigit", (unsigned long)isxdigit);
#endif
#ifdef global_scope
extern "c" void pow();
#else
exp2dll* msvcrt_exp166 = new exp2dll("msvcrt.dll", "pow", (unsigned long)pow);
#endif
works without second it seems
works without second it seems
thats what i thought.. but i hadn't tried it so i didn't know :)
ok, i like the script posted in this thread for building.
but it didnt create a dated folder and seperate the txts.
also i wanted to add scripts like kml en aqtbrowser so i adapted it a bit.
it creates almost a ***** like release rar, except it also adds python and scripts to it. just change a bit if you dont want it.
######
homedir, there all the source codes and additional skins, scripts will be located.
dont forget to download the required audio/video codecs for xbmc from mplayer!!.. and put them in codecs folder.
create a builds folder or creating a rar will fail...
######
here's the code:
@echo off
cls
title xbmc build prepare script
echo preparing the build...
:: homedir where all files will be located ::
set home=e:\xbox tools\xbmc source
:: 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
:: a directory containing any custom scripts (can be empty) ::
set scripts=%home%\scripts
:: path to command line cvs, from http://www.cvshome.org/downloads.html ::
set cvs=c:\program files\cvs\cvs.exe
:: path to visual studio .net 7.1 2003 (with ms xbox sdk 5778+ installed) ::
set net=c:\progra~1\microsoft visual studio .net 2003\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=c:\progra~1\winrar\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=%home%\xbmctex.exe
:: path to xbepatch, from http://www.xbox-scene.com/tools/tools.php?page=xbexbx ::
set xbe=%home%\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\xbmc-%yyyy%-%mm%-%dd%"
copy "%home%\xbmc\release\default.xbe" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%"
copy "%home%\xbmc\*.xml" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%"
copy "%home%\xbmc\*.txt" "%home%\upload"
xcopy "%home%\xbmc\mplayer" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\mplayer" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\project mayhem\fonts" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\skin\project mayhem\fonts" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin\project mayhem\*.xml" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\skin\project mayhem" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\credits" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\credits" /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\language" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\language" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\xbmc\keyboard\media" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\media" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\visualisations" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\visualisations" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\weather" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\weather" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\python" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\python" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\scripts" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\scripts" /e /q /i /y /exclude:exclude.txt
xcopy "%codecs%" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\mplayer\codecs" /e /q /i /y
xcopy "%skins%" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\skin" /e /q /i /y
xcopy "%scripts%" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\scripts" /e /q /i /y
echo compressing textures...
"%tex%" -input "%home%\xbmc\skin\project mayhem\media" -output "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\skin\project mayhem\media"
echo extracting archives...
"%rar%" %extractops% "%home%\xbmc\web\xbmc.rar" "%home%\upload\xbmc-%yyyy%-%mm%-%dd%\web\"
echo rarring...
"%rar%" %compressops% "%home%\builds\xbmc-%yyyy%-%mm%-%dd%.rar" "%home%\upload\*"
echo finished!
can anyone tell me if the script from xbmc dir are required or not?
i dont really like that mess...
compile works bit it doesnt play anything :(
will start though......
compile works bit it doesnt play anything :(
will start though......
yep same here http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cry.gif
i just downloaded the cvs from date 21-sep. hope this will work until the cvs tree is fixed.
jmarshall
2004-09-23, 23:36
cvs should be fine now.
cvs should be fine now.
great news!!! :bowdown: :thumbsup: :kickass:
where we're sharing compile code.. here is my modified script. it will prompt you for what action to perform (you'll need choice.com)
choices are:
1 - retrieve xbmc cvs source
2 - retrieve mplayer cvs source
3 - clean and compile xbmc
4 - compile mplayer dll
5 - make upload dir and rar
6 - exit
you'll need to setup the environment for the mplayer.dll compile first (search for the thread describing this)
i put it all under c:\makexbmc\ on my system...
it also uses the new project mayhem web interface
@echo off
cls
title xbmc build prepare script
rem ============================
rem === script options start ===
rem ============================
:: where this file is located ::
set home=c:\makexbmc
:: a directory containing any custom skins (can be empty) ::
set skins=%home%\skins
:: a directory containing any custom scripts (can be empty) ::
set scripts=%home%\scripts
:: a directory containing any custom python libs (can be empty) ::
set python=%home%\python
:: 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=%home%\mycvs\cvs.exe
:: path to visual studio .net 7.1 2003 (with ms xbox sdk 5778+ installed) ::
set net=c:\program files\microsoft visual studio .net 2003\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=c:\program files\winrar\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=%home%\xbmctex.exe
:: path to xbepatch, from http://www.xbox-scene.com/tools/tools.php?page=xbexbx ::
set xbe=%home%\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
rem ==========================
rem === script options end ===
rem ==========================
:start
cd "%home%"
echo.
echo 1 - retrieve xbmc cvs source
echo 2 - retrieve mplayer cvs source
echo 3 - clean and compile xbmc
echo 4 - compile mplayer dll
echo 5 - make upload dir and rar
echo.
echo 6 - exit
echo.
choice /c:123456 please select an option:
if errorlevel 6 goto ende
if errorlevel 5 goto uploadandrar
if errorlevel 4 goto compilemplayer
if errorlevel 3 goto compilexbmc
if errorlevel 2 goto mplayercvs
if errorlevel 1 goto xbmccvs
goto start
:xbmccvs
echo retrieving xbmc cvs source...
"%cvs%" -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout xbmc
goto start
:mplayercvs
echo retrieving mplayer cvs source...
"%cvs%" -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout mplayer
goto start
:compilexbmc
echo cleaning solution...
"%net%" "%opts%" /clean release
echo building solution...
"%net%" "%opts%" /build release
echo patching xbe...
"%xbe%" "%home%\xbmc\release\default.xbe"
goto start
:compilemplayer
echo compiling new mplayer dll file
cd "%home%\minsys\"
start /wait msys.cmd
goto start
:uploadandrar
echo cleaning upload directory...
rmdir "%home%\upload" /s /q
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\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\mplayer" "%home%\upload\mplayer" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\mplayer\mplayer.dll" "%home%\upload\mplayer\" /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\python" "%home%\upload\python" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\scripts\*.py" "%home%\upload\scripts" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\xbmc\skin" "%home%\upload\skin" /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 deleting unneeded script files...
del /f /q /s "%home%\upload\scripts
xcopy "%scripts%" "%home%\upload\scripts" /e /q /i /y
xcopy "%python%" "%home%\upload\python" /e /q /i /y
echo compressing textures...
"%tex%" -input "%home%\xbmc\skin\project mayhem\media" -output "%home%\upload\skin\project mayhem\media"
echo deleting media files as they are not needed...
del /f /q "%home%\upload\skin\project mayhem\media\*.png
del /f /q "%home%\upload\skin\project mayhem\media\*.gif
del /f /q "%home%\upload\skin\project mayhem\media\*.jpg
echo deleting mediaplayer skin
rmdir "%home%\upload\skin\mediacenter" /s /q
echo extracting archives...
"%rar%" %extractops% "%home%\xbmc\web\project_mayhem*.rar" "%home%\upload\"
rem "%rar%" %extractops% "%home%\xbmc\scripts\*.rar" "%home%\upload\scripts\"
echo rarring...
"%rar%" %compressops% "%home%\builds\xbmc xbox media center %yyyy%-%mm%-%dd%.rar" "%home%\upload\*"
goto start
:ende
echo finished!
feel free to modify this.. i did :)
ok, can somebody plz explain what im doing wrong.
im using the build file like posted earlier.
all goes fine, it starts, but i can play a thing..... http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cry.gif
24-09-2004 00:25:30 info mplayer play:g:\movies\50.first.dates.2004.dvdrip.xvid-incite\incite-50.first.dates.proper.avi cachesize:1024
24-09-2004 00:25:31 info cached subtitle g:\movies\50.first.dates.2004.dvdrip.xvid-incite\incite-50.first.dates.proper.srt->z:\subtitle.srt
24-09-2004 00:25:31 debug initializing fs_seg..
24-09-2004 00:25:31 debug fs segment @ 0x8faa80
24-09-2004 00:25:31 info flipping bi-directional subtitles disabled
24-09-2004 00:25:31 debug msg:enable mplayer osd
24-09-2004 00:25:31 debug msg:mplayer 1.0pre5-3.3.3 © 2000-2004 mplayer team
24-09-2004 00:25:31 debug msg:cpu: intel celeron 2/pentium iii coppermine,geyserville 727.2 mhz
24-09-2004 00:25:31 debug msg:(family: 6, stepping: 10)
24-09-2004 00:25:31 debug msg:detected cache-line size is 32 bytes
24-09-2004 00:25:31 debug msg:cpuflags: mmx: 1 mmx2: 1 3dnow: 0 3dnow2: 0 sse: 0 sse2: 0
24-09-2004 00:25:31 debug msg:compiled for x86 cpu with extensions:
24-09-2004 00:25:31 debug msg: mmx
24-09-2004 00:25:31 debug msg: mmx2
24-09-2004 00:25:31 debug msg: sse
24-09-2004 00:25:31 debug msg:
24-09-2004 00:25:31 debug msg:reading config file q:\mplayer/mplayer.conf
24-09-2004 00:25:31 debug msg:
24-09-2004 00:25:31 debug msg:reading config file q:\mplayer\config
24-09-2004 00:25:31 debug msg:error opening file [(null)] for writing!
24-09-2004 00:25:31 error cmplayer::openfile() g:\movies\50.first.dates.2004.dvdrip.xvid-incite\incite-50.first.dates.proper.avi failed
24-09-2004 00:25:31 debug msg:error opening file [(null)] for writing!
keep getting that error, already redownloaded entire cvs...
my xbe is 7,909,376 big.
thats almost a meg bigger than the 9-9 release which i downloaded.
im using visual studio ea 2003 7.1 and sdk 5849.
my xbe that i just compiled is also 7,909,376 bytes large. but i have no problems with it.. from looking at your script, it looks like your copying the mplayer.dll not out of the cvs dir, so your using which? try using the mplayer.dll and conf from the xbmc cvs and see if that helps.. or download the cvs version of the mplayer.dll and compile that.
yes i am using the mplayer dll from cvs, copying the same thing as you do with your script.......
will try compiling mplayer with your script right now
well compiled it, it was the exact same size, but guess what.....all is fine now :shocked:
johnh123
2004-09-24, 09:08
is the mplayer from xbmc cvs up to date- ie how much 'advantage' is there to getting it straight from mplayer cvs as opposed to xbmc cvs?
Gamester17
2004-09-24, 14:42
is the mplayer from xbmc cvs up to date- ie how much 'advantage' is there to getting it straight from mplayer cvs as opposed to xbmc cvs?off-topic, but currently our mplayer-core in xbmc in cvs is ported from mplayer-1.0pre5 (and so will it also be for xbmc 1.1.0).
you have to check mplayer own cvs and changelogs to see exacly what has changed and what is new since mplayer-1.0pre5
i still got something i can't fix
today i compiled xbmc and i compared it to the 09-25 i found on the net. i saw that mine was about 1 meg smaller.
but the main thing is that i don't have control over the charset. i only get 1 option which is "?0?"
so i must be forgetting something. could anybody help me out. i am using the manual by frodo above
problem fixed !!! just erased evrything and downloaded again
SupaDawg
2004-10-27, 07:53
are those cvs instructions still good?
my version of wincvs desnt seem to be able to follow the setup format. i see "checkout module" under remote, but it doesnt seem to have the same options. any help would be great.
big thanks.
jmarshall
2004-10-27, 11:46
use tortoisecvs. it's free, and far better than wincvs.
have a look on the online manual. in the dev section it contains a howto for compiling mplayer, with how to set up tortoisecvs. just change the module name to xbmc (in caps) and it'll checkout the xbmc sources.
then load the solution file into devstudio and build.
SupaDawg
2004-10-28, 01:59
big thanks, i'll give this a shot tonight.
have a look on the online manual. in the dev section it contains a howto for compiling mplayer, with how to set up tortoisecvs. just change the module name to xbmc (in caps) and it'll checkout the xbmc sources.
i tried exactly that, but it prompts me for a password. i used to use wincvs, and now i'm giving this a go, but, what to do?? :lookaround:
edit: nevermind, i am a tool. got it. sorry to bother... :bowdown:
i got the recent cvs files just as instructed with tortoise.
but when i go to open solution in vsn 2003, i get these errors:
"......\guilib.vcproj" failed to open. and
".....\xbmc.vcproj" failed to open.
etc... (four error messages total, the four entries in "solution explorer".
what am i doing wrong? i used to be able to comple fine back when i could get wincvs to work...
thank you for any help you can give this schmuck. :bowdown:
Diontae16
2004-11-14, 18:15
-last updated 7-21-2005-
credit goes to the following people:
frodo
cocoliso
yuyu
jmarshall
things you'll need:
- visual studio.net 7.1 (2003)
(faq: question; can vc++ 6.0 compile xbmc? answer; no)
- microsoft xbox sdk (xdk) 5778 or later
(faq: question; can older xdk compile xbmc? answer; no)
-install visual studio.net
-when installing vs.net. make sure to install all everything.
-then install the xdk
-make sure to do a full install of the xdk!!! minimal or customized install wont work
ok, here's my guide. this is how to compile "xbmc" manually, i hope my manual guide work for you guys as it works for me.
note: i use "tortoise cvs" to download the cvs source.
-how to download the cvs xbmc source-.
you need a cvs client, i prefer "tortoise cvs" for it's ease of use, get it here (http://www.tortoisecvs.org/)
(note! if you want to be sure you get all new files then do "cvs checkout" instead of "cvs update").
next, open up the cvs client by right-clicking on the main desktop menu and choose "cvs checkout module"
now enter this for the "cvs root"
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xbmc
here's a little picture
http://dday.tx-shells.net/cvs.jpg
now look at the "module:" info above you and you'll see xbmc in the picture, note how it's capitalized.
"xbmc".
note: everything is case sensitive.
now choose ok and you'll begin to start downloading the source.
when the source is finished being downloaded, startup vs.net and (via file->open solution) open the xbmc solution (xbmc.sln) .
in the drop down box choose "release xbox".
then rebuild the entire thing using build->rebuild solution
after a while things should b compiled & ready: do not worry about the following messages;
<span style='color:blue'>error x1001: could not connect to the xbox"
warning im1029: library xkbd is unapproved
warning im1029: library xonline is unapproved
warning im1030: this image may not be accepted fc
warning im1043: feature xmouse *is unapproved</span>
<span style='color:green'>or</span>
<span style='color:blue'>creating xbox image...
imagebld : warning im1029: library xonline is unapproved
imagebld : warning im1030: this image may not be accepted for certification
copying files to the xbox...</span>
this is normal.
now make a new folder on your computer somewhere and move the following files onto the new folder:
here's what you need to do. next, you'll need to move files from the cvs after you rebuild it to a new folder. move the following files.
release\default.xbe\
changelog.txt
copying.txt
filezilla server.xml
kai-vectors.xml
keymap.xml
keymapping.txt
known_issues.txt
voicemasks.xml
xboxmediacenter.xml
now move the following folders:
credits
language
media
python
screensavers
scripts
skin
sounds
system
visualizations
web
next, you'll need to do some changes, here's the following
1. add codecs to this folder.
q:\system\players\mplayer\codecs\
2. next go to scripts and extract the zipped files by choosing "extract here". then delete the zipped archives.
3. next go to the web folder and do the same thing as step 2, extract the zipped archives by choosing "extract here", then erase the zipped archives.
4. next, go to the first folder of your "xbmc" app and delete all the folders named "cvs" "cvsignore" and "src". you need to have viewing of hidden files and folder on. an easier way to do this is choose search and search for all files named "cvs" and "src" and delete all those files. you're done.
5. download the "in_mp3.dll" file and place it in
q:\system\players\paplayer\
download here (http://www.pcpages.com/diontae16/inmp3dll.zip)
optional 1: to compile "xbmc" automatically, use yuyu's automatic batch script and guide, get it here (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=8;t=7974)
optional 2: if you want to use the latest and up-to-date project mayhem ii skin, you can download it from critkill's website. the skin that are hosted there themselves are made by chokemaniac. go here (http://www.chokemaniac.net/) to go to the website. you can find the latest "pm ii" skin in the "downloads" section of the website.
codecs/mplayer links:
<span style='color:green'>dday codec's last updated 11-08-2004</span>
dday's codecs (http://dday.tx-shells.net/xbmc.codecs.rar)
dday's codecs 2, only use if above link don't work (http://w1.515.telia.com/~u51509228/xbmc.codecs.rar)
<span style='color:green'>diontae16 codec's last updated 4-15-2005 (new codecs)</span>
diontae16 codecs (http://www.pcpages.com/diontae16/xbmccodecs.zip)
in_mp3.dll (http://www.pcpages.com/diontae16/inmp3dll.zip)
mplayer gcc series (http://www.pcpages.com/diontae16/mplayer-gcc.zip)
diontae16 codecs and cvs mplayer (http://www.pcpages.com/diontae16/mplayer%20and%20codecs%20(d16).zip)
ezar2003's codecs (http://www.telefonica.net/web2/ezarzone/codecs.rar)
official xbmc codecs thread (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st&f=4&t=1921&st=&&#entry8633)
python and scripts:
dday's python and plug-ins (http://dday.tx-shells.net/python.rar)
dday's python and plug-ins 2, only use if above link don't work (http://www.pcpages.com/diontae16/python.zip)
diontae16 python libs (http://www.pcpages.com/diontae16/python%20libs.zip)
dday's script's (http://dday.tx-shells.net/scripts.rar)
python and scripts homepage (http://dwl.xboxmediacenter.de/)
kmlbrowse and simplekml fix scripts (http://www.pcpages.com/diontae16/kmlbrowseandsimplekmlscripts.zip)
i will continue to update this when i see the need.
Vortex_ICS
2004-11-16, 05:21
striker, what's your latest automated batch file to compile xbmc ?
we would love to see if you have made some improvements...
thnks :kickass:
anybody know if visual c++ 2005 express edition beta will work with xdk to compile? or does it need to be visual studio.net 2003?
hi all,
i'm trying to get a working release script
looking at one of the scripts posted by ythan earlier in this thread, it tries to extract
"%rar%" %extractops% "%home%\xbmc\web\xbmc.rar" "%home%\upload\web\"
"%rar%" %extractops% "%home%\xbmc\python\python.rar" "%home%\upload\python\"
in the current cvs there are
web.rar
project_mayhem_webserver_v1.1.2.rar
in the web folder, and in the scripts folder there are
scripts.rar
user_submitted.rar
and a bunch of .py files
what do i need to do with these?
thanks
hi all,
i'm trying to get a working release script
looking at one of the scripts posted by ythan earlier in this thread, it tries to extract
"%rar%" %extractops% "%home%\xbmc\web\xbmc.rar" "%home%\upload\web\"
"%rar%" %extractops% "%home%\xbmc\python\python.rar" "%home%\upload\python\"
in the current cvs there are
web.rar
project_mayhem_webserver_v1.1.2.rar
in the web folder, and in the scripts folder there are
scripts.rar
user_submitted.rar
and a bunch of .py files
what do i need to do with these?
thanks
why don't you check out my xbmc (download, build, rar) package?
you can find the thread for it here (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=8;t=7974)
i have it updated to the current cvs and it works great...
ok, that looks great, it's downloading now and looks great.
did i mention it looks great?
oh yeah, i was actually working on some kind of script but now i've seen that, what's the point in re-inventing the wheel?
i do have a couple of suggestions though.
firstly, you say the compiler must be in c:\progra....
here's a little script that'll find it anywhere.
feel free to add it, or not :)
:findcompiler_begin
set msvcnet2003_compiler=devenv
call :testreachability
if not errorlevel 1 goto findcompilersuccess
rem check if handy location variable from installation is available
if defined vs71comntools (
for /f "delims=" %%i in ("%vs71comntools%..\ide") do set msvcnet2003_compiler="%%~fi\devenv"
call :testreachability
if not errorlevel 1 goto findcompilersuccess
) else (
echo %~n0: variable vs71comntools undefined. visual studio .net 2003 might not be installed properly.
set errorlevel 1
goto findcompiler_end
)
rem ran out of ideas...
echo %~n0: visual studio .net 2003 compiler not found.
goto :eof
:testreachability
rem test reachability by calling up usage info on compiler
%msvcnet2003_compiler% /? > nul 2>&1
goto :eof
:findcompilersuccess
echo %~n0: msvcnet2003_compiler=%msvcnet2003_compiler%
:findcompiler_end
secondly, is there an easy way to get it to build from my sources? if i wanted to try adding something to the source, can i get it to build me an upload directory based on my sources? if not, maybe you could add some command line switches so that developer wannabes can use it to.
thanks again for this script, it's great :)
i've now tried the script a couple of times and i'm pretty sure there's something wrong with it.
in the upload directory, under mplayer there is just codecs, no mplayer.dll
in the skins\project mayhem\ there is a file called media, should be a folder.
i think you might need a \ on the end of this line
copy "%home%\xbmc\skin\project mayhem\media\textures.xpr" "%home%\upload\skin\project mayhem\media
just comparing this with a release i got off suprnova, i found the following differences.
all docs moved to the docs folder (fair enough, looks tidier this way)
credits folder is missing
media folder is empty
skin\project mayhem contains only one file "media" and an empty fonts folder
visualisations folder is empty
weather folder is empty
am i doing something wrong?
thanks for any help
i've now tried the script a couple of times and i'm pretty sure there's something wrong with it.
in the upload directory, under mplayer there is just codecs, no mplayer.dll
in the skins\project mayhem\ there is a file called media, should be a folder.
i think you might need a \ on the end of this line
copy "%home%\xbmc\skin\project mayhem\media\textures.xpr" "%home%\upload\skin\project mayhem\media
just comparing this with a release i got off suprnova, i found the following differences.
all docs moved to the docs folder (fair enough, looks tidier this way)
credits folder is missing
media folder is empty
skin\project mayhem contains only one file "media" and an empty fonts folder
visualisations folder is empty
weather folder is empty
am i doing something wrong?
thanks for any help
umm, it works fine for everybody in the x-s forums... not sure, unless you don't actually have my script and you have a different one?
sorry, i think i've found the problem now,
just running it to make sure
the problem was that i was running the script in d:\cvs\dbr
and all of the exclude file stuff with xcopy excluded everything because of the cvs in the full path.
i'll let you know how i get on.
hmm, wanna get on as part of my one man team and write the part that would automatically find the unrar.exe and rar.exe install directories? since you already have the solution for the visual studio... i figure i'll add this functionality if you can write it, i will go ahead and figure it out sometime if you don't feel like it...
ok, here's something i knocked up
i'm not really a command script programmer so forgive the ugliness of it, but it does work on my system
feel free to tidy it up or just rewrite it :)
i kind of figured out what was going on in some of the earlier posts and hacked something together from that.
set rar_get_reg_cmd=reg query "hklm\software\microsoft\windows\currentversion\ap p paths\winrar.exe" /v path
for /f "tokens=3 delims= " %%f in ('%rar_get_reg_folder%') *do (
set winrarfolder=%%f
)
echo %winrarfolder%
set rar=%winrarfolder%\rar.exe
set unrar=%winrarfolder%\unrar.exe
echo %rar%
echo %unrar%
and here's a little thing to let the user know it won't work in a path with cvs in it
echo %home% | find "cvs"
if errorlevel 1 (
echo this script won't work if run in a folder with cvs in it %home%
pause
exit 1
)
Blackwidow
2004-11-22, 16:08
when compiling with vs.net. if i would leave my xbox on with the xdk launcher on when it is compiling at the end when it says connecting to xbox. would it connect and what would it do? would it copy files? it is setup as a dev debug xbox and i have the xbox neighborhood on my desktop and my xdk launcher ip address is setup for vs.net. just wondering i can compile with just vs but was wondering what it would do if it actually connected to my xbox. thanks
i just thought i'd post the latest version of my build script. it can also be found floating around the net as part of the make xbmc package (mkxbmc-1.rar, mkxbmc-2.r##, mkxbmc-3.r##). just edit the options and run, it should be pretty self-explanatory. the three build choices which you're presented with do the following:
"quick" downloads any changed files in the xbmc source, downloads the project mayhem aqtbrowser, kmlbrowse and webserver skins if they aren't cached locally, compiles a new build of xbmc and prepares a release in the \release subdirectory.
"full" deletes and re-downloads the xbmc source and project mayhem aqtbrowser, kmlbrowse and webserver skins, compiles a new build of xbmc, prepares a release in the \release subdirectory and compresses the release to a date-tagged .rar in the \builds subdirectory.
"compress" compresses the files in the \release subdirectory to a date-tagged .rar in the \builds subdirectory.
@echo off
title make xbmc
:: set the xbmc version ::
set version=1.1.0
:: set your tag ::
set