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.
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.
1) set MSDEV_HOME=c:\\Program Files(x86)\Microsoft Visual Studio 8\VC
2) Enter the directory of your code
Thank you. This served as a good reference when trying this out for myself. You have listed all the key points.
ReplyDeleteThanks :-)
DeleteExcellent instruction
ReplyDelete---Nagarajan Ramaswamy(NagRam82@gmail.com)
Thanks Nagarajan
DeleteI am really happy that provided information is useful for everyone.
Regards,
Anil Bhendarkar
Hi, I am facing fatal error LNK1112: module
ReplyDeletemachine 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.
This error generally seen generally due to incompatibility.
ReplyDeleteMake sure Teamcneter version and compiler version are same.
This comment has been removed by the author.
ReplyDelete