Teamcenter 13 ITK 在SUSE linux 12 编译教程
1、安装部署Teamcenter13 服务器(DB、TC Foundation、J2EE 服务端)或应用层服务(TC Foundation、J2EE 服务端)、Sample样例程序,具备支持ITK编译和运行条件。
2、编写编译脚本。
echo "Start compile itk sign"
export TC\_ROOT=/usr/Siemens/Teamcenter13
echo $TC\_ROOT
export TC\_INCLUDE=/usr/Siemens/Teamcenter13/include
echo $TC\_INCLUDE
\#export TC\_INCLUDE=/usr/Siemens/Teamcenter13/include/tccore
\#echo $TC\_INCLUDE
export TC\_LIBRARY=/usr/Siemens/Teamcenter13/lib
echo $TC\_LIBRARY
export TC\_DATA=/usr/Siemens/tcdata
echo $TC\_DATA
export LIBPATH=/usr/Siemens/Teamcenter13/lib
TC\_USER\_LIB=${TC\_LIBRARY};export TC\_USER\_LIB
/usr/Siemens/tcdata/tc\_profilevars
echo "执行的文件名:$0";
\# check argumenst 1 is null?
inputPathName=$1;
if [ -z $inputPathName ]; then
echo "arguments error !"
inputPathName=$(cd "$(dirname "$0")";pwd);
else
echo "arguments $inputPathName !"
fi
\#check path
if [ ! -d "$inputPathName" ];then
echo "[ $inputPathName ] Path does not exits !";
#--get current path
inputPathName=$(cd "$(dirname "$0")";pwd);
fi
folder=$inputPathName;
echo "current Path:$folder"
echo get all file
fileList=$(ls $folder/*.c)
echo ${fileList}
for fileList in ${fileList}
do
echo -e "**********"
echo -e "compile fileName ${fileList}"
#/usr/Siemens/Teamcenter13/sample/compile ${fileList}
echo -e "********"
done
\#compile .c files
$TC\_ROOT/sample/compile *.c
if [ -f"/usr/Siemens/Teamcenter13/lib/libZL13.so" ]; then
rm -rf "/usr/Siemens/Teamcenter13/lib/libZL13.so"
fi
$TC\_ROOT/sample/link\_custom\_exits libZL13
3、运行脚本:
4、运行验证