PDA

View Full Version : HOW-TO compile XBMC for Xbox from SVN


Frodo
2003-10-01, 08:11
Details in the wiki (http://xbmc.org/wiki/?title=HOW-TO_compile_XBMC_for_Xbox_from_source_code).

meghead
2003-11-24, 10:16
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

meghead
2003-12-07, 06:24
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

lixer
2004-01-04, 23:21
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.

Farfar
2004-01-04, 23:31
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.

Donman
2004-01-14, 05:54
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).

Donman
2004-01-15, 09:04
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?

b54
2004-01-31, 16:20
i have exact the same problem. i use a german installation of visual studio 2003 .net.

whats wrong with my setup ?

sers

b54

b54
2004-01-31, 19:36
hi all,

fixed the problem, the solution was reinstalling the xdk.

now it worx fine :)

san9jay
2004-02-02, 01:43
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?

tslayer
2004-02-02, 03:12
i am having no such issues.

is this a rebuild solution? you can try doing a clean first and then rebuild.

ts

san9jay
2004-02-02, 10:47
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.

MrC
2004-02-02, 13:22
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

san9jay
2004-02-02, 21:48
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.

ezd
2004-02-03, 15:03
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?

MrC
2004-02-03, 15:05
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

ezd
2004-02-03, 15:14
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!

ezd
2004-02-03, 15:42
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

chadoe
2004-02-03, 19:57
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

chadoe
2004-02-03, 20:20
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 :)

tslayer
2004-02-06, 07:22
- 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

ezd
2004-02-09, 02:24
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.

ezd
2004-02-09, 14:08
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)

Xusen
2004-02-10, 19:02
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

ezd
2004-02-10, 19:06
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

Xusen
2004-02-10, 19:14
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

ezd
2004-02-10, 19:25
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...

mosax
2004-02-12, 18:15
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

lixer
2004-02-15, 11:26
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

ludo2
2004-02-27, 14:21
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

ludo2
2004-02-27, 15:51
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\

erpi99
2004-03-03, 08:37
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.

mc_365
2004-03-10, 04:45
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.

outlaw
2004-03-13, 08:21
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.

frop
2004-03-16, 08:55
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

frop
2004-03-16, 10:05
oh. i was using 5558, mis read it as 5778. dammit. well thanks.

knubile
2004-03-16, 18:41
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?

Butcher
2004-03-16, 19:07
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.

Xusen
2004-03-22, 17:00
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

stokkes
2004-03-22, 23:41
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

Kobazz
2004-03-23, 02:12
what corrections did you make to build.bat? stokkes?

senergy
2004-03-23, 09:23
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.

menion
2004-03-23, 10:51
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

Butcher
2004-03-23, 13:26
if you want to be sure you're getting new files - do checkout instead of update.

stokkes
2004-03-23, 23:11
is there a cvs checkout option in tortoise?

Butcher
2004-03-24, 12:43
yes, there is. you need the click on the directory that contains your xbmc directory.

stokkes
2004-03-24, 19:01
bleah

Ythan
2004-04-05, 11:07
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!

svartis
2004-04-11, 20:10
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! =)

sigtom
2004-04-12, 01:02
ythan,

thanks as well, just started using your script last night, after making some adjustments, works great.

tober
2004-04-17, 04:08
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.

jaga
2004-04-18, 17:11
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).

Ythan
2004-04-19, 03:35
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!

Azra28
2004-04-22, 13:04
you must install directx xdk and after compil it

Butcher
2004-04-22, 16:32
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

martinj
2004-05-07, 21:34
got it to work, works great!

Sylver
2004-05-11, 11:51
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 ???

darkie
2004-06-15, 01:03
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 !

nimbles
2004-06-28, 17:01
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 ??

darkie
2004-07-08, 01:46
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 ...

t029248
2004-07-20, 11:05
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.

CJ145
2004-08-06, 06:56
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

Anomaly
2004-09-18, 02:22
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...

Nickman
2004-09-22, 22:43
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.

Nickman
2004-09-22, 23:29
there is an error in cvs at the moment - comment the lines that cause the issue (in dllloader) until it's fixed.
ok. thanks..

Striker
2004-09-22, 23:58
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

Nickman
2004-09-23, 08:52
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

Striker
2004-09-23, 14:54
works without second it seems

Nickman
2004-09-23, 16:07
works without second it seems
thats what i thought.. but i hadn't tried it so i didn't know :)

Striker
2004-09-23, 17:25
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...

Striker
2004-09-23, 18:30
compile works bit it doesnt play anything :(
will start though......

Nickman
2004-09-23, 22:15
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.

Nickman
2004-09-23, 23:39
cvs should be fine now.
great news!!! :bowdown: :thumbsup: :kickass:

Msan
2004-09-24, 00:36
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 :)

Striker
2004-09-24, 01:35
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 &copy; 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.

Msan
2004-09-24, 01:43
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.

Striker
2004-09-24, 02:12
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

Ariek
2004-09-26, 16:11
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.

Xombe
2004-10-31, 17:55
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:

Xombe
2004-11-11, 11:37
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:

Kcorpir
2004-11-17, 00:28
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?

jgawera
2004-11-18, 14:25
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

YuYu
2004-11-18, 19:19
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...

jgawera
2004-11-19, 01:40
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 :)

jgawera
2004-11-19, 11:31
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

YuYu
2004-11-19, 17:40
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?

jgawera
2004-11-19, 17:58
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.

YuYu
2004-11-19, 19:00
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...

jgawera
2004-11-20, 02:15
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%

jgawera
2004-11-20, 11:13
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

Ythan
2004-12-16, 08:25
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 tag=[anonymous]

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

:: get the current location, this is only set automatically on nt ::
set home=%cd%

:: the files and directories in this location will be copied to the distribution ::
set include=%home%\include

:: path to command line cvs, from http://www.cvshome.org/downloads.html ::
set cvs=%home%\programs\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

:: path to command line rar.exe included with winrar, from http://www.rarlab.com/download.htm ::
set rar=%home%\programs\rar\rar.exe
:: compression options ::
set compressops=a -ep1 -r -m5 -y
set rarcomment=%home%\comment.txt
:: extraction options ::
set extractops=x -r -y

:: path to general search and replace, from http://home.online.no/~tjaberg/ ::
set gsar=%home%\programs\gsar\gsar.exe

:: path to url2file, from http://www.chami.com/free/url2file_wincon.html ::
set url2file=%home%\programs\url2file\url2file.exe

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

if not exist "%home%" goto error
if not exist "%cvs%" goto error
if not exist "%net%" goto error
if not exist "%rar%" goto error
if not exist "%gsar%" goto error
if not exist "%url2file%" goto error
if not exist "%xbe%" goto error
goto start

:error
cls
echo a directory or file specified in this script's configuration does not exist.
echo please edit this file, fix the error and try again.
goto finished

:start
cls
echo please choose a build method and press enter:
echo.
echo [q]uick
echo [f]ull
echo [c]ompress
echo [e]xit
echo.
set choice=
set /p choice=
if not '%choice%'=='' set choice=%choice:~0,1%
if /i '%choice%'=='q' goto compile
if /i '%choice%'=='f' goto compile
if /i '%choice%'=='c' goto compress
if /i '%choice%'=='e' exit
goto start

:compile
cls
echo starting the build process. some steps may take a while.
echo.
echo cleaning local data...
if exist "%temp%\makexbmc\" rmdir "%temp%\makexbmc\" /s /q
cd /d "%home%"
if exist exclude.txt del exclude.txt
echo cvs>exclude.txt
echo german (austia)>>exclude.txt
echo portugese>>exclude.txt
echo schinese>>exclude.txt
echo tchinese>>exclude.txt
echo thumbs.db>>exclude.txt
echo trkish>>exclude.txt
if /i '%choice%'=='f' if exist "%home%\cache\" rmdir "%home%\cache\" /s /q
if /i '%choice%'=='q' if exist "%home%\cache\xbmc\release\" rmdir "%home%\cache\xbmc\release\" /s /q
if not exist "%home%\cache" mkdir "%home%\cache"
echo retrieving xbmc source...
cd /d "%home%\cache"
"%cvs%" -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout xbmc
echo retrieving additional files...
if not exist "%home%\cache\aqtbrowser.rar" "%url2file%" "http://www.critikill.net/content/file10.asp" "%home%\cache\aqtbrowser.rar"
if not exist "%home%\cache\kmlbrowse.rar" "%url2file%" "http://www.critikill.net/content/file9.asp" "%home%\cache\kmlbrowse.rar"
if not exist "%home%\cache\webserver.rar" "%url2file%" "http://www.critikill.net/content/file12.asp" "%home%\cache\webserver.rar"
echo building xbmc...
"%net%" /rebuild release xbox "%home%\cache\xbmc\xbmc.sln"
if not exist "%home%\cache\xbmc\release\default.xbe" echo there was an error building xbmc. please check your system setup.
if not exist "%home%\cache\xbmc\release\default.xbe" goto finished
echo patching xbe...
"%xbe%" "%home%\cache\xbmc\release\default.xbe"
echo cleaning release directory...
if exist "%home%\release" rmdir "%home%\release" /s /q
md "%home%\release"
md "%home%\release\docs"
md "%home%\release\scripts"
echo extracting archives...
"%rar%" %extractops% "%home%\cache\aqtbrowser.rar" "%temp%\makexbmc\aqtbrowser\"
del "%temp%\makexbmc\aqtbrowser\*16x9.*"
"%rar%" %extractops% "%home%\cache\webserver.rar" "%home%\release\web\"
if exist "%include%\scripts\kmlbrowse.py" "%rar%" %extractops% "%home%\cache\kmlbrowse.rar" "%home%\release\scripts\"
echo copying files...
cd /d "%home%"
xcopy "%home%\cache\xbmc\credits" "%home%\release\credits" /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\language" "%home%\release\language" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\media" "%home%\release\media" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\mplayer" "%home%\release\mplayer" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\python" "%home%\release\python" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\screensavers" "%home%\release\screensavers" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\skin\project mayhem\*.xml" "%home%\release\skin\project mayhem" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\skin\project mayhem\fonts" "%home%\release\skin\project mayhem\fonts" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\visualisations" "%home%\release\visualisations" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\weather" "%home%\release\weather" /e /q /i /y /exclude:exclude.txt
xcopy "%home%\cache\xbmc\xbmc\keyboard\media" "%home%\release\media" /e /q /i /y /exclude:exclude.txt
if exist "%include%" xcopy "%include%" "%home%\release" /e /q /i /y
copy "%home%\cache\xbmc\release\default.xbe" "%home%\release"
copy "%home%\cache\xbmc\*.xml" "%home%\release"
copy "%home%\cache\xbmc\*.txt" "%home%\release\docs"
copy "%home%\cache\xbmc\license.gpl" "%home%\release\docs\license.txt"
copy "%temp%\makexbmc\aqtbrowser\*.py" "%home%\release\scripts\"
copy "%temp%\makexbmc\aqtbrowser\*.png" "%home%\release\skin\project mayhem\media\"
copy "%home%\cache\xbmc\skin\project mayhem\media\textures.xpr" "%home%\release\skin\project mayhem\media\"
copy "%home%\cache\xbmc\skin\project mayhem\media\background.png" "%home%\release\skin\project mayhem\media\"
copy "%home%\cache\xbmc\skin\project mayhem\media\background2.png" "%home%\release\skin\project mayhem\media\"
echo deleting files...
del "%home%\exclude.txt"
del "%home%\release\screensavers\template*.*"
del "%home%\release\scripts\put this in your scripts folder.txt"
rmdir "%temp%\makexbmc\" /s /q
echo updating files...
"%gsar%" "-sxbox media center %version%" "-rxbmc %version% %tag%" -o "%home%\release\language\english\strings.xml"
"%gsar%" "-sdefault_size = 2" "-rdefault_size = -1" -o "%home%\release\scripts\aqtbrowser.py"
if /i '%choice%'=='q' goto finished

:compress
echo compressing distribution...
if exist "%home%\builds\xbmc xbox media center %version% %yyyy%-%mm%-%dd% %tag%.rar" del "%home%\builds\xbmc xbox media center %version% %yyyy%-%mm%-%dd% %tag%.rar"
"%rar%" %compressops% "%home%\builds\xbmc xbox media center %version% %yyyy%-%mm%-%dd% %tag%.rar" "%home%\release\*"
if exist "%rarcomment%" "%rar%" c -z"%rarcomment%" "%home%\builds\xbmc xbox media center %version% %yyyy%-%mm%-%dd% %tag%.rar"

:finished
echo.
echo script completed.
echo 
pause

Nuka1195
2004-12-16, 22:35
edit: deleted (bad information)

nuka1195 :nuts:

jgawera
2004-12-17, 10:49
yes, that works, thanks
i'm not sure what happenned with that, i definately had it working on my xp machine and i have winrar in the "program files" folder so it does have a space in it.

looking at the code i posted, it can't have been the final version anyway as in one place i use rar_get_reg_cmd and a couple of lines later i use rar_get_reg_folder

ah well, it works now, maybe yuyu will add it to his cool script now. much nicer than the "directory setter" script i always forget to run :)

happy xbmc

Nuka1195
2004-12-17, 15:47
yeah, i didn't think you used cut and paste. :)

and i agree your method is very nice.

Nuka1195
2004-12-17, 17:11
this sets rar and unrar variables: delims= {tab} not spaces
original code by, jgawera

:: sets rar and unrar variables
set regcmd=reg query "hklm\software\microsoft\windows\currentversion\ap p paths\winrar.exe" /v path
for /f "tokens=3 delims= " %%i in ('%regcmd%') *do (
set rar=%%i\rar.exe
set unrar=%%i\unrar.exe
)

this sets net variable: delims={tab} not spaces

:: sets net variable
set regcmd=reg query "hklm\software\microsoft\windows\currentversion\ap p paths\devenv.exe" /ve
for /f "tokens=3 delims= " %%i in ('%regcmd%') *do (
set net=%%i
)


edit: streamlined code, cut and paste may not work

jgawera
2004-12-17, 17:27
did you see my earlier script

: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

uses variables created when visual studio is installed.

Nuka1195
2004-12-17, 17:38
interesting,

i edited my previous post. streamlined the code

Nuka1195
2004-12-17, 17:52
@ jgawera: i figured out what happened with your code. you put a tab after delims= and it only showed as a space. you can't copy and past. your code works perfectly.

jgawera
2004-12-17, 17:59
appart from having two different variable names :)

thanks, that was bugging the hell out of me.

are you working on your own script?
or a mod of the dbr script?

i've been looking for one that is a bit more customisable. i want one that i can use easily for developing, when i get some time (probably after the holidays now) i'd like to see if i can help with xbmc development. would be nice to have a quick script to work off my own source files instead of downloading them each time.
i guess it's probably easiest to just hack out bits of the dbr script.
maybe once that is fully automated then we can add some command line options to it so that you can choose which parts you want it to do.

Nuka1195
2004-12-17, 18:04
yes, i changed dbr, not that it didn't work great, but i did add more customizations. the ability to keep the cvs download, the ability to move the build folder instead of deleting it and some other changes.

i edited my other post and gave you credit for the code, that works great when you change the space to a tab. :)

i will be adding your code to my script. thanks

jgawera
2004-12-17, 18:13
i edited my other post and gave you credit for the code, that works great when you change the space to a tab. :)
thanks

i will be adding your code to my script. *thanks

any chance i can have a copy of it?
do you update it whenever yuyu updates his script?

thanks.

Nuka1195
2004-12-17, 18:30
sure, it's not as refined with echo messages and it's still a work in progress. i'll pm it to you. ok

Nuka1195
2004-12-19, 16:08
@ythan : i just read yuyu's credits and found out your one of the original creators of his script, which i use.

thank you

i like some of your ideas, i hope you don't mind me "borrowing" them.

i have no intention of releasing this, but i thought i would thank you.

@jgawera: i put your code in. i also cleaned up my changes if you would like to see it, let me know

and thanks yuyu, cheesyboofs and the whole xbmc development team.

Nuka1195
2004-12-21, 02:47
i've had a request from craxx for my script. so i've decide to post it here.

first thanks to yuyu for xbmcdbr.bat which was the original starting point.

thanks jgawera for code to find program locations and check for a valid path.

thanks ythan for the original script file and menu inspiration.

and anyone else who contributed.

i broke this in to two files one the build.bat and the other settings.bat. settings.bat is where you can change all (hopefully) script settings.

create your installation folder. (do not have cvs in any part of a folders name you create.)

copy settings.bat code and save it as settings.bat in your installation folder.

copy build.bat code and save it as build.bat in your installation folder.**** you must change {tab} to a literal tab no spaces. (jgawera's code for finding install locations will not work if you don't.)

then create a folder named programs (the folder name can be changed in settings.bat.) and put gsar.exe, cvs.exe and xbepatch.exe in this folder.

then create a folder named user modified files. (the folder name can be changed in settings.bat.) this folder contains the exact folder structure as the xbmc installation on the xbox. you do not need to create every folder or copy anything in to it if you don't want to. but if you do then you must follow the exact folder structure of xbmc installation. for example i add kai xlink's files kaid and kaid.conf to a kaid folder in the web folder. so i create a web folder in user modified files and a kaid folder in the web folder and copy these files there.

all other folders will be created as needed.

make any changes to settings.bat you like and run build.bat. i added a command switch /u. if you start build.bat with this it will run a full download and build from your settings in settings.bat and not prompt for any input.

thanks again to all who contributed.

watch for word wrap, some line need attention.

settings.bat
@echo off

:: user set variables.
set language=english
set filename=xbmc
set includedate=y
set savebuildfolder=y
set compressbuild=n
set keepcvs=y
set defaultskin=project mayhem
set webdefaultskin=proj*
set searchstring=xbox media center 1.1.0
set replacestring=xbox media center 1.1.0

:: setup working folders.
set home=%cd%
set workfolder=%home%\working folder
set buildfolder=%workfolder%\build folder
set finishedbuildsfolder=%home%\finished builds
set webdefaultskin=%workfolder%\xbmc\web\%webdefaultsk in%
set customfolder=%home%\user modified files
set programsfolder=%home%\programs

:: setup location for programs script uses.
set xbe=%programsfolder%\xbepatch.exe
set gsar=%programsfolder%\gsar.exe
set cvs=%programsfolder%\cvs.exe

:: sets programs options.
set cvsoptions=-z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout xbmc
set netoptions=/rebuild release xbox
set netsolution=%workfolder%\xbmc\xbmc.sln
set raroptions=a -ep1 -r -y -m5
set unraroptions=x -o+ -inul


build.bat *(change {tab} to a literal tab no spaces)
@echo off
title xbox media center build script!

:begin

:: command line argument.
set cmdswitch=%1

:: if switch is invalid display help.
if not "%cmdswitch%"=="" (
*if /i not "%cmdswitch%"=="/u" (
* *echo.
* *echo downloads, builds and compresses xbox media center.
* *echo build [/u]
* *echo.
* *echo * /u perform an unattended build.
* *echo.
* *echo the switch /u performs an unattended build based
* *echo on user set variables.
* *goto exitscript
*)
)

:start
cls
echo xbox media center build script!
echo.
echo.
echo doing some housekeeping . . .
echo.

call settings.bat

:: setup the builds filename.
for /f "tokens=2-4 delims=/.- " %%i in ('date /t') do set builddate=%%i.%%j.%%k
if /i "%includedate%"=="y" (
*set replacestring=%replacestring% ^(%builddate%^)
*if not "%filename%"=="" (
* *set filename=%filename%_%builddate%
*) else (
* *set filename=%builddate%
*)
)

:: checks if filename is blank.
if "%filename%"=="" (
*echo.
*echo invalid build filename. your filename is blank and includedate is no.
*echo either enter a filename or set includedate=y
*echo.
*echo 
*pause
*goto exitscript
)

:: check for an invalid working path.
echo working path: %workfolder%\ | find /i "cvs"
if not errorlevel 1 (
*echo.
*echo this script won't work properly if any folder in the working path includes "cvs".
*echo you'll need to change the working folder or install folder.
*echo 
*pause
*goto exitscript
)

:: sets visual studio .net location.
set net=
set regcmd=reg query "hklm\software\microsoft\windows\currentversion\ap p paths\devenv.exe" /ve
for /f "tokens=3 delims={tab}" %%i in ('%regcmd%') *do (
*set net=%%i
)
if "%net%"=="" (
*echo.
*echo visual studio .net was not found. make sure it's installed properly.
*echo.
*echo 
*pause
*goto exitscript
)

:: sets rar and unrar location.
set rar=
set regcmd=reg query "hklm\software\microsoft\windows\currentversion\ap p paths\winrar.exe" /v path
for /f "tokens=3 delims={tab}" %%i in ('%regcmd%') *do (
*set rar=%%i\rar.exe
*set unrar=%%i\unrar.exe
)
if "%rar%"=="" (
*echo.
*echo winrar was not found. make sure it's installed properly.
*echo.
*echo 
*pause
*goto exitscript
)

:: check if finished folder exists.
if not exist "%finishedbuildsfolder%" md "%finishedbuildsfolder%"

:: if command line switch is [u]nconditional skip menu.
if /i "%cmdswitch%"=="/u" (
*set runtype=f
*goto downloadcvs
)

:setmenuitems
:: sets menu items to display.
set displayjob1=y
set displayjob2=n
set displayjob3=n
set displayjob4=n
set displayjob5=n
set displayjob6=y
set displayjob7=n
set displayjob8=y

if exist "%workfolder%\xbmc" set displayjob2=y

if exist "%workfolder%\xbmc\release\default.xbe" set displayjob3=y

set answer=
if exist "%finishedbuildsfolder%" (
*for /f "tokens=1" %%i in ('dir /ad /b "%finishedbuildsfolder%"') *do set answer=%%i
)
if not '%answer%'=='' set displayjob4=y

if exist "%workfolder%" set displayjob5=y

:menu
cls
echo xbox media center build script!
echo.
echo.
:: display menu
echo ------------------------------------------------------
echo name: * *'%filename%' keep cvs: * '%keepcvs%'
echo working: '%workfolder%\' compress: * '%compressbuild%'
echo builds: *'%finishedbuildsfolder%\' save build: '%savebuildfolder%'
echo ------------------------------------------------------
echo.
echo please select a job and press enter:
echo.
if %displayjob1%==y echo [f]ull download and build
if %displayjob2%==y echo [b]uild solution from existing cvs
if %displayjob3%==y echo [s]ave current build to '%finishedbuildsfolder%\'
if %displayjob4%==y echo [r]ar already built solution
if %displayjob5%==y echo [d]elete '%workfolder%\'
if %displayjob6%==y echo [c]hange build name
if %displayjob7%==y echo [u]ser settings
if %displayjob8%==y echo [e]xit
echo.

set runtype=
set /p runtype=

:job1
:: full download and build.
if not %displayjob1%==y goto job2
if /i "%runtype%"=="f" goto downloadcvs

:job2
:: build solution from existing cvs.
if not %displayjob2%==y goto job3
if /i "%runtype%"=="b" goto buildsolution

:job3
:: save current build to folder.
if not %displayjob3%==y goto job4
if /i "%runtype%"=="s" (
*set keepcvs=y
*set compressbuild=n
*set savebuildfolder=y
*goto copyfiles
)

:job4
:: rar already built solution
if not %displayjob4%==y goto job5
if /i "%runtype%"=="r" (
*set msg1=rar already built solution.
*set msg2="enter the folder to rar: "
*goto getfolder
)

:job5
:: delete working folder.
if not %displayjob5%==y goto job6
if /i "%runtype%"=="d" goto deletework

:job6
:: change build name.
if not %displayjob6%==y goto job7
if /i "%runtype%"=="c" (
*set msg1=change build name: '%filename%'
*set msg2="enter new build name: "
*goto getfolder
)

:job7
:: user settings.
if /i "%runtype%"=="u" goto menu

:job8
:: exit script.
if /i "%runtype%"=="e" goto exitscript
goto menu

:deletework
echo.
set answer=
set /p answer="delete '%workfolder%\'? (y/n): "
if /i not "%answer%"=="y" goto menu
set keepcvs=n
set compressbuild=n
set savebuildfolder=n
goto cleanupbuild

:getfolder
cls
echo xbox media center build script!
echo.
echo.
echo %msg1%
echo.
echo existing build folder(s)
echo ------------------------
dir /ad /b /on "%finishedbuildsfolder%\"
echo.
echo ^<blank^> to return to menu.
echo ------------------------
echo.

:: get's the builds name.
set answer=
set /p answer=%msg2%

if "%answer%"=="" goto menu

if /i "%runtype%"=="c" (
*set filename=%answer%
*goto menu
)

if not exist "%finishedbuildsfolder%\%answer%" (
*echo.
*echo '%finishedbuildsfolder%\%answer%\' does not exist.
*echo.
*echo 
*pause
*goto getfolder
)
set buildfolder=%finishedbuildsfolder%\%answer%
set filename=%answer%
set keepcvs=y
set compressbuild=y
set savebuildfolder=n
goto compressbuild


:downloadcvs
cls
echo xbox media center build script!
echo.
echo.
if /i "%runtype%"=="f" (
*echo downloading cvs files needed to build solution . . .
*echo.
*if exist "%workfolder%" rmdir "%workfolder%" /s /q
*md "%workfolder%"
*cd /d %workfolder%
*"%cvs%" %cvsoptions%
)

:buildsolution
if not exist "%workfolder%" (
*echo error cvs download does not exist. please choose a full build.
*goto exitscript
)
cls
echo xbox media center build script!
echo.
echo.
echo building xbmc solution '%filename%' (this may take a while) . . .
echo.
cd /d %workfolder%
"%net%" %netoptions% "%netsolution%"
if not exist "%workfolder%\xbmc\release\default.xbe" (
*echo there was an error building solution.
*pause
*goto exitscript
)
echo patching xbmc default.xbe . . .
echo.
"%xbe%" "%workfolder%\xbmc\release\default.xbe"

:: ------------------------------------------------------------------------------------------





-----
:copyfiles
if /i "%runtype%"=="s" (
*cls
*echo xbox media center build script!
*echo.
*echo.
)

cd /d %workfolder%
if exist "%buildfolder%" rmdir "%buildfolder%"
md "%buildfolder%\docs"
md "%buildfolder%\scripts"
md "%buildfolder%\python"

echo extracting webserver's default skin . . .
"%unrar%" %unraroptions% "%webdefaultskin%.rar" "%buildfolder%\web\"

:: copy solution files to build folder.
echo copying build files and folders . . .
echo .
echo cvs>"%workfolder%\exclude.txt"
echo thumbs.db>>"%workfolder%\exclude.txt"

copy "%workfolder%\xbmc\release\default.xbe" "%buildfolder%\"
copy "%workfolder%\xbmc\*.xml" "%buildfolder%\"
copy "%workfolder%\xbmc\*.txt" "%buildfolder%\docs\"
copy "%workfolder%\xbmc\*.pdf" "%buildfolder%\docs\"

xcopy "%workfolder%\xbmc\skin\%defaultskin%\*.xml" "%buildfolder%\skin\%defaultskin%\" /e /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\skin\%defaultskin%\fonts" "%buildfolder%\skin\%defaultskin%\fonts" /e /q /i /y /exclude:exclude.txt
copy "%workfolder%\xbmc\skin\%defaultskin%\*.txt" "%buildfolder%\skin\%defaultskin%\"
copy "%workfolder%\xbmc\skin\%defaultskin%\media\textur es.xpr" "%buildfolder%\skin\%defaultskin%\media\"
copy "%workfolder%\xbmc\skin\%defaultskin%\media\backgr ound.png" "%buildfolder%\skin\%defaultskin%\media\"
copy "%workfolder%\xbmc\skin\%defaultskin%\media\backgr ound2.png" "%buildfolder%\skin\%defaultskin%\media\"

xcopy "%workfolder%\xbmc\mplayer" "%buildfolder%\mplayer" /e /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\credits" "%buildfolder%\credits" /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\media" "%buildfolder%\media" /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\language" "%buildfolder%\language" /e /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\visualisations" "%buildfolder%\visualisations" /e /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\screensavers" "%buildfolder%\screensavers" /q /i /y /exclude:exclude.txt
xcopy "%workfolder%\xbmc\weather" "%buildfolder%\weather" /e /q /i /y /exclude:exclude.txt

:: copies user's modified files to build folder.
echo copying user modified files and folders . . .
echo.
if exist "%customfolder%\xboxmediacenter.xml" ren "%buildfolder%\xboxmediacenter.xml" "xboxmediacenter.txt"
xcopy "%customfolder%" "%buildfolder%" /e /q /i /y

:: uses gsar.exe to replace line in strings.xml with build date
if not "%searchstring%"=="%replacestring%" (
*if not "%searchstring%"=="" (
* *echo editing strings.xml, using gsar . . .
* *echo.
* *"%gsar%" -s"%searchstring%" -r"%replacestring%" -o "%buildfolder%\language\%language%\strings.xml"
* *echo.
*)
)
:: ------------------------------------------------------------------------------------------





-----

:compressbuild
:: rars the newly built solution
if /i "%compressbuild%"=="y" (
*echo compressing finished build . . .
*"%rar%" %raroptions% "%finishedbuildsfolder%\%filename%.rar" "%buildfolder%\*"
*echo.
)
if /i "%runtype%"=="r" goto done

:movebuildfolder
:: moves the build folder.
echo cleaning up working folder . . .
cd /d %home%
if /i not "%savebuildfolder%"=="y" (
*goto cleanupbuild
) else (
*echo saving and renaming build folder to finish builds folder . . .
*echo.
)
move /y "%buildfolder%" "%finishedbuildsfolder%\%filename%"

:cleanupbuild
:: clean up build and/or working folder.
if not "%keepcvs%"=="y" (
*if exist "%workfolder%" rmdir /s /q "%workfolder%"
) else (
*del /q "%workfolder%\*.*"
)
if exist "%buildfolder%" rmdir /s /q "%buildfolder%"

:done
:: completed job. inform user where the folder and/or compressed file is.
cls
echo xbox media center build script!
echo.
echo.
echo ------------------------------------------------------
echo the selected job has completed.

if /i "%runtype%"=="d" (
*echo.
*if not exist "%workfolder%" (
* *echo deleted folder '%workfolder%\'
*) else (
* *echo an error occured deleting the folder.
*)
)

if /i "%compressbuild%"=="y" (
*echo.
*if exist "%finishedbuildsfolder%\%filename%.rar" (
* *echo the compressed build is in '%finishedbuildsfolder%\' named '%filename%.rar'
*) else (
* *echo an error occured compressing the build.
*)
)

if /i "%savebuildfolder%"=="y" (
*echo.
*if exist "%finishedbuildsfolder%\%filename%" (
* *echo the build folder is in '%finishedbuildsfolder%\' named '%filename%'
*) else (
* *echo an error occured moving the build folder.
*)
)
echo ------------------------------------------------------
echo 

if /i not "%cmdswitch%"=="/u" (
*echo.
*pause
*goto begin
)

:exitscript


i hope cut and paste works. *:)

Craxx
2004-12-21, 09:56
thx a lot !!!

best regards
craxx;)

zilber
2005-01-07, 04:15
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?
did anyone figure out how to fix these link errors? i get about a 100 of them. i went to project dependencies and checked all of the checkboxes. nothing works. help please.

here an error example:
xbmc error lnk2019: unresolved external symbol "public: virtual thiscall capplication::~capplication(void)" (??1capplication@@uae@xz)

everything compiles fine, but the linking does not work. thank you.

Noodle
2005-01-07, 20:21
hi

i'm newbie here. and got question about aqtbrowser.py.

i was able to build xmbc from cvs source code, and deploy it to xbox without problem. the only issue is: i can not found aqtbrowser.py from scripts.rar, also kmlbrowser.py. i copy the old aqtbrowser.py and it works except no background pic. anybody know where can i get latest version of aqtbrowser.py? and how to install it?

thanks

Gamester17
2005-01-10, 13:02
hi

i'm newbie here. and got question about aqtbrowser.py.

i was able to build xmbc from cvs source code, and deploy it to xbox without problem. the only issue is: i can not found aqtbrowser.py from scripts.rar, also kmlbrowser.py. i copy the old aqtbrowser.py and it works except no background pic. anybody know where can i get latest version of aqtbrowser.py? and how to install it?

thankswrong forum, wrong thread ...but the answer is; it's not in the cvs, you can find it *here (link) (http://dwl.xboxmediacenter.de). use support forum in the future

YuYu
2005-01-10, 23:09
my xbmcdbr package now has a website here (http://johnypcguru.home.mchsi.com) check the latest package and tell me what you guys want added...

@jgawera - i am planning on now implementing your script snippets for vs.net and winrar locations. i'll put it in the nest update, as well as add you to the credits.

@nuka1195 i may also borrow some of your ideas and add them in, at which point i will also add you to the credits also...

i am going to add a setup.bat instead of directory_setter.bat. users will be able to run that file once, then never have to fool with it, until a new release or if they want to setup different options...

please throw some ideas/ your most wanted features at me, i'm open for anything that makes sense and will not be too hard for the common person to use...

jgawera
2005-01-11, 12:59
yay :thumbsup:

ok, here's some ideas for features i would like.

if possible, get rid of the setup/directory setter scripts
just have one self contained script that tries to figure everything out by it's self. -- no user input.

so i just download your package, run it and i have the latest xbmc.

i personally would prefer the codecs to be in the same package. since we know we need broadband to run this, why not simplify it by having one download. i know the codecs may not change very often, but i find that i usually download both packages anyway, just to be sure i have the latest everything.

add some advanced options to help xbmc developers use your script.

- download cvs only
- build from local cvs (if i wanted to change the source)
- download build rar but don't cleanup files

if i think of anything else, i'll post it here.

thanks again for a great script.

YuYu
2005-01-11, 18:39
yay :thumbsup:

ok, here's some ideas for features i would like.

if possible, get rid of the setup/directory setter scripts
just have one self contained script that tries to figure everything out by it's self. -- no user input.

so i just download your package, run it and i have the latest xbmc.

i personally would prefer the codecs to be in the same package. since we know we need broadband to run this, why not simplify it by having one download. i know the codecs may not change very often, but i find that i usually download both packages anyway, just to be sure i have the latest everything.

add some advanced options to help xbmc developers use your script.

- download cvs only
- build from local cvs (if i wanted to change the source)
- download build rar but don't cleanup files

if i think of anything else, i'll post it here.

thanks again for a great script.
welll, for one of the reasons you state "download cvs only", is why i need the setup script. the script should run with no user input so it may be a scheduled task, but if users want to specify something, there has to be a way for them to do that...

anyways, you are right though less user input is always good, but if they only have to do it once, i belie it's fine...

as for the codecs package being seperate, i do that in case people choose not to use my script at all and they just want he codecs package, also my isp webspace is 10mb per user account, so seperating it leaves me headroom to add new codecs in the future...

YuYu
2005-01-14, 08:12
ok i updated the xbmcdbr website with the latest info and changes. hope you like it jgawera and nuka1195 :) ,
oh and of course anyone else who enjoys using it !!

YuYu
2005-01-17, 10:50
xbmcdbr now has automated ftp!

check out the website for more info:
xbmcdbr homepage (http://johnypcguru.home.mchsi.com/index.htm)

look in the changelog, instructions, and batch files info sections!
it's been a long time coming but now, xbmc updating is fully automated if you want it to be !

YuYu
2005-01-18, 08:27
ok there are a few, meaning 3 minor errors, with my batch at the moment. they will be fixed within a couple hours.

YuYu
2005-01-18, 10:04
ok bug fix and big update everyone.

everything should run 100% smooth now and website has added instructions about the ftp batch file as well as the xbmcdbr file is now set to updatecvs by default instead of freshcvs. if you read the site, you will know what that means and more. the ftp setup batch also has a warning for those updating xbmc if it is their dash.

as usual, check the changelog, read the instructions, check the batch files info page out.

download the new package now!

xbmcdbr website (http://johnypcguru.home.mchsi.com/index.htm)

YuYu
2005-01-29, 07:22
ok new update!

logging has been added to the cvs downloading, the compiling of the build, and the ftping of the build. all the batch files have been updated, so it is recommended you do a full update of the package.

i will look into adding to and fixing up the scripts custom folder in the next update, as i want to throw a couple of things in there and change a couple images and what not...

anyways, check out the website changelog and be sure to do a full package update!

hope you like it, feedback is always appreciated.

xbmcdbr website (http://johnypcguru.home.mchsi.com/index.htm)

Seb.26
2005-03-08, 11:54
maybe another update is needed with new mplayer directory, no ?
( the standar "$home/mplayer/" directory isn't needed more ... )

and thanks for this magic bat file ... i use it every day !!! lol ...
and never an error !!! :bowdown: ... really magic !!!

nb: do you know why build date don't change if i don't remove the whole "xbmc" directory ? ... not really important but if you now wich file need to be killed ... ;)

Toxic
2005-03-11, 00:54
after i compile, i do not have a python.rar. i have the scrips.rar, but no python. :tear:

speedway
2005-03-12, 16:21
hi,

first of all, i really like your script. great job !
i extracted all files to c:\xbmc_dbr.
afterwards i added the path to vb.nt 2003 and winrar.
i runned the batch file and everything worked: no errors.
but when i checked the log files, one of them mentioned that there should be a rebuild available in the same directory in rar-format. but no rar-file to find.... strange *:verysad:
any idea what the problem may be ?
thx in advance !!

greetings,
pete

CosyCat
2005-03-13, 18:38
how many mb is all the source, downloading it for the first time(with wincvs) ...my download stoped at 172mb!!
maby i´m downloading someting i don´t need??

jwwolf
2006-03-12, 17:30
i keep gettin a lnk004 debug error on most files
what would cuase this problem?
any ideas?

xeniumspig.lib(xeniumspi.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(archive.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(arcread.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(cmddata.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(consio.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(crc.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(crypt.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(encname.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(errhnd.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(extinfo.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(extract.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(filcreat.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(file.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(filefn.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(filestr.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(find.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(getbits.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(global.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(int64.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(isnt.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(log.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(match.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(options.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(pathfn.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(rar.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(rarvm.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(rawread.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(rdwrfn.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(recvol.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(resource.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(rijndael.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(rs.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(savepos.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(scantree.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(sha1.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(strfn.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(strlist.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(system.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(timefn.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(ulinks.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(unicode.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(unpack.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
unrarxlib.lib(volume.obj) : warning lnk4204: 'c:\xbmc\release\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
creating xbox image...

yazoo
2006-03-14, 14:13
is there a problem with the cvs on sourceforge? i can't seem to be able to download anything. i can't even navigate the repository from here https://sourceforge.net/cvs/?group_id=87054

pike
2006-03-14, 14:15
2006-03-13 12:42:16 - project cvs service ) as of 2006-03-12 pserver (anonymous) cvs services, along with tarballs and viewcvs are down for projects that start with the letters e, i, j, o, v, w and x. we hope to resolve this issue in the next 2 days.

B4tm4n
2006-03-14, 14:21
from the sourceforge.net site status page,

( 2006-03-13 12:42:16 - project cvs service ) * as of 2006-03-12 pserver (anonymous) cvs services, along with tarballs and viewcvs are down for projects that start with the letters e, i, j, o, v, w and x. we hope to resolve this issue in the next 2 days.

taken from here (http://sourceforge.net/docs/a04/).

cheers b4tm4n.


edit you beat me to it.

yazoo
2006-03-14, 14:21
2006-03-13 12:42:16 - project cvs service ) as of 2006-03-12 pserver (anonymous) cvs services, along with tarballs and viewcvs are down for projects that start with the letters e, i, j, o, v, w and x. we hope to resolve this issue in the next 2 days.
ahhh, ok thank you.

where is that info from, just so i know for the future.


hehe thanks b4tm4n

C-Quel
2006-03-14, 14:25
site status 'little green check button' top right hand corner.

axavier
2006-03-14, 18:08
clicking on it tells you exactly what is going on....too bad the resulting page is not sorted by date...

jwwolf
2006-03-18, 08:28
can anyone help with my problem or is this a place like xboxscene? where no one helps anyone

TheTrueMaster
2006-04-28, 03:55
hey guys, i was just wondering, could i still compile xbmc using a later version of ms visual studio? say like the 2005 version, or the 2006 version?

HarshReality
2006-05-28, 03:21
i tried once and it bombed

julpero
2006-05-31, 11:27
i keep gettin a lnk004 debug error on most files
what would cuase this problem?
any ideas?
hi.

i'm having same problem... does this effect to build? is it safe to use the build with these warnings?

spiff
2006-06-01, 04:12
warning lnk4204:

with warning being the magic word. so no; no problem.

chorton
2006-06-04, 06:05
deleted

jmarshall
2006-10-12, 23:09
Check the build.bat in the skin/Project Mayhem III folder.

That builds Textures.xpr, and it is called from the usual build.bat.

Perhaps some path issue is screwing up - I'm not that hot on batch files :P

Cheers,
Jonathan

freifuss
2006-10-13, 10:52
Check the build.bat in the skin/Project Mayhem III folder. That builds Textures.xpr, and it is called from the usual build.bat.
Perhaps some path issue is screwing up - I'm not that hot on batch files :P

Thanks. It seems that my original post is beeing eaten up :confused2:

I checkeg build.bat from the skin folder and it says
xcopy "media\Textures.xpr" "BUILD\Project Mayhem III\media\" /Q /I /Y :sniffle:
I'd really appreciate a built textures.xpr...

greetz
ff

jmarshall
2006-10-13, 12:51
Try reading it in a bit more detail.

It clearly builds it before it gets tot he xcopy (note the XBMCTex line above)

d4rkbl4n3
2008-01-09, 11:47
Hi there, apologies in advance if this post is in the wrong place (I was going to place it in the developer section but it says its for programmers only, which I'm not, at least not of any great skill ) but I wasn't sure where to ask.
I want to complile the latest XMBC CVS using XBMC_SVN_171207 as the build I have is unstable and I suspect whomever compiled it may have customised it slightly, contributing to its instability.
My question is do I need to use Visual Studio 2003 with XDK5778/5849 or can it be compiled with Visual Studio 2008 using XDK5933?

Thanks in advance :)

agathorn
2008-01-09, 11:47
This may be a totally stupid and futile question, but is there any chance of getting this to build using a NEWER version of VS?

agathorn
2008-01-09, 11:47
Nevermind I found the answer to my own question in the Wiki. No, it isn't possible. Unfortunately since the two version of VC that I have are the old VS 6, and the newest VS, i'm pretty much screwed on helping out there I guess.

jmarshall
2008-01-09, 22:00
You need 2003.

jmarshall
2008-01-09, 22:03
2008 should build XBMC_PC (probably with modifications) and XBMC_Linux for win32 just fine. You just can't build for xbox with 2008.

Gamester17
2008-01-10, 10:45
Yes you need Visual Studio 2003 to compile XBMC for Xbox, but you can use XDK 5933 (with Visual Studio 2003 that is).
http://www.xboxmediacenter.com/wiki/index.php?title=Development_Notes

Nevermind I found the answer to my own question in the Wiki. No, it isn't possible. Unfortunately since the two version of VC that I have are the old VS 6, and the newest VS, i'm pretty much screwed on helping out there I guess.You could install Windows under a VMware vertual machine to compile in there, (or you could compile XBMC for Windows or Linux instead).

CrazyIvan
2008-01-19, 02:10
2008 should build XBMC_PC (probably with modifications) and XBMC_Linux for win32 just fine. You just can't build for xbox with 2008.

Are the steps to build XBMC_Linux for win32 documented anywhere? Thanks in advance.

jmarshall
2008-01-19, 05:12
Load the solution in tools/Win32.

Grab SDL libs and setup path in Visual Studio to point to them.

Build.

Fix errors ;)

Cheers,
Jonathan