MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » General Support


General Support Post problems you have when using MediaPortal, or pre installation questions in here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2006-10-06, 04:11   #1 (permalink)
Portal Member
 
Join Date: Oct 2006
Age: 26
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default compiling mediaportal postbuild.bat

I'm trying to compile mediaportal with vs # express.. all goes well but PostBuild.bat exits with code 1.

Looking at the postbuild batch file I see:

Code:
rem Check for Microsoft Antispyware .BAT bug
if exist .\kernel32.dll exit 1
Can somebody please please tell me what this means and what I need to do to fix this problem?

Thank you.
shewless is offline   Reply With Quote
Old 2006-10-06, 08:02   #2 (permalink)
Portal Developer
 
scoop's Avatar
 
Join Date: Nov 2004
Posts: 610
Thanks: 2
Thanked 6 Times in 5 Posts

My System

Default

Hi,

are you sure the ERRORLEVEL 1 is coming from that part? That part only makes sure the CWD isn't %windir%\system32 (because that's where kernel32.dll resides) and ifso exits because it is executed from the wrong directory.

As the remark already describes, there is / used to be a bug in MS Antispyware where executed batch files will have their current working directory changed to %windir%\system32\. If the batchfile would continue in that case, you'd have a nice copy of a new build in %windir%\system32\ ;-)

You could try to look @ the output generated from the build (View -> Output or CTRL-W,O) and see where the batchfile gives the error.

Kind regards,
Michel
scoop is offline   Reply With Quote
Old 2006-10-06, 11:29   #3 (permalink)
Portal Member
 
Join Date: Oct 2006
Age: 26
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Hmm.. I don't really see any errors from output...

Code:
Compile complete -- 0 errors, 0 warnings
MediaPortal -> C:\Documents and Settings\Media\My Documents\Visual Studio 2005\mediaportal\mediaportal\xbmc\bin\Release\MediaPortal.exe
"C:\Documents and Settings\Media\My Documents\Visual Studio 2005\mediaportal\mediaportal\xbmc\bin\Release\PostBuild.bat"
C:\Documents and Settings\Media\My Documents\Visual Studio 2005\mediaportal\mediaportal\xbmc\bin\Release
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
..\..\..\TTPremiumBoot\Sc_main.mc
        1 file(s) copied.
..\..\..\TTPremiumBoot\21\Boot_up.axf
..\..\..\TTPremiumBoot\21\Dpram
..\..\..\TTPremiumBoot\21\Root
        3 file(s) copied.
..\..\..\TTPremiumBoot\24\Boot_up.axf
..\..\..\TTPremiumBoot\24\Dpram
..\..\..\TTPremiumBoot\24\Root
        3 file(s) copied.
..\..\..\TTPremiumBoot\24Data\Boot_up.axf
..\..\..\TTPremiumBoot\24Data\Dpram
..\..\..\TTPremiumBoot\24Data\Root
        3 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
..\..\..\Microsoft.ApplicationBlocks.ApplicationUpdater.dll
..\..\..\Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.dll
..\..\..\Microsoft.ApplicationBlocks.ExceptionManagement.dll
..\..\..\Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll
        4 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
..\..\..\X10Unified.dll
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
..\..\..\Configuration\Wizards\DVD.xml
..\..\..\Configuration\Wizards\FirstTimeSetup.xml
..\..\..\Configuration\Wizards\Movies.xml
..\..\..\Configuration\Wizards\Music.xml
..\..\..\Configuration\Wizards\Pictures.xml
..\..\..\Configuration\Wizards\Television.xml
..\..\..\Configuration\Wizards\wizard_done.png
..\..\..\Configuration\Wizards\wizard_dvd.png
..\..\..\Configuration\Wizards\wizard_fts.png
..\..\..\Configuration\Wizards\wizard_movie.png
..\..\..\Configuration\Wizards\wizard_music.png
..\..\..\Configuration\Wizards\wizard_picture.png
..\..\..\Configuration\Wizards\wizard_television.png
       13 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
========== Rebuild All: 25 succeeded, 1 failed, 0 skipped ==========
shewless is offline   Reply With Quote
Old 2006-10-06, 15:15   #4 (permalink)
Portal Member
 
Join Date: Oct 2006
Age: 26
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Anyone have any idea why postbuild.bat exits with code 1? it looks like it works correctly, unless there was a file it couldn't copy or something...
shewless is offline   Reply With Quote
Reply

Bookmarks

Tags
compiling, postbuildbat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System requirements for HDTV with MediaPortal Tech Geek Hardware Selection Help 62 2007-08-08 07:20
MediaPortal GET YOU GOING GUIDE aal Tips and Tricks 19 2007-06-22 18:39
A perfect HTPC with MP & PVR Scheduler & faster XP STSC Tips and Tricks 16 2007-01-30 22:40
PVR Scheduler: cant make it work ethanx Codecs, External Players 1 2006-03-19 23:42
Compile problems Anonymous General Development (no feature request here!) 1 2004-04-28 21:49


All times are GMT +1. The time now is 08:05.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress