none
Building SVCSTART for WinCE420 RRS feed

  • Question

  • I am trying to follow instruction at http://blogs.msdn.com/b/cenet/archive/2004/12/03/274661.aspx to start a daemon on boot on a WinCE420 platform. I have downloaded and installed WinCE 4.2 Platform Manager. The instructions for building SVCSTART from Platform Builder do not work / are unclear. I started the Platform Builder command line from Program Files -> Microsoft Windows CE .NET 4.2 -> Windows CE .NET 4.2 Command Prompt, changed to the directory and ran build. It failed complaining "environment variable NTMAKEENV or OTOOLS must be defined". I googled around and guessed a setting for NTMAKEENV as follows:

    set NTMAKEENV="C:\WINCE420\SDK\bin"

    This got me a new error message:

    1)c:\wince420\public\servers\sdk\samples\services\svcstart\makefile(16) : error U1052: file '\makefile.def' not found

    I found makefile.def and then tried another environment munge.

    set _MAKEENVROOT="C:\WINCE420\PUBLIC\COMMON\OAK\MISC"

    This didn't work, so instead I edited the makefile and put the above path in place of the variable reference. Got to a new error: 

    "BUILDROOT must be defined."

    Googled again and tried the following.

    set BUILDROOT="C:\WINCE420\PLATFORM\GEODE"

    Which got me to another error, where I'm currently stuck. I tried setting MAKEDIR_RELATIVE_TO_BASEDIR but it had no effect. Any suggestions how I can get this to build? Error follows:

    BUILD: Compiling c:\wince420\public\servers\sdk\samples\services\svcstart directory

    1)errors in directory c:\wince420\public\servers\sdk\samples\services\svcstart

    )1c:\wince420\public\common\oak\misc\makefile.def(59) : error U1023: syntax error in expression

    1)nmake nologo BUILDMSG=Stop. BUILD_PASS=PASS1 NOLINK=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed - rc = 2

    BUILD: Finish time: ...

    • Moved by Jesse Jiang Monday, March 28, 2011 2:16 AM (From:Windows Mobile Development)
    Friday, March 25, 2011 5:20 AM

All replies

  •  

    Hello,

     

    I think your issue should be raised in the Windows Embedded Compact Platform Development. I believe they will know more information of this issue than us, and I will move this one to that forum.

     

    Thanks for your understanding,

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, March 28, 2011 2:16 AM
  • Have you tried the build steps proposed in paragraph #3 by SVCstart author http://blogs.msdn.com/b/cenet/archive/2004/12/03/274661.aspx ? They definitely work
    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Monday, March 28, 2011 6:35 AM
  • Have you tried the build steps proposed in paragraph #3 by SVCstart author http://blogs.msdn.com/b/cenet/archive/2004/12/03/274661.aspx ? They definitely work
    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    I opened up Platform Builder, did File -> New Platform... then Build -> Open Build Release Directory and went from there. How frustrating to miss such a basic step. Sigh. I imagine that if I simply grab the resulting .dll and put it on the device under \windows it will be found and work (assuming I populate the registry appropriately)?

    Monday, March 28, 2011 11:36 PM
  • Yes, it definitely works: I've used it too
    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Tuesday, March 29, 2011 6:38 AM