Thursday, 1 August 2013

Teamcenter Unified Achitecture Compile and link ITK program on windows system (2 tier teamcenter) .



Steps to follow to Compile and link  ITK program on windows system (2 tier teamcenter)

(if Images not clear to you, then please click on image to view in full size )

1) if you have 64 bit machine and 64 bit two tier installation   then Check to see that whether you have 64bit visual studio compiler or not .

How to Check :  Go to location specified in snap shot on your system. 



If not present then you need to go the location specified in snap below and perform step as shown in snap.

Once the installation is loaded you will be provided with below Screen,please Click next.

You will be provided with below Screen,please do as specified in snap.

You will be provided with below Screen,please do as specified in snap.
Click on Update button.



       2)        Modify  Compile.bat and linkitk.bat file

Please do perform same modifications with linkitk.bat file.
Modify unidefs.h file which is present at two tier installation location   C:\Siemens\Teamcenter9\include.

Previously it was containing

          3)        Go to Start->Teamcenter 9->UADEV_DB_config1 command prompt    click it to open.
             Note: Teamcenter 9 represent two tier installations .

Now perform below steps :
            
          1)     set MSDEV_HOME=c:\\Program Files(x86)\Microsoft Visual Studio 8\VC
             2)      Enter the directory of your code
             3)      compile -DIPLIB=none test.c
             4)      linkitk -o test test.obj

Run exe :
Note :Depend on your customization do the modification in linker file e.g if you are working with user_exit  then please modify  link_user_exit.bat file to include 64bit compiler path  , as done in compile.bat file.

7 comments:

  1. Thank you. This served as a good reference when trying this out for myself. You have listed all the key points.

    ReplyDelete
  2. Excellent instruction
    ---Nagarajan Ramaswamy(NagRam82@gmail.com)

    ReplyDelete
    Replies
    1. Thanks Nagarajan

      I am really happy that provided information is useful for everyone.

      Regards,
      Anil Bhendarkar

      Delete
  3. Hi, I am facing fatal error LNK1112: module
    machine type 'x64' conflicts with target machine type 'X86'.

    Also,
    mt.exe : general error c10100b1: Failed to load file "*.exe". The system cannot find the file specified.

    Please help me find a solution.

    ReplyDelete
  4. This error generally seen generally due to incompatibility.
    Make sure Teamcneter version and compiler version are same.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete