CE 6 R2: command lines builds via devenv.exe not possible ?

  • Follow


Hello experts,



The documentation for Platform Builder for Windows CE 6 R2 mention, that it 
is possible to perform command line builds of Platform Builder projects 
through the use of devenv.exe and .pbxml file.

According to this url 
http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx

it may be possible to perform build of the project like this



Devenv SolutionName /build SolnConfigName [/project ProjName [/projectconfig 
ProjConfigName]]



an example given is

devenv "C:\Documents and Settings\someuser\My Documents\Visual 
Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
"CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug



So my question is - can we do the same with PB projects ?



For example a similar command to make build of some project does not succeed 
:

devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build Debug 
/project "CE6_emul_EWP\CE6_emul_EWP.pbxml"



Any ideas what's wrong ? The same solution builds fine when CE6_emul_EWP.sln 
is opened manually through VS2005 PB.



Thank you

SergeiR


0
Reply SergeiR 12/14/2009 6:47:22 PM

http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx

-- 
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"SergeiR" <rusakov@cyberrealm.net> wrote in message 
news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
> Hello experts,
>
>
>
> The documentation for Platform Builder for Windows CE 6 R2 mention, that 
> it is possible to perform command line builds of Platform Builder projects 
> through the use of devenv.exe and .pbxml file.
>
> According to this url 
> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>
> it may be possible to perform build of the project like this
>
>
>
> Devenv SolutionName /build SolnConfigName [/project ProjName 
> [/projectconfig ProjConfigName]]
>
>
>
> an example given is
>
> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>
>
>
> So my question is - can we do the same with PB projects ?
>
>
>
> For example a similar command to make build of some project does not 
> succeed :
>
> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>
>
>
> Any ideas what's wrong ? The same solution builds fine when 
> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>
>
>
> Thank you
>
> SergeiR
>
> 


0
Reply Bruce 12/14/2009 8:34:37 PM


Thanks Bruce,

Nice to have, so if there are no other ways, then I tend to conclude that 
the documentation for VS2005 use of devenv.exe is no longer correct for PB 
projects.

SergeiR

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>
> -- 
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.
> www.Eurotech.com
>
> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>> Hello experts,
>>
>>
>>
>> The documentation for Platform Builder for Windows CE 6 R2 mention, that 
>> it is possible to perform command line builds of Platform Builder 
>> projects through the use of devenv.exe and .pbxml file.
>>
>> According to this url 
>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>
>> it may be possible to perform build of the project like this
>>
>>
>>
>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>> [/projectconfig ProjConfigName]]
>>
>>
>>
>> an example given is
>>
>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>
>>
>>
>> So my question is - can we do the same with PB projects ?
>>
>>
>>
>> For example a similar command to make build of some project does not 
>> succeed :
>>
>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>
>>
>>
>> Any ideas what's wrong ? The same solution builds fine when 
>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>
>>
>>
>> Thank you
>>
>> SergeiR
>>
>>
>
>
> 


0
Reply SergeiR 12/15/2009 12:14:29 AM

Hi Bruce,

in addition to my earlier reply to your suggestion, I have looked into the 
sequence of commands from url below, for Windows CE 6 section, and it seems 
that there is a an error in it, at least for the project I have tried it 
with.
Line 5
set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
needs to be changed to
set PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
in order to be able to find .pbxml file under Windows CE 6 folders 
structure.



As a side note, doing blddemo clean will produce OS image, but , unlike 
devenv.exe /Build .pbxml command , blldemo clean will not execute premakeimg 
commands nor posmakeimg commands nor any custom build steps, which are 
included into .pbxml build. That's why I want that, rather than doing 
sequence of steps before and after blddemo.



Thanks

SergeiR


"Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>
> -- 
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.
> www.Eurotech.com
>
> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>> Hello experts,
>>
>>
>>
>> The documentation for Platform Builder for Windows CE 6 R2 mention, that 
>> it is possible to perform command line builds of Platform Builder 
>> projects through the use of devenv.exe and .pbxml file.
>>
>> According to this url 
>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>
>> it may be possible to perform build of the project like this
>>
>>
>>
>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>> [/projectconfig ProjConfigName]]
>>
>>
>>
>> an example given is
>>
>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>
>>
>>
>> So my question is - can we do the same with PB projects ?
>>
>>
>>
>> For example a similar command to make build of some project does not 
>> succeed :
>>
>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>
>>
>>
>> Any ideas what's wrong ? The same solution builds fine when 
>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>
>>
>>
>> Thank you
>>
>> SergeiR
>>
>>
>
>
> 


0
Reply SergeiR 12/15/2009 9:07:24 PM

Depends on where your pbxml is, doesn't it?  I eliminate the redundant 
directory.

blddemo is exactly how VS builds your project, so in fact it does run the 
BAT files.

-- 
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"SergeiR" <rusakov@cyberrealm.net> wrote in message 
news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
> Hi Bruce,
>
> in addition to my earlier reply to your suggestion, I have looked into the 
> sequence of commands from url below, for Windows CE 6 section, and it 
> seems that there is a an error in it, at least for the project I have 
> tried it with.
> Line 5
> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
> needs to be changed to
> set 
> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
> in order to be able to find .pbxml file under Windows CE 6 folders 
> structure.
>
>
>
> As a side note, doing blddemo clean will produce OS image, but , unlike 
> devenv.exe /Build .pbxml command , blldemo clean will not execute 
> premakeimg commands nor posmakeimg commands nor any custom build steps, 
> which are included into .pbxml build. That's why I want that, rather than 
> doing sequence of steps before and after blddemo.
>
>
>
> Thanks
>
> SergeiR
>
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
> message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
>> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>>
>> -- 
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT Eurotech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> Eurotech Inc.
>> www.Eurotech.com
>>
>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>>> Hello experts,
>>>
>>>
>>>
>>> The documentation for Platform Builder for Windows CE 6 R2 mention, that 
>>> it is possible to perform command line builds of Platform Builder 
>>> projects through the use of devenv.exe and .pbxml file.
>>>
>>> According to this url 
>>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>>
>>> it may be possible to perform build of the project like this
>>>
>>>
>>>
>>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>>> [/projectconfig ProjConfigName]]
>>>
>>>
>>>
>>> an example given is
>>>
>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>>
>>>
>>>
>>> So my question is - can we do the same with PB projects ?
>>>
>>>
>>>
>>> For example a similar command to make build of some project does not 
>>> succeed :
>>>
>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>>
>>>
>>>
>>> Any ideas what's wrong ? The same solution builds fine when 
>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>>
>>>
>>>
>>> Thank you
>>>
>>> SergeiR
>>>
>>>
>>
>>
>>
>
> 


0
Reply Bruce 12/16/2009 2:43:39 AM

Let me spend a little more time on this:

    1.  If you check the build output in Visual Studio you will see that 
when you run Sysgen, the build output starts with running blddemo -q
    2.  If you then check the makeimg output, you will find that it does run 
the BAT files that you mention.  What you probably didn't expect is that 
this happens during makeimg, not before and after.

-- 
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
message news:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
> Depends on where your pbxml is, doesn't it?  I eliminate the redundant 
> directory.
>
> blddemo is exactly how VS builds your project, so in fact it does run the 
> BAT files.
>
> -- 
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.
> www.Eurotech.com
>
> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
> news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
>> Hi Bruce,
>>
>> in addition to my earlier reply to your suggestion, I have looked into 
>> the sequence of commands from url below, for Windows CE 6 section, and it 
>> seems that there is a an error in it, at least for the project I have 
>> tried it with.
>> Line 5
>> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
>> needs to be changed to
>> set 
>> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
>> in order to be able to find .pbxml file under Windows CE 6 folders 
>> structure.
>>
>>
>>
>> As a side note, doing blddemo clean will produce OS image, but , unlike 
>> devenv.exe /Build .pbxml command , blldemo clean will not execute 
>> premakeimg commands nor posmakeimg commands nor any custom build steps, 
>> which are included into .pbxml build. That's why I want that, rather than 
>> doing sequence of steps before and after blddemo.
>>
>>
>>
>> Thanks
>>
>> SergeiR
>>
>>
>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
>> message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
>>> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>>>
>>> -- 
>>> Bruce Eitman (eMVP)
>>> Senior Engineer
>>> Bruce.Eitman AT Eurotech DOT com
>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>
>>> Eurotech Inc.
>>> www.Eurotech.com
>>>
>>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>>> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>>>> Hello experts,
>>>>
>>>>
>>>>
>>>> The documentation for Platform Builder for Windows CE 6 R2 mention, 
>>>> that it is possible to perform command line builds of Platform Builder 
>>>> projects through the use of devenv.exe and .pbxml file.
>>>>
>>>> According to this url 
>>>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>>>
>>>> it may be possible to perform build of the project like this
>>>>
>>>>
>>>>
>>>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>>>> [/projectconfig ProjConfigName]]
>>>>
>>>>
>>>>
>>>> an example given is
>>>>
>>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>>>
>>>>
>>>>
>>>> So my question is - can we do the same with PB projects ?
>>>>
>>>>
>>>>
>>>> For example a similar command to make build of some project does not 
>>>> succeed :
>>>>
>>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
>>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>>>
>>>>
>>>>
>>>> Any ideas what's wrong ? The same solution builds fine when 
>>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>>>
>>>>
>>>>
>>>> Thank you
>>>>
>>>> SergeiR
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
> 


0
Reply Bruce 12/16/2009 1:45:31 PM

On Dec 16, 1:45=A0pm, "Bruce Eitman [eMVP]"
<bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> Let me spend a little more time on this:
>
> =A0 =A0 1. =A0If you check the build output in Visual Studio you will see=
 that
> when you run Sysgen, the build output starts with running blddemo -q
> =A0 =A0 2. =A0If you then check the makeimg output, you will find that it=
 does run
> the BAT files that you mention. =A0What you probably didn't expect is tha=
t
> this happens during makeimg, not before and after.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.www.Eurotech.com
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote in
> messagenews:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>
>
>
> > Depends on where your pbxml is, doesn't it? =A0I eliminate the redundan=
t
> > directory.
>
> > blddemo is exactly how VS builds your project, so in fact it does run t=
he
> > BAT files.
>
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > Bruce.Eitman AT Eurotech DOT com
> > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > Eurotech Inc.
> >www.Eurotech.com
>
> > "SergeiR" <rusa...@cyberrealm.net> wrote in message
> >news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
> >> Hi Bruce,
>
> >> in addition to my earlier reply to your suggestion, I have looked into
> >> the sequence of commands from url below, for Windows CE 6 section, and=
 it
> >> seems that there is a an error in it, at least for the project I have
> >> tried it with.
> >> Line 5
> >> set PBWORKSPACE=3D%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
> >> needs to be changed to
> >> set
> >> PBWORKSPACE=3D%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.p=
bxml
> >> in order to be able to find .pbxml file under Windows CE 6 folders
> >> structure.
>
> >> As a side note, doing blddemo clean will produce OS image, but , unlik=
e
> >> devenv.exe /Build .pbxml command , blldemo clean will not execute
> >> premakeimg commands nor posmakeimg commands nor any custom build steps=
,
> >> which are included into .pbxml build. That's why I want that, rather t=
han
> >> doing sequence of steps before and after blddemo.
>
> >> Thanks
>
> >> SergeiR
>
> >> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote =
in
> >> messagenews:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> >>>http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batc.=
...
>
> >>> --
> >>> Bruce Eitman (eMVP)
> >>> Senior Engineer
> >>> Bruce.Eitman AT Eurotech DOT com
> >>> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> >>> Eurotech Inc.
> >>>www.Eurotech.com
>
> >>> "SergeiR" <rusa...@cyberrealm.net> wrote in message
> >>>news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
> >>>> Hello experts,
>
> >>>> The documentation for Platform Builder for Windows CE 6 R2 mention,
> >>>> that it is possible to perform command line builds of Platform Build=
er
> >>>> projects through the use of devenv.exe and .pbxml file.
>
> >>>> According to this url
> >>>>http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>
> >>>> it may be possible to perform build of the project like this
>
> >>>> Devenv SolutionName /build SolnConfigName [/project ProjName
> >>>> [/projectconfig ProjConfigName]]
>
> >>>> an example given is
>
> >>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual
> >>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project
> >>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>
> >>>> So my question is - can we do the same with PB projects ?
>
> >>>> For example a similar command to make build of some project does not
> >>>> succeed :
>
> >>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Buil=
d
> >>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>
> >>>> Any ideas what's wrong ? The same solution builds fine when
> >>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>
> >>>> Thank you
>
> >>>> SergeiR- Hide quoted text -
>
> - Show quoted text -

I'm also trying to get a command line batch file working, this time
for use by a Hudson build server. The project is CE6.0 R3 and my batch
file is based on Bruce's blog (WORKSPACE & _WINCEROOT600 are defined
before this is called):

  REM This is the build directory
  REM set BUILDDIR=3D%_WINCEROOT600%_%EXECUTOR_NUMBER%
  set BUILDDIR=3D%_WINCEROOT600%

  REM Our project details
  SET __PROJECTNAME__=3DMirage1_5
  SET __PLATFORMNAME__=3DMirage_1v5
  set _WINCEROOT=3D%BUILDDIR%

  REM The .pbxml project we want to build.
  SET PBWORKSPACE=3D%_WINCEROOT%\OSDesigns\%__PROJECTNAME__%\
%__PROJECTNAME__%\%__PROJECTNAME__%.pbxml
  REM The location of the pbxmlutils utility.
  SET PBXMLUTILS=3D"C:\Program Files\Microsoft Platform Builder\6.00\cepb
\IdeVS\pbxmlutils.exe"
  REM The configuration we want to build.
  SET PBCONFIG=3D%__PLATFORMNAME__% ARMV4I %1
  REM The location of the windows ce batch file
  SET WINCE_BAT=3D%_WINCEROOT%\Public\Common\Oak\misc\wince.bat

  REM Run Wince.bat to set up the basic environment
  call %WINCE_BAT% ARMV4I %__PROJECTNAME__% %__PLATFORMNAME__%

  REM Auto-generate a batch file which will set up a proper build
environment.
  %PBXMLUTILS% /getbuildenv > "%WORKSPACE%\set_up_env.bat"

  REM Run this batch file.
  CALL "%WORKSPACE%\set_up_env.bat"

  REM Log the environment variables
  set > "%WORKSPACE%\setenv.log"

  REM Go to the platform builder directory
  cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin

  @ECHO OFF
  REM Kick off a clean build.
  blddemo clean -q

This certainly launches the build, but fails with the following error
in BUILD.LOG:

	link /LARGEADDRESSAWARE -out:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600  \Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.dll -dll -machine:thumb @C:\WINDOWS\TEMP
\nm28B1.tmp
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

-nodefaultlib
-entry:DllMain
-pdb:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.pdb
-pdbaltpath:corelib1.pdb
-debug -debugtype:cv -incremental:no
-map:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.map
-savebaserelocations:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.rel
-MERGE:.rdata=3D.text -merge:.astart=3D.text -align:4096 -ignore:
4001,4070,4078,4086,4089,4096,4099,4108,4229 /STACK:65536,4096 -
debugtype:cv,fixup -incremental:no
/subsystem:windowsce,6.00
/base:0x10000000
C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
\cesysgen\oak\lib\ARMV4I\debug\corelib1_ALL.lib
C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
\cesysgen\oak\lib\ARMV4I\debug\corelib1.exp
LINK : fatal error LNK1101: incorrect MSPDB80.DLL version; recheck
installation of this product
NMAKE : fatal error U1077: 'link' : return code '0x44d'
Stop.
NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
return code '0x2'
Stop.

Interestingly (or should I say frustratingly) the batch file works in
a window created by VS2005, but not in a plain vanilla build window.
Any suggestions?

Thanks,
Andrew.
0
Reply AndrewScholan 12/16/2009 2:25:11 PM

Andrew:

The fact that you thought that you needed to add:

  REM Go to the platform builder directory
  cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin

Suggests to me that your environment is not right before you run this batch 
file.  Running from VS may fix the environment, have you diffed your 
setenv.log files?

-- 
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"AndrewScholan[MCTS]" <ams@plextek.co.uk> wrote in message 
news:5f91c91e-dd58-45ed-bb63-ec287f041231@m11g2000vbo.googlegroups.com...
On Dec 16, 1:45 pm, "Bruce Eitman [eMVP]"
<bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> Let me spend a little more time on this:
>
> 1. If you check the build output in Visual Studio you will see that
> when you run Sysgen, the build output starts with running blddemo -q
> 2. If you then check the makeimg output, you will find that it does run
> the BAT files that you mention. What you probably didn't expect is that
> this happens during makeimg, not before and after.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.www.Eurotech.com
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote in
> messagenews:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>
>
>
> > Depends on where your pbxml is, doesn't it? I eliminate the redundant
> > directory.
>
> > blddemo is exactly how VS builds your project, so in fact it does run 
> > the
> > BAT files.
>
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > Bruce.Eitman AT Eurotech DOT com
> > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > Eurotech Inc.
> >www.Eurotech.com
>
> > "SergeiR" <rusa...@cyberrealm.net> wrote in message
> >news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
> >> Hi Bruce,
>
> >> in addition to my earlier reply to your suggestion, I have looked into
> >> the sequence of commands from url below, for Windows CE 6 section, and 
> >> it
> >> seems that there is a an error in it, at least for the project I have
> >> tried it with.
> >> Line 5
> >> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
> >> needs to be changed to
> >> set
> >> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
> >> in order to be able to find .pbxml file under Windows CE 6 folders
> >> structure.
>
> >> As a side note, doing blddemo clean will produce OS image, but , unlike
> >> devenv.exe /Build .pbxml command , blldemo clean will not execute
> >> premakeimg commands nor posmakeimg commands nor any custom build steps,
> >> which are included into .pbxml build. That's why I want that, rather 
> >> than
> >> doing sequence of steps before and after blddemo.
>
> >> Thanks
>
> >> SergeiR
>
> >> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote 
> >> in
> >> messagenews:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> >>>http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batc...
>
> >>> --
> >>> Bruce Eitman (eMVP)
> >>> Senior Engineer
> >>> Bruce.Eitman AT Eurotech DOT com
> >>> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> >>> Eurotech Inc.
> >>>www.Eurotech.com
>
> >>> "SergeiR" <rusa...@cyberrealm.net> wrote in message
> >>>news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
> >>>> Hello experts,
>
> >>>> The documentation for Platform Builder for Windows CE 6 R2 mention,
> >>>> that it is possible to perform command line builds of Platform 
> >>>> Builder
> >>>> projects through the use of devenv.exe and .pbxml file.
>
> >>>> According to this url
> >>>>http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>
> >>>> it may be possible to perform build of the project like this
>
> >>>> Devenv SolutionName /build SolnConfigName [/project ProjName
> >>>> [/projectconfig ProjConfigName]]
>
> >>>> an example given is
>
> >>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual
> >>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project
> >>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>
> >>>> So my question is - can we do the same with PB projects ?
>
> >>>> For example a similar command to make build of some project does not
> >>>> succeed :
>
> >>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build
> >>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>
> >>>> Any ideas what's wrong ? The same solution builds fine when
> >>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>
> >>>> Thank you
>
> >>>> SergeiR- Hide quoted text -
>
> - Show quoted text -

I'm also trying to get a command line batch file working, this time
for use by a Hudson build server. The project is CE6.0 R3 and my batch
file is based on Bruce's blog (WORKSPACE & _WINCEROOT600 are defined
before this is called):

  REM This is the build directory
  REM set BUILDDIR=%_WINCEROOT600%_%EXECUTOR_NUMBER%
  set BUILDDIR=%_WINCEROOT600%

  REM Our project details
  SET __PROJECTNAME__=Mirage1_5
  SET __PLATFORMNAME__=Mirage_1v5
  set _WINCEROOT=%BUILDDIR%

  REM The .pbxml project we want to build.
  SET PBWORKSPACE=%_WINCEROOT%\OSDesigns\%__PROJECTNAME__%\
%__PROJECTNAME__%\%__PROJECTNAME__%.pbxml
  REM The location of the pbxmlutils utility.
  SET PBXMLUTILS="C:\Program Files\Microsoft Platform Builder\6.00\cepb
\IdeVS\pbxmlutils.exe"
  REM The configuration we want to build.
  SET PBCONFIG=%__PLATFORMNAME__% ARMV4I %1
  REM The location of the windows ce batch file
  SET WINCE_BAT=%_WINCEROOT%\Public\Common\Oak\misc\wince.bat

  REM Run Wince.bat to set up the basic environment
  call %WINCE_BAT% ARMV4I %__PROJECTNAME__% %__PLATFORMNAME__%

  REM Auto-generate a batch file which will set up a proper build
environment.
  %PBXMLUTILS% /getbuildenv > "%WORKSPACE%\set_up_env.bat"

  REM Run this batch file.
  CALL "%WORKSPACE%\set_up_env.bat"

  REM Log the environment variables
  set > "%WORKSPACE%\setenv.log"

  REM Go to the platform builder directory
  cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin

  @ECHO OFF
  REM Kick off a clean build.
  blddemo clean -q

This certainly launches the build, but fails with the following error
in BUILD.LOG:

link /LARGEADDRESSAWARE -out:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600  \Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.dll -dll -machine:thumb @C:\WINDOWS\TEMP
\nm28B1.tmp
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

-nodefaultlib
-entry:DllMain
-pdb:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.pdb
-pdbaltpath:corelib1.pdb
-debug -debugtype:cv -incremental:no
-map:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.map
-savebaserelocations:C:\WINCE600\OSDesigns
\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
\ARMV4I\debug\corelib1.rel
-MERGE:.rdata=.text -merge:.astart=.text -align:4096 -ignore:
4001,4070,4078,4086,4089,4096,4099,4108,4229 /STACK:65536,4096 -
debugtype:cv,fixup -incremental:no
/subsystem:windowsce,6.00
/base:0x10000000
C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
\cesysgen\oak\lib\ARMV4I\debug\corelib1_ALL.lib
C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
\cesysgen\oak\lib\ARMV4I\debug\corelib1.exp
LINK : fatal error LNK1101: incorrect MSPDB80.DLL version; recheck
installation of this product
NMAKE : fatal error U1077: 'link' : return code '0x44d'
Stop.
NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
return code '0x2'
Stop.

Interestingly (or should I say frustratingly) the batch file works in
a window created by VS2005, but not in a plain vanilla build window.
Any suggestions?

Thanks,
Andrew. 


0
Reply Bruce 12/16/2009 3:07:52 PM

On Dec 16, 3:07=A0pm, "Bruce Eitman [eMVP]"
<bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> Andrew:
>
> The fact that you thought that you needed to add:
>
> =A0 REM Go to the platform builder directory
> =A0 cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin
>
> Suggests to me that your environment is not right before you run this bat=
ch
> file. =A0Running from VS may fix the environment, have you diffed your
> setenv.log files?
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.www.Eurotech.com
>
> "AndrewScholan[MCTS]" <a...@plextek.co.uk> wrote in message
>
> news:5f91c91e-dd58-45ed-bb63-ec287f041231@m11g2000vbo.googlegroups.com...
> On Dec 16, 1:45 pm, "Bruce Eitman [eMVP]"
>
>
>
>
>
> <bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> > Let me spend a little more time on this:
>
> > 1. If you check the build output in Visual Studio you will see that
> > when you run Sysgen, the build output starts with running blddemo -q
> > 2. If you then check the makeimg output, you will find that it does run
> > the BAT files that you mention. What you probably didn't expect is that
> > this happens during makeimg, not before and after.
>
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > Bruce.Eitman AT Eurotech DOT com
> > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > Eurotech Inc.www.Eurotech.com
>
> > "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote i=
n
> > messagenews:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>
> > > Depends on where your pbxml is, doesn't it? I eliminate the redundant
> > > directory.
>
> > > blddemo is exactly how VS builds your project, so in fact it does run
> > > the
> > > BAT files.
>
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > > Bruce.Eitman AT Eurotech DOT com
> > > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > Eurotech Inc.
> > >www.Eurotech.com
>
> > > "SergeiR" <rusa...@cyberrealm.net> wrote in message
> > >news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
> > >> Hi Bruce,
>
> > >> in addition to my earlier reply to your suggestion, I have looked in=
to
> > >> the sequence of commands from url below, for Windows CE 6 section, a=
nd
> > >> it
> > >> seems that there is a an error in it, at least for the project I hav=
e
> > >> tried it with.
> > >> Line 5
> > >> set PBWORKSPACE=3D%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
> > >> needs to be changed to
> > >> set
> > >> PBWORKSPACE=3D%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%=
..pbxml
> > >> in order to be able to find .pbxml file under Windows CE 6 folders
> > >> structure.
>
> > >> As a side note, doing blddemo clean will produce OS image, but , unl=
ike
> > >> devenv.exe /Build .pbxml command , blldemo clean will not execute
> > >> premakeimg commands nor posmakeimg commands nor any custom build ste=
ps,
> > >> which are included into .pbxml build. That's why I want that, rather
> > >> than
> > >> doing sequence of steps before and after blddemo.
>
> > >> Thanks
>
> > >> SergeiR
>
> > >> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrot=
e
> > >> in
> > >> messagenews:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> > >>>http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-bat=
c...
>
> > >>> --
> > >>> Bruce Eitman (eMVP)
> > >>> Senior Engineer
> > >>> Bruce.Eitman AT Eurotech DOT com
> > >>> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > >>> Eurotech Inc.
> > >>>www.Eurotech.com
>
> > >>> "SergeiR" <rusa...@cyberrealm.net> wrote in message
> > >>>news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
> > >>>> Hello experts,
>
> > >>>> The documentation for Platform Builder for Windows CE 6 R2 mention=
,
> > >>>> that it is possible to perform command line builds of Platform
> > >>>> Builder
> > >>>> projects through the use of devenv.exe and .pbxml file.
>
> > >>>> According to this url
> > >>>>http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>
> > >>>> it may be possible to perform build of the project like this
>
> > >>>> Devenv SolutionName /build SolnConfigName [/project ProjName
> > >>>> [/projectconfig ProjConfigName]]
>
> > >>>> an example given is
>
> > >>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual
> > >>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project
> > >>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>
> > >>>> So my question is - can we do the same with PB projects ?
>
> > >>>> For example a similar command to make build of some project does n=
ot
> > >>>> succeed :
>
> > >>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Bu=
ild
> > >>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>
> > >>>> Any ideas what's wrong ? The same solution builds fine when
> > >>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>
> > >>>> Thank you
>
> > >>>> SergeiR- Hide quoted text -
>
> > - Show quoted text -
>
> I'm also trying to get a command line batch file working, this time
> for use by a Hudson build server. The project is CE6.0 R3 and my batch
> file is based on Bruce's blog (WORKSPACE & _WINCEROOT600 are defined
> before this is called):
>
> =A0 REM This is the build directory
> =A0 REM set BUILDDIR=3D%_WINCEROOT600%_%EXECUTOR_NUMBER%
> =A0 set BUILDDIR=3D%_WINCEROOT600%
>
> =A0 REM Our project details
> =A0 SET __PROJECTNAME__=3DMirage1_5
> =A0 SET __PLATFORMNAME__=3DMirage_1v5
> =A0 set _WINCEROOT=3D%BUILDDIR%
>
> =A0 REM The .pbxml project we want to build.
> =A0 SET PBWORKSPACE=3D%_WINCEROOT%\OSDesigns\%__PROJECTNAME__%\
> %__PROJECTNAME__%\%__PROJECTNAME__%.pbxml
> =A0 REM The location of the pbxmlutils utility.
> =A0 SET PBXMLUTILS=3D"C:\Program Files\Microsoft Platform Builder\6.00\ce=
pb
> \IdeVS\pbxmlutils.exe"
> =A0 REM The configuration we want to build.
> =A0 SET PBCONFIG=3D%__PLATFORMNAME__% ARMV4I %1
> =A0 REM The location of the windows ce batch file
> =A0 SET WINCE_BAT=3D%_WINCEROOT%\Public\Common\Oak\misc\wince.bat
>
> =A0 REM Run Wince.bat to set up the basic environment
> =A0 call %WINCE_BAT% ARMV4I %__PROJECTNAME__% %__PLATFORMNAME__%
>
> =A0 REM Auto-generate a batch file which will set up a proper build
> environment.
> =A0 %PBXMLUTILS% /getbuildenv > "%WORKSPACE%\set_up_env.bat"
>
> =A0 REM Run this batch file.
> =A0 CALL "%WORKSPACE%\set_up_env.bat"
>
> =A0 REM Log the environment variables
> =A0 set > "%WORKSPACE%\setenv.log"
>
> =A0 REM Go to the platform builder directory
> =A0 cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin
>
> =A0 @ECHO OFF
> =A0 REM Kick off a clean build.
> =A0 blddemo clean -q
>
> This certainly launches the build, but fails with the following error
> in BUILD.LOG:
>
> link /LARGEADDRESSAWARE -out:C:\WINCE600\OSDesigns
> \Mirage1_5\Mirage1_5\Wince600 =A0\Mirage_1v5_ARMV4I\cesysgen\oak\target
> \ARMV4I\debug\corelib1.dll -dll -machine:thumb @C:\WINDOWS\TEMP
> \nm28B1.tmp
> Microsoft (R) Incremental Linker Version 8.00.50727.42
> Copyright (C) Microsoft Corporation. =A0All rights reserved.
>
> -nodefaultlib
> -entry:DllMain
> -pdb:C:\WINCE600\OSDesigns
> \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> \ARMV4I\debug\corelib1.pdb
> -pdbaltpath:corelib1.pdb
> -debug -debugtype:cv -incremental:no
> -map:C:\WINCE600\OSDesigns
> \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> \ARMV4I\debug\corelib1.map
> -savebaserelocations:C:\WINCE600\OSDesigns
> \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> \ARMV4I\debug\corelib1.rel
> -MERGE:.rdata=3D.text -merge:.astart=3D.text -align:4096 -ignore:
> 4001,4070,4078,4086,4089,4096,4099,4108,4229 /STACK:65536,4096 -
> debugtype:cv,fixup -incremental:no
> /subsystem:windowsce,6.00
> /base:0x10000000
> C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
> \cesysgen\oak\lib\ARMV4I\debug\corelib1_ALL.lib
> C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
> \cesysgen\oak\lib\ARMV4I\debug\corelib1.exp
> LINK : fatal error LNK1101: incorrect MSPDB80.DLL version; recheck
> installation of this product
> NMAKE : fatal error U1077: 'link' : return code '0x44d'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
> return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
> return code '0x2'
> Stop.
>
> Interestingly (or should I say frustratingly) the batch file works in
> a window created by VS2005, but not in a plain vanilla build window.
> Any suggestions?
>
> Thanks,
> Andrew.- Hide quoted text -
>
> - Show quoted text -

Yes, you spotted the straw that I was trying to grasp... actually I've
tried a number of different directories to "CD" into with no avail.
Also you spotted my setenv.log... put there precisely for diffing with
a log from a VS2005 build window... all the CE related variables and
the path are identical, just looking at some of the others to see if
they are the problem.
Thanks,
Andrew.
0
Reply AndrewScholan 12/16/2009 3:32:10 PM

Bruce,

all that is fine with me. I just need to know (and idealy clarify with MS if 
they are aware of this and if a fix is planned) that the help and 
documentation, which comes with VS2005 is not right regarding the build 
using devenv.exe in a command line. That's all.

Yes it is possible to split my complicated .sln with a number of different 
..pbxml ones in it into several .bat files and work out the command line 
build of PB that way, and you showed helpful url with an example, but that's 
not what I am asking about !  I wanted one step solution through the use of 
existing and refined .sln .pbxml files, and it used to work before, and it 
is still in VS2005 documentation, but not in reality.

Thanks
SergeiR

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
message news:%23OIDLYlfKHA.5300@TK2MSFTNGP02.phx.gbl...
> Let me spend a little more time on this:
>
>    1.  If you check the build output in Visual Studio you will see that 
> when you run Sysgen, the build output starts with running blddemo -q
>    2.  If you then check the makeimg output, you will find that it does 
> run the BAT files that you mention.  What you probably didn't expect is 
> that this happens during makeimg, not before and after.
>
> -- 
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.
> www.Eurotech.com
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
> message news:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>> Depends on where your pbxml is, doesn't it?  I eliminate the redundant 
>> directory.
>>
>> blddemo is exactly how VS builds your project, so in fact it does run the 
>> BAT files.
>>
>> -- 
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT Eurotech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> Eurotech Inc.
>> www.Eurotech.com
>>
>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>> news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
>>> Hi Bruce,
>>>
>>> in addition to my earlier reply to your suggestion, I have looked into 
>>> the sequence of commands from url below, for Windows CE 6 section, and 
>>> it seems that there is a an error in it, at least for the project I have 
>>> tried it with.
>>> Line 5
>>> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
>>> needs to be changed to
>>> set 
>>> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
>>> in order to be able to find .pbxml file under Windows CE 6 folders 
>>> structure.
>>>
>>>
>>>
>>> As a side note, doing blddemo clean will produce OS image, but , unlike 
>>> devenv.exe /Build .pbxml command , blldemo clean will not execute 
>>> premakeimg commands nor posmakeimg commands nor any custom build steps, 
>>> which are included into .pbxml build. That's why I want that, rather 
>>> than doing sequence of steps before and after blddemo.
>>>
>>>
>>>
>>> Thanks
>>>
>>> SergeiR
>>>
>>>
>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
>>> message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
>>>> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>>>>
>>>> -- 
>>>> Bruce Eitman (eMVP)
>>>> Senior Engineer
>>>> Bruce.Eitman AT Eurotech DOT com
>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>
>>>> Eurotech Inc.
>>>> www.Eurotech.com
>>>>
>>>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>>>> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>>>>> Hello experts,
>>>>>
>>>>>
>>>>>
>>>>> The documentation for Platform Builder for Windows CE 6 R2 mention, 
>>>>> that it is possible to perform command line builds of Platform Builder 
>>>>> projects through the use of devenv.exe and .pbxml file.
>>>>>
>>>>> According to this url 
>>>>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>>>>
>>>>> it may be possible to perform build of the project like this
>>>>>
>>>>>
>>>>>
>>>>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>>>>> [/projectconfig ProjConfigName]]
>>>>>
>>>>>
>>>>>
>>>>> an example given is
>>>>>
>>>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>>>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>>>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>>>>
>>>>>
>>>>>
>>>>> So my question is - can we do the same with PB projects ?
>>>>>
>>>>>
>>>>>
>>>>> For example a similar command to make build of some project does not 
>>>>> succeed :
>>>>>
>>>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
>>>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>>>>
>>>>>
>>>>>
>>>>> Any ideas what's wrong ? The same solution builds fine when 
>>>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>>>>
>>>>>
>>>>>
>>>>> Thank you
>>>>>
>>>>> SergeiR
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
> 


0
Reply SergeiR 12/16/2009 11:36:43 PM

Used to work before?  Before what?  With PBXML files?

-- 
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"SergeiR" <rusakov@cyberrealm.net> wrote in message 
news:uSRKiiqfKHA.1536@TK2MSFTNGP06.phx.gbl...
> Bruce,
>
> all that is fine with me. I just need to know (and idealy clarify with MS 
> if they are aware of this and if a fix is planned) that the help and 
> documentation, which comes with VS2005 is not right regarding the build 
> using devenv.exe in a command line. That's all.
>
> Yes it is possible to split my complicated .sln with a number of different 
> .pbxml ones in it into several .bat files and work out the command line 
> build of PB that way, and you showed helpful url with an example, but 
> that's not what I am asking about !  I wanted one step solution through 
> the use of existing and refined .sln .pbxml files, and it used to work 
> before, and it is still in VS2005 documentation, but not in reality.
>
> Thanks
> SergeiR
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
> message news:%23OIDLYlfKHA.5300@TK2MSFTNGP02.phx.gbl...
>> Let me spend a little more time on this:
>>
>>    1.  If you check the build output in Visual Studio you will see that 
>> when you run Sysgen, the build output starts with running blddemo -q
>>    2.  If you then check the makeimg output, you will find that it does 
>> run the BAT files that you mention.  What you probably didn't expect is 
>> that this happens during makeimg, not before and after.
>>
>> -- 
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT Eurotech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> Eurotech Inc.
>> www.Eurotech.com
>>
>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
>> message news:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>>> Depends on where your pbxml is, doesn't it?  I eliminate the redundant 
>>> directory.
>>>
>>> blddemo is exactly how VS builds your project, so in fact it does run 
>>> the BAT files.
>>>
>>> -- 
>>> Bruce Eitman (eMVP)
>>> Senior Engineer
>>> Bruce.Eitman AT Eurotech DOT com
>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>
>>> Eurotech Inc.
>>> www.Eurotech.com
>>>
>>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>>> news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
>>>> Hi Bruce,
>>>>
>>>> in addition to my earlier reply to your suggestion, I have looked into 
>>>> the sequence of commands from url below, for Windows CE 6 section, and 
>>>> it seems that there is a an error in it, at least for the project I 
>>>> have tried it with.
>>>> Line 5
>>>> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
>>>> needs to be changed to
>>>> set 
>>>> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
>>>> in order to be able to find .pbxml file under Windows CE 6 folders 
>>>> structure.
>>>>
>>>>
>>>>
>>>> As a side note, doing blddemo clean will produce OS image, but , unlike 
>>>> devenv.exe /Build .pbxml command , blldemo clean will not execute 
>>>> premakeimg commands nor posmakeimg commands nor any custom build steps, 
>>>> which are included into .pbxml build. That's why I want that, rather 
>>>> than doing sequence of steps before and after blddemo.
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> SergeiR
>>>>
>>>>
>>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote 
>>>> in message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
>>>>> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>>>>>
>>>>> -- 
>>>>> Bruce Eitman (eMVP)
>>>>> Senior Engineer
>>>>> Bruce.Eitman AT Eurotech DOT com
>>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>>
>>>>> Eurotech Inc.
>>>>> www.Eurotech.com
>>>>>
>>>>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>>>>> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>>>>>> Hello experts,
>>>>>>
>>>>>>
>>>>>>
>>>>>> The documentation for Platform Builder for Windows CE 6 R2 mention, 
>>>>>> that it is possible to perform command line builds of Platform 
>>>>>> Builder projects through the use of devenv.exe and .pbxml file.
>>>>>>
>>>>>> According to this url 
>>>>>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>>>>>
>>>>>> it may be possible to perform build of the project like this
>>>>>>
>>>>>>
>>>>>>
>>>>>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>>>>>> [/projectconfig ProjConfigName]]
>>>>>>
>>>>>>
>>>>>>
>>>>>> an example given is
>>>>>>
>>>>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>>>>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>>>>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>>>>>
>>>>>>
>>>>>>
>>>>>> So my question is - can we do the same with PB projects ?
>>>>>>
>>>>>>
>>>>>>
>>>>>> For example a similar command to make build of some project does not 
>>>>>> succeed :
>>>>>>
>>>>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /Build 
>>>>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>>>>>
>>>>>>
>>>>>>
>>>>>> Any ideas what's wrong ? The same solution builds fine when 
>>>>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>> SergeiR
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
> 


0
Reply Bruce 12/17/2009 2:00:10 AM

On Dec 16, 3:32=A0pm, "AndrewScholan[MCTS]" <a...@plextek.co.uk> wrote:
> On Dec 16, 3:07=A0pm, "Bruce Eitman [eMVP]"
>
>
>
>
>
> <bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> > Andrew:
>
> > The fact that you thought that you needed to add:
>
> > =A0 REM Go to the platform builder directory
> > =A0 cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin
>
> > Suggests to me that your environment is not right before you run this b=
atch
> > file. =A0Running from VS may fix the environment, have you diffed your
> > setenv.log files?
>
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > Bruce.Eitman AT Eurotech DOT com
> > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > Eurotech Inc.www.Eurotech.com
>
> > "AndrewScholan[MCTS]" <a...@plextek.co.uk> wrote in message
>
> >news:5f91c91e-dd58-45ed-bb63-ec287f041231@m11g2000vbo.googlegroups.com..=
..
> > On Dec 16, 1:45 pm, "Bruce Eitman [eMVP]"
>
> > <bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> > > Let me spend a little more time on this:
>
> > > 1. If you check the build output in Visual Studio you will see that
> > > when you run Sysgen, the build output starts with running blddemo -q
> > > 2. If you then check the makeimg output, you will find that it does r=
un
> > > the BAT files that you mention. What you probably didn't expect is th=
at
> > > this happens during makeimg, not before and after.
>
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > > Bruce.Eitman AT Eurotech DOT com
> > > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > Eurotech Inc.www.Eurotech.com
>
> > > "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote=
 in
> > > messagenews:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>
> > > > Depends on where your pbxml is, doesn't it? I eliminate the redunda=
nt
> > > > directory.
>
> > > > blddemo is exactly how VS builds your project, so in fact it does r=
un
> > > > the
> > > > BAT files.
>
> > > > --
> > > > Bruce Eitman (eMVP)
> > > > Senior Engineer
> > > > Bruce.Eitman AT Eurotech DOT com
> > > > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > > Eurotech Inc.
> > > >www.Eurotech.com
>
> > > > "SergeiR" <rusa...@cyberrealm.net> wrote in message
> > > >news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
> > > >> Hi Bruce,
>
> > > >> in addition to my earlier reply to your suggestion, I have looked =
into
> > > >> the sequence of commands from url below, for Windows CE 6 section,=
 and
> > > >> it
> > > >> seems that there is a an error in it, at least for the project I h=
ave
> > > >> tried it with.
> > > >> Line 5
> > > >> set PBWORKSPACE=3D%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
> > > >> needs to be changed to
> > > >> set
> > > >> PBWORKSPACE=3D%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME_=
_%.pbxml
> > > >> in order to be able to find .pbxml file under Windows CE 6 folders
> > > >> structure.
>
> > > >> As a side note, doing blddemo clean will produce OS image, but , u=
nlike
> > > >> devenv.exe /Build .pbxml command , blldemo clean will not execute
> > > >> premakeimg commands nor posmakeimg commands nor any custom build s=
teps,
> > > >> which are included into .pbxml build. That's why I want that, rath=
er
> > > >> than
> > > >> doing sequence of steps before and after blddemo.
>
> > > >> Thanks
>
> > > >> SergeiR
>
> > > >> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wr=
ote
> > > >> in
> > > >> messagenews:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> > > >>>http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-b=
atc...
>
> > > >>> --
> > > >>> Bruce Eitman (eMVP)
> > > >>> Senior Engineer
> > > >>> Bruce.Eitman AT Eurotech DOT com
> > > >>> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > >>> Eurotech Inc.
> > > >>>www.Eurotech.com
>
> > > >>> "SergeiR" <rusa...@cyberrealm.net> wrote in message
> > > >>>news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
> > > >>>> Hello experts,
>
> > > >>>> The documentation for Platform Builder for Windows CE 6 R2 menti=
on,
> > > >>>> that it is possible to perform command line builds of Platform
> > > >>>> Builder
> > > >>>> projects through the use of devenv.exe and .pbxml file.
>
> > > >>>> According to this url
> > > >>>>http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>
> > > >>>> it may be possible to perform build of the project like this
>
> > > >>>> Devenv SolutionName /build SolnConfigName [/project ProjName
> > > >>>> [/projectconfig ProjConfigName]]
>
> > > >>>> an example given is
>
> > > >>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual
> > > >>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project
> > > >>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>
> > > >>>> So my question is - can we do the same with PB projects ?
>
> > > >>>> For example a similar command to make build of some project does=
 not
> > > >>>> succeed :
>
> > > >>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln /=
Build
> > > >>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>
> > > >>>> Any ideas what's wrong ? The same solution builds fine when
> > > >>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>
> > > >>>> Thank you
>
> > > >>>> SergeiR- Hide quoted text -
>
> > > - Show quoted text -
>
> > I'm also trying to get a command line batch file working, this time
> > for use by a Hudson build server. The project is CE6.0 R3 and my batch
> > file is based on Bruce's blog (WORKSPACE & _WINCEROOT600 are defined
> > before this is called):
>
> > =A0 REM This is the build directory
> > =A0 REM set BUILDDIR=3D%_WINCEROOT600%_%EXECUTOR_NUMBER%
> > =A0 set BUILDDIR=3D%_WINCEROOT600%
>
> > =A0 REM Our project details
> > =A0 SET __PROJECTNAME__=3DMirage1_5
> > =A0 SET __PLATFORMNAME__=3DMirage_1v5
> > =A0 set _WINCEROOT=3D%BUILDDIR%
>
> > =A0 REM The .pbxml project we want to build.
> > =A0 SET PBWORKSPACE=3D%_WINCEROOT%\OSDesigns\%__PROJECTNAME__%\
> > %__PROJECTNAME__%\%__PROJECTNAME__%.pbxml
> > =A0 REM The location of the pbxmlutils utility.
> > =A0 SET PBXMLUTILS=3D"C:\Program Files\Microsoft Platform Builder\6.00\=
cepb
> > \IdeVS\pbxmlutils.exe"
> > =A0 REM The configuration we want to build.
> > =A0 SET PBCONFIG=3D%__PLATFORMNAME__% ARMV4I %1
> > =A0 REM The location of the windows ce batch file
> > =A0 SET WINCE_BAT=3D%_WINCEROOT%\Public\Common\Oak\misc\wince.bat
>
> > =A0 REM Run Wince.bat to set up the basic environment
> > =A0 call %WINCE_BAT% ARMV4I %__PROJECTNAME__% %__PLATFORMNAME__%
>
> > =A0 REM Auto-generate a batch file which will set up a proper build
> > environment.
> > =A0 %PBXMLUTILS% /getbuildenv > "%WORKSPACE%\set_up_env.bat"
>
> > =A0 REM Run this batch file.
> > =A0 CALL "%WORKSPACE%\set_up_env.bat"
>
> > =A0 REM Log the environment variables
> > =A0 set > "%WORKSPACE%\setenv.log"
>
> > =A0 REM Go to the platform builder directory
> > =A0 cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin
>
> > =A0 @ECHO OFF
> > =A0 REM Kick off a clean build.
> > =A0 blddemo clean -q
>
> > This certainly launches the build, but fails with the following error
> > in BUILD.LOG:
>
> > link /LARGEADDRESSAWARE -out:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600 =A0\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.dll -dll -machine:thumb @C:\WINDOWS\TEMP
> > \nm28B1.tmp
> > Microsoft (R) Incremental Linker Version 8.00.50727.42
> > Copyright (C) Microsoft Corporation. =A0All rights reserved.
>
> > -nodefaultlib
> > -entry:DllMain
> > -pdb:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.pdb
> > -pdbaltpath:corelib1.pdb
> > -debug -debugtype:cv -incremental:no
> > -map:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.map
> > -savebaserelocations:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.rel
> > -MERGE:.rdata=3D.text -merge:.astart=3D.text -align:4096 -ignore:
> > 4001,4070,4078,4086,4089,4096,4099,4108,4229 /STACK:65536,4096 -
> > debugtype:cv,fixup -incremental:no
> > /subsystem:windowsce,6.00
> > /base:0x10000000
> > C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
> > \cesysgen\oak\lib\ARMV4I\debug\corelib1_ALL.lib
> > C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
> > \cesysgen\oak\lib\ARMV4I\debug\corelib1.exp
> > LINK : fatal error LNK1101: incorrect MSPDB80.DLL version; recheck
> > installation of this product
> > NMAKE : fatal error U1077: 'link' : return code '0x44d'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
> > return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
> > return code '0x2'
> > Stop.
>
> > Interestingly (or should I say frustratingly) the batch file works in
> > a window created by VS2005, but not in a plain vanilla build window.
> > Any suggestions?
>
> > Thanks,
> > Andrew.- Hide quoted text -
>
> > - Show quoted text -
>
> Yes, you spotted the straw that I was trying to grasp... actually I've
> tried a number of different directories to "CD" into with no avail.
> Also you spotted my setenv.log... put there precisely for diffing with
> a log from a VS2005 build window... all the CE related variables and
> the path are identical, just looking at some of the others to see if
> they are the problem.
> Thanks,
> Andrew.- Hide quoted text -
>
> - Show quoted text -

Actually my problem was caused by the login credentials for the
service that starts up the Hudson server. Starting Hudson as a local
user has fixed my problem.
Andrew.
0
Reply AndrewScholan 12/17/2009 1:59:44 PM

Hi Bruce,

Cannot tell you exact date when I tried it last time unfortunately. It was 
some time after WinCE6 was released officially, and certainly before CE6 R2 
was released. So it might have been original CE6 [ maybe with some early 
QFEs], where command line builds of devenv.exe worked as [still] described 
in help today.

So it is my understanding, unless told otherwise, that Platform Builder of 
Windows CE6 has lost this capability of command line builds through 
devenv.exe somewhere before R2, with its help becoming out of date.

There is no original CE6 installation available to me today to try it out to 
clarify.

Regards
SergeiR




"Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
message news:uzSIsyrfKHA.1648@TK2MSFTNGP05.phx.gbl...
> Used to work before?  Before what?  With PBXML files?
>
> -- 
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT Eurotech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> Eurotech Inc.
> www.Eurotech.com
>
> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
> news:uSRKiiqfKHA.1536@TK2MSFTNGP06.phx.gbl...
>> Bruce,
>>
>> all that is fine with me. I just need to know (and idealy clarify with MS 
>> if they are aware of this and if a fix is planned) that the help and 
>> documentation, which comes with VS2005 is not right regarding the build 
>> using devenv.exe in a command line. That's all.
>>
>> Yes it is possible to split my complicated .sln with a number of 
>> different .pbxml ones in it into several .bat files and work out the 
>> command line build of PB that way, and you showed helpful url with an 
>> example, but that's not what I am asking about !  I wanted one step 
>> solution through the use of existing and refined .sln .pbxml files, and 
>> it used to work before, and it is still in VS2005 documentation, but not 
>> in reality.
>>
>> Thanks
>> SergeiR
>>
>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
>> message news:%23OIDLYlfKHA.5300@TK2MSFTNGP02.phx.gbl...
>>> Let me spend a little more time on this:
>>>
>>>    1.  If you check the build output in Visual Studio you will see that 
>>> when you run Sysgen, the build output starts with running blddemo -q
>>>    2.  If you then check the makeimg output, you will find that it does 
>>> run the BAT files that you mention.  What you probably didn't expect is 
>>> that this happens during makeimg, not before and after.
>>>
>>> -- 
>>> Bruce Eitman (eMVP)
>>> Senior Engineer
>>> Bruce.Eitman AT Eurotech DOT com
>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>
>>> Eurotech Inc.
>>> www.Eurotech.com
>>>
>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote in 
>>> message news:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>>>> Depends on where your pbxml is, doesn't it?  I eliminate the redundant 
>>>> directory.
>>>>
>>>> blddemo is exactly how VS builds your project, so in fact it does run 
>>>> the BAT files.
>>>>
>>>> -- 
>>>> Bruce Eitman (eMVP)
>>>> Senior Engineer
>>>> Bruce.Eitman AT Eurotech DOT com
>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>
>>>> Eurotech Inc.
>>>> www.Eurotech.com
>>>>
>>>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>>>> news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
>>>>> Hi Bruce,
>>>>>
>>>>> in addition to my earlier reply to your suggestion, I have looked into 
>>>>> the sequence of commands from url below, for Windows CE 6 section, and 
>>>>> it seems that there is a an error in it, at least for the project I 
>>>>> have tried it with.
>>>>> Line 5
>>>>> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
>>>>> needs to be changed to
>>>>> set 
>>>>> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
>>>>> in order to be able to find .pbxml file under Windows CE 6 folders 
>>>>> structure.
>>>>>
>>>>>
>>>>>
>>>>> As a side note, doing blddemo clean will produce OS image, but , 
>>>>> unlike devenv.exe /Build .pbxml command , blldemo clean will not 
>>>>> execute premakeimg commands nor posmakeimg commands nor any custom 
>>>>> build steps, which are included into .pbxml build. That's why I want 
>>>>> that, rather than doing sequence of steps before and after blddemo.
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> SergeiR
>>>>>
>>>>>
>>>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@Eurotech.com.nospam> wrote 
>>>>> in message news:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
>>>>>> http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batch-file-to-automatically-build-a-windows-ce.aspx
>>>>>>
>>>>>> -- 
>>>>>> Bruce Eitman (eMVP)
>>>>>> Senior Engineer
>>>>>> Bruce.Eitman AT Eurotech DOT com
>>>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>>>
>>>>>> Eurotech Inc.
>>>>>> www.Eurotech.com
>>>>>>
>>>>>> "SergeiR" <rusakov@cyberrealm.net> wrote in message 
>>>>>> news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
>>>>>>> Hello experts,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The documentation for Platform Builder for Windows CE 6 R2 mention, 
>>>>>>> that it is possible to perform command line builds of Platform 
>>>>>>> Builder projects through the use of devenv.exe and .pbxml file.
>>>>>>>
>>>>>>> According to this url 
>>>>>>> http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>>>>>>>
>>>>>>> it may be possible to perform build of the project like this
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Devenv SolutionName /build SolnConfigName [/project ProjName 
>>>>>>> [/projectconfig ProjConfigName]]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> an example given is
>>>>>>>
>>>>>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual 
>>>>>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project 
>>>>>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> So my question is - can we do the same with PB projects ?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> For example a similar command to make build of some project does not 
>>>>>>> succeed :
>>>>>>>
>>>>>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln 
>>>>>>> /Build Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Any ideas what's wrong ? The same solution builds fine when 
>>>>>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>> SergeiR
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
> 

0
Reply Sergei 12/18/2009 6:39:32 AM

Good news.  Thanks for the update.

-- 
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com

"AndrewScholan[MCTS]" <ams@plextek.co.uk> wrote in message 
news:9ad7a122-e7c3-458b-b654-c05f1b3b1a44@v30g2000yqm.googlegroups.com...
On Dec 16, 3:32 pm, "AndrewScholan[MCTS]" <a...@plextek.co.uk> wrote:
> On Dec 16, 3:07 pm, "Bruce Eitman [eMVP]"
>
>
>
>
>
> <bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> > Andrew:
>
> > The fact that you thought that you needed to add:
>
> > REM Go to the platform builder directory
> > cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin
>
> > Suggests to me that your environment is not right before you run this 
> > batch
> > file. Running from VS may fix the environment, have you diffed your
> > setenv.log files?
>
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > Bruce.Eitman AT Eurotech DOT com
> > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > Eurotech Inc.www.Eurotech.com
>
> > "AndrewScholan[MCTS]" <a...@plextek.co.uk> wrote in message
>
> >news:5f91c91e-dd58-45ed-bb63-ec287f041231@m11g2000vbo.googlegroups.com...
> > On Dec 16, 1:45 pm, "Bruce Eitman [eMVP]"
>
> > <bruce.eitman.nos...@Eurotech.com.nospam> wrote:
> > > Let me spend a little more time on this:
>
> > > 1. If you check the build output in Visual Studio you will see that
> > > when you run Sysgen, the build output starts with running blddemo -q
> > > 2. If you then check the makeimg output, you will find that it does 
> > > run
> > > the BAT files that you mention. What you probably didn't expect is 
> > > that
> > > this happens during makeimg, not before and after.
>
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > > Bruce.Eitman AT Eurotech DOT com
> > > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > Eurotech Inc.www.Eurotech.com
>
> > > "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> wrote 
> > > in
> > > messagenews:%23mn$TmffKHA.5228@TK2MSFTNGP06.phx.gbl...
>
> > > > Depends on where your pbxml is, doesn't it? I eliminate the 
> > > > redundant
> > > > directory.
>
> > > > blddemo is exactly how VS builds your project, so in fact it does 
> > > > run
> > > > the
> > > > BAT files.
>
> > > > --
> > > > Bruce Eitman (eMVP)
> > > > Senior Engineer
> > > > Bruce.Eitman AT Eurotech DOT com
> > > > My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > > Eurotech Inc.
> > > >www.Eurotech.com
>
> > > > "SergeiR" <rusa...@cyberrealm.net> wrote in message
> > > >news:e50gcqcfKHA.2596@TK2MSFTNGP04.phx.gbl...
> > > >> Hi Bruce,
>
> > > >> in addition to my earlier reply to your suggestion, I have looked 
> > > >> into
> > > >> the sequence of commands from url below, for Windows CE 6 section, 
> > > >> and
> > > >> it
> > > >> seems that there is a an error in it, at least for the project I 
> > > >> have
> > > >> tried it with.
> > > >> Line 5
> > > >> set PBWORKSPACE=%PBWORKSPACEROOT%\%__PROJECTNAME__%.pbxml
> > > >> needs to be changed to
> > > >> set
> > > >> PBWORKSPACE=%PBWORKSPACEROOT%\%__PLATFORMNAME__%\%__PROJECTNAME__%.pbxml
> > > >> in order to be able to find .pbxml file under Windows CE 6 folders
> > > >> structure.
>
> > > >> As a side note, doing blddemo clean will produce OS image, but , 
> > > >> unlike
> > > >> devenv.exe /Build .pbxml command , blldemo clean will not execute
> > > >> premakeimg commands nor posmakeimg commands nor any custom build 
> > > >> steps,
> > > >> which are included into .pbxml build. That's why I want that, 
> > > >> rather
> > > >> than
> > > >> doing sequence of steps before and after blddemo.
>
> > > >> Thanks
>
> > > >> SergeiR
>
> > > >> "Bruce Eitman [eMVP]" <bruce.eitman.nos...@Eurotech.com.nospam> 
> > > >> wrote
> > > >> in
> > > >> messagenews:uPrJczPfKHA.3792@TK2MSFTNGP02.phx.gbl...
> > > >>>http://geekswithblogs.net/BruceEitman/archive/2008/05/07/using-a-batc...
>
> > > >>> --
> > > >>> Bruce Eitman (eMVP)
> > > >>> Senior Engineer
> > > >>> Bruce.Eitman AT Eurotech DOT com
> > > >>> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> > > >>> Eurotech Inc.
> > > >>>www.Eurotech.com
>
> > > >>> "SergeiR" <rusa...@cyberrealm.net> wrote in message
> > > >>>news:OaOvh3OfKHA.1652@TK2MSFTNGP05.phx.gbl...
> > > >>>> Hello experts,
>
> > > >>>> The documentation for Platform Builder for Windows CE 6 R2 
> > > >>>> mention,
> > > >>>> that it is possible to perform command line builds of Platform
> > > >>>> Builder
> > > >>>> projects through the use of devenv.exe and .pbxml file.
>
> > > >>>> According to this url
> > > >>>>http://msdn.microsoft.com/en-us/library/xee0c8y7(VS.80).aspx
>
> > > >>>> it may be possible to perform build of the project like this
>
> > > >>>> Devenv SolutionName /build SolnConfigName [/project ProjName
> > > >>>> [/projectconfig ProjConfigName]]
>
> > > >>>> an example given is
>
> > > >>>> devenv "C:\Documents and Settings\someuser\My Documents\Visual
> > > >>>> Studio\Projects\MySolution\MySolution.sln" /build Debug /project
> > > >>>> "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug
>
> > > >>>> So my question is - can we do the same with PB projects ?
>
> > > >>>> For example a similar command to make build of some project does 
> > > >>>> not
> > > >>>> succeed :
>
> > > >>>> devenv.exe C:\WINCE600\OSDesigns\CE6_emul_EWP\CE6_emul_EWP.sln 
> > > >>>> /Build
> > > >>>> Debug /project "CE6_emul_EWP\CE6_emul_EWP.pbxml"
>
> > > >>>> Any ideas what's wrong ? The same solution builds fine when
> > > >>>> CE6_emul_EWP.sln is opened manually through VS2005 PB.
>
> > > >>>> Thank you
>
> > > >>>> SergeiR- Hide quoted text -
>
> > > - Show quoted text -
>
> > I'm also trying to get a command line batch file working, this time
> > for use by a Hudson build server. The project is CE6.0 R3 and my batch
> > file is based on Bruce's blog (WORKSPACE & _WINCEROOT600 are defined
> > before this is called):
>
> > REM This is the build directory
> > REM set BUILDDIR=%_WINCEROOT600%_%EXECUTOR_NUMBER%
> > set BUILDDIR=%_WINCEROOT600%
>
> > REM Our project details
> > SET __PROJECTNAME__=Mirage1_5
> > SET __PLATFORMNAME__=Mirage_1v5
> > set _WINCEROOT=%BUILDDIR%
>
> > REM The .pbxml project we want to build.
> > SET PBWORKSPACE=%_WINCEROOT%\OSDesigns\%__PROJECTNAME__%\
> > %__PROJECTNAME__%\%__PROJECTNAME__%.pbxml
> > REM The location of the pbxmlutils utility.
> > SET PBXMLUTILS="C:\Program Files\Microsoft Platform Builder\6.00\cepb
> > \IdeVS\pbxmlutils.exe"
> > REM The configuration we want to build.
> > SET PBCONFIG=%__PLATFORMNAME__% ARMV4I %1
> > REM The location of the windows ce batch file
> > SET WINCE_BAT=%_WINCEROOT%\Public\Common\Oak\misc\wince.bat
>
> > REM Run Wince.bat to set up the basic environment
> > call %WINCE_BAT% ARMV4I %__PROJECTNAME__% %__PLATFORMNAME__%
>
> > REM Auto-generate a batch file which will set up a proper build
> > environment.
> > %PBXMLUTILS% /getbuildenv > "%WORKSPACE%\set_up_env.bat"
>
> > REM Run this batch file.
> > CALL "%WORKSPACE%\set_up_env.bat"
>
> > REM Log the environment variables
> > set > "%WORKSPACE%\setenv.log"
>
> > REM Go to the platform builder directory
> > cd C:\Program Files\Microsoft Platform Builder\6.00\cepb\bin
>
> > @ECHO OFF
> > REM Kick off a clean build.
> > blddemo clean -q
>
> > This certainly launches the build, but fails with the following error
> > in BUILD.LOG:
>
> > link /LARGEADDRESSAWARE -out:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600 \Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.dll -dll -machine:thumb @C:\WINDOWS\TEMP
> > \nm28B1.tmp
> > Microsoft (R) Incremental Linker Version 8.00.50727.42
> > Copyright (C) Microsoft Corporation. All rights reserved.
>
> > -nodefaultlib
> > -entry:DllMain
> > -pdb:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.pdb
> > -pdbaltpath:corelib1.pdb
> > -debug -debugtype:cv -incremental:no
> > -map:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.map
> > -savebaserelocations:C:\WINCE600\OSDesigns
> > \Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I\cesysgen\oak\target
> > \ARMV4I\debug\corelib1.rel
> > -MERGE:.rdata=.text -merge:.astart=.text -align:4096 -ignore:
> > 4001,4070,4078,4086,4089,4096,4099,4108,4229 /STACK:65536,4096 -
> > debugtype:cv,fixup -incremental:no
> > /subsystem:windowsce,6.00
> > /base:0x10000000
> > C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
> > \cesysgen\oak\lib\ARMV4I\debug\corelib1_ALL.lib
> > C:\WINCE600\OSDesigns\Mirage1_5\Mirage1_5\Wince600\Mirage_1v5_ARMV4I
> > \cesysgen\oak\lib\ARMV4I\debug\corelib1.exp
> > LINK : fatal error LNK1101: incorrect MSPDB80.DLL version; recheck
> > installation of this product
> > NMAKE : fatal error U1077: 'link' : return code '0x44d'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
> > return code '0x2'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\WINCE600\sdk\bin\i386\nmake.exe' :
> > return code '0x2'
> > Stop.
>
> > Interestingly (or should I say frustratingly) the batch file works in
> > a window created by VS2005, but not in a plain vanilla build window.
> > Any suggestions?
>
> > Thanks,
> > Andrew.- Hide quoted text -
>
> > - Show quoted text -
>
> Yes, you spotted the straw that I was trying to grasp... actually I've
> tried a number of different directories to "CD" into with no avail.
> Also you spotted my setenv.log... put there precisely for diffing with
> a log from a VS2005 build window... all the CE related variables and
> the path are identical, just looking at some of the others to see if
> they are the problem.
> Thanks,
> Andrew.- Hide quoted text -
>
> - Show quoted text -

Actually my problem was caused by the login credentials for the
service that starts up the Hudson server. Starting Hudson as a local
user has fixed my problem.
Andrew. 


0
Reply Bruce 12/18/2009 1:34:25 PM

13 Replies
368 Views

(page loaded in 1.123 seconds)


Reply: