Compiling ITK Program
You will need to follow below steps to compile ITK program:
1. Install "Sample project" feature of Teamcenter which creates samples folder in TC_ROOT directory.
2. Create a simple ITK program. Example is given below:
#include<stdio.h>
#include<tccore/tctype.h>
#include<tccore/item.h>
#include<tccore/aom_prop.h>
int ITK_user_main(int argc, char* argv[])
{
ITK_auto_login();
printf(( "Welcome to PLM\n"));
return 0;
}
#include<stdio.h>
#include<tccore/tctype.h>
#include<tccore/item.h>
#include<tccore/aom_prop.h>
int ITK_user_main(int argc, char* argv[])
{
ITK_auto_login();
printf(( "Welcome to PLM\n"));
return 0;
}
3. Install VisualStudio.
4. Open TC command prompt and check if MSDEV_HOME is already set, if not set then set it to <VisualStudio/VC> directory like C:\ProgramFiles\MVS11\VC.
5. Compile code with the help of below command which will create OBJ file.
%TC_ROOT%\sample\compile -DIPLIB=none create_items.c
%TC_ROOT%\sample\compile -DIPLIB=none create_items.c
6. Create exe file from OBJ file with the help of below command.
%TC_ROOT%\sample\linkitk -o create_items create_items.obj
%TC_ROOT%\sample\linkitk -o create_items create_items.obj