Topic
3 replies Latest Post - ‏2010-04-15T15:40:14Z by SystemAdmin
keithGell
keithGell
6 Posts
ACCEPTED ANSWER

Pinned topic "Failed to find root to export" error on model verifier

‏2010-04-13T13:13:43Z |
Hi

I am trying out the model verifier on the ping-pong example.

However when I select the artefact & choose Build->Generate I get the error:

"TIL050: Failed to find root to export"

I though the root was the "Match" class?

Anyone know what the problem is?

Keith
Updated on 2010-04-15T15:40:14Z at 2010-04-15T15:40:14Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    147 Posts
    ACCEPTED ANSWER

    Re: "Failed to find root to export" error on model verifier

    ‏2010-04-13T16:39:08Z  in response to keithGell
    Works fine for me on Tau 4.3.0.1.16095, builds and starts MV using Visual studio 2005 - but I'm sure it will work with later versions of VS too.

    The usual problem with building for the MV using Visual studio is that MS installer doesn't setup the environment properly for what is effectively command-line usage of the compiler and linker by Tau. I usually modify the desktop shortcut for Tau by opening its properties and setting the target to first run the visual studio environment variable setup batch file then launch tau. For me (with VS2005 aka Visual Stdio 8) the command looks like this:

    
    
    "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" & 
    "C:\Program Files\IBM\Rational\TAU\4.3\bin\VCS.EXE"
    


    Only disadvantage of this is that you can't build for the MV after double-clicking a .ttw or .ttp file.

    I think that TIL error is prior to codegen though so the compiler doesn't matter. Are you modifying the model after you create it from the sample? Is the project/model in a writable directory?

    Not sure what else to suggest - you should probably raise a support case.

    HTH
    Ian
    • keithGell
      keithGell
      6 Posts
      ACCEPTED ANSWER

      Re: "Failed to find root to export" error on model verifier

      ‏2010-04-15T14:41:42Z  in response to SystemAdmin
      Ian

      Thanks for the reply.

      I have mamanged to get past that error, and can generate the C code.

      However, when I Launch I get an error: nmake /F "makefile.Coffeemachine"
      (I was using the Coffeemachine sample)

      I am using MS Visual C++ 2005 V8.0.50727.762(SP .050727-7600)

      Have you seen this before? Any ideas?

      Thanks

      Keith
      • SystemAdmin
        SystemAdmin
        147 Posts
        ACCEPTED ANSWER

        Re: "Failed to find root to export" error on model verifier

        ‏2010-04-15T15:40:14Z  in response to keithGell
        That should be fixed if you take the approach described in my first post. The problem is that a) Tau needs the VS environment to be setup to be usable like from a command line, and b) VS2005 (and later) don't automatically do this, although they do provide a vsvars32.bat file which can be used to set it up.

        There are two routes:
        1. as I described in my first post to start Tau from a modified desktop shortcut - this is usually the easiest route
        2. look at the vsvars32.bat file and copy the changes to e.g. PATH, LIB, INCLUDE into your system environment variables

        Either way if you can compile/link a c program from the command prompt with e.g.
        
        cl helloworld.c
        

        then Tau should also be able to build for the MV.

        HTH
        Ian