0% found this document useful (0 votes)
461 views

BMIDEConfiguration For Codefull Customization

This document provides instructions for configuring a BMIDE project for Windows and Unix environments. It discusses installing Visual Studio Express 2012 on Windows, updating paths and symbols, and using Visual Studio for compiling and debugging. For Unix, it describes obtaining include paths from the system configuration and configuring an attached debugger. It also provides guidance on source control, adding or modifying services, and handling changes across different environments.

Uploaded by

CubeFad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
461 views

BMIDEConfiguration For Codefull Customization

This document provides instructions for configuring a BMIDE project for Windows and Unix environments. It discusses installing Visual Studio Express 2012 on Windows, updating paths and symbols, and using Visual Studio for compiling and debugging. For Unix, it describes obtaining include paths from the system configuration and configuring an attached debugger. It also provides guidance on source control, adding or modifying services, and handling changes across different environments.

Uploaded by

CubeFad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Table of Contents

1 Windows...........................................................................................................................................1
1.1 Install.............................................................................................................................................1
1.2 Changes in bmide.bat....................................................................................................................1
1.3 Configuration in BMIDE Project properties.................................................................................1
Path and symbols..................................................................................................................................1
1.5 Use visual studio for compile and debug......................................................................................2
1.5.1 Path and symbols........................................................................................................................2
2 Unix..................................................................................................................................................3
2.1 Configuration in BMIDE Project properties.................................................................................3
2.1.1 Path and symbols........................................................................................................................3
3 Source management..........................................................................................................................4
4 Change in environment.....................................................................................................................4
4.1 Add new service............................................................................................................................5
4.2 Modify type...................................................................................................................................5
4.3 Change service operation..............................................................................................................5

1 Windows

MSVC 2012 Express (not officially supported by Teamcenter)

1.1 Install
Install the Visual Studio Express 2012 for Windows Desktop version.

1.2 Changes in bmide.bat


The bmide_generatecode.bat is using TC_BIN, if not defined following error
Error: Could not find or load main class
com.teamcenter.bmide.codegen.utility.GenerateCodeMain
is shown. Add TC_BIN definition into bmide.bat

if not defined TC_ROOT set TC_ROOT=C:\plm\tc112


if not defined TC_BIN set TC_BIN=%TC_ROOT%\bin

Add following line for 64bit compilation:

call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86_amd64


set PATH=%JRE_HOME%\bin;%JDK_HOME%\bin;%TC_ROOT%\lib;%FMS_HOME%\bin;%FMS_HOME%\lib;
%FMS_HOME%;%PATH%

1.3 Configuration in BMIDE Project properties


Path and symbols

For symbol evaluation define correct include directories:


Windows:

C
${TC_ROOT}\include
${VCINSTALLDIR}\include

C++
${TC_ROOT}\include
${VCINSTALLDIR}\include

1.4 Use visual studio for compile and debug


1.4.1 Project

Options

Compile NDEBUG

for GNU C and GNU C++ compiler.

Copy makefile.wintx64 to makefile.msvc


Activate the -Zi option

Create nmake visual studio project using makefile.msvc and all | clean parameter
Move the msvc project file into BMIDE project directory

1.4.2 Debug

Build

Debug by process attach

2 Unix
2.1 Configuration in BMIDE Project properties
2.1.1 Path and symbols

C
Get system configuration with
gcc -xc -E -v -

and add it after ${TC_ROOT}/include e.g.:

${TC_ROOT}/include
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include
/usr/local/include
/usr/include

C++
Get system configuration with
gcc -xc++ -E -v -

and add it after ${TC_ROOT}/include e.g.:


${TC_ROOT}/include
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include
/usr/local/include
/usr/include

2.2 Configuration attached debugger

option -ggdb

makefile.lnx64
OPT_CXX_FLAGS = -ggdb

3 Source management
I prefer not install use subversion from BMIDE directly, but from external tool (Tortoise, Eclipse).
It is easier to revert generated changes from outside.

To Create Template without building check in

package just do
4 Change in environment
- same mashine, same dir OK

- same machine other check out dir


change make file

- other machine

change make file

4.1 Add new service


clean project

generate service artifacts

4.2 Modify type


clean project

generate service artifacts

4.3 Change service operation


rename service cxx and hxx file for this service to cxx_orig and hxx_orig

clean project

generate service artifacts

merge service changes from cxx and hxx files into cxx_orig and hxx_orig

remove cxx and hxx files and rename cxx_orig and hxx_orig back to cxx and hxx

You might also like