It's all about the answers!

Ask a question

cpp build in RTC

Vikash Singh (422565) | asked May 29 '15, 8:32 a.m.
edited May 29 '15, 9:30 a.m. by Ralph Schoon (62.7k33643)
How to implement build in RTC for .cpp file and is there any other compiler require for that?
Please share some important link for build in CPP. 

One answer

permanent link
Ralph Schoon (62.7k33643) | answered May 29 '15, 9:29 a.m.
edited May 29 '15, 9:29 a.m.
Please see this blog:

Obviously you need a compiler and a linker for that. I'm not sure if the Eclipse CDT provides a executable compiler like the Eclipse Java ECJ. You can get free GNU compilers from the internet however.

Vikash Singh commented Jun 01 '15, 3:24 a.m.

Hi Ralph,

I go through
We need c++ project and make file. Could you tell me where to kept this project and makefile in repository, In same folder or kept these files separatly. Because I kept the make file and project in same folder and when I request for build then It shows the result as "in Progress" for long time

Ralph Schoon commented Jun 01 '15, 4:12 a.m.

The project would typically be shared into a RTC SCM workspace and delivered into a stream. the makefile would sit in that project. The build would download the data and in the next step it would call the make using a commandline or from ANT or however you decide to do it. I would recommend to look at the sample project on a test server, to see how build is usually set up. Build Artifacts Publishing Using HTTP Servers in Rational Team Concert also has some information around setting up builds.

The help has the basic information too:

Vikash Singh commented Jun 04 '15, 8:49 a.m.

Hi Ralph,

I am following 
and for C++ build for the simple HelloWorld.cpp using makefile. I completed all the steps mention in above blog, When I run the build in commond prompt and request for the build from build engine then the status of console is as below - 

2015-06-04 17:54:06 [Jazz build engine] Running build loop...
2015-06-04 17:54:06 [Jazz build engine] Waiting for request...

It is not moving ahead and In eclipse the status in build windows the status is "Pending".
Is there any specific setting for running the build. I make all the settings as mentioned in the above blog.  Could you please tell me the solution for this problem.

Ralph Schoon commented Jun 04 '15, 12:46 p.m. | edited Jun 04 '15, 12:48 p.m.

Seriously, read the help provided about how build works in

If there is no build definition and no build request, the build engine will do nothing

Vikash Singh commented Jun 12 '15, 2:23 a.m.


I have successfully run C++ build with the above reference. When we create the build in java then after completion of Build  there is option for Download tab and we will able to download java files from Download tab, In C++ there is no option for Download tab. Is it a good practice or something I am missing here? 

Ralph Schoon commented Jun 12 '15, 2:54 a.m.

If you refer to the Downloads tab on the build result, you can use ANT tasks to contribute to the build. See:

However, I would consider not to fill up the database with a lot of binary downloads and rather do this: or something similar.

showing 5 of 6 show 1 more comments

Your answer

Register or to post your answer.