It's all about the answers!

Ask a question

cpp build in RTC


Vikash Singh (422665) | asked May 29 '15, 8:32 a.m.
edited May 29 '15, 9:30 a.m. by Ralph Schoon (63.1k33645)
Hi
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 (63.1k33645) | answered May 29 '15, 9:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited May 29 '15, 9:29 a.m.
Please see this blog: https://jazz.net/blog/index.php/2011/08/24/cc-development-on-rational-team-concert/

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.

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

Hi Ralph,

I go through https://jazz.net/wiki/bin/view/Main/CppBuild
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.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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: http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.2/com.ibm.team.build.doc/topics/t_build_overview.html?cp=SSCP65_5.0.2


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

Hi Ralph,

I am following http://blog.boriskuschel.com/2011/07/oslc-development-using-cc-on-jazz-part.html 
and 
http://blog.boriskuschel.com/2011/08/automated-builds-using-cc-and-rational.html 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.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Seriously, read the help provided about how build works in http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.2/com.ibm.team.build.doc/topics/t_build_overview.html?cp=SSCP65_5.0.2

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.

Hi,

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.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

If you refer to the Downloads tab on the build result, you can use ANT tasks to contribute to the build. See: http://www-01.ibm.com/support/knowledgecenter/SSCP65_5.0.2/com.ibm.team.build.doc/topics/r_ant-tasks.html?cp=SSCP65_5.0.2

However, I would consider not to fill up the database with a lot of binary downloads and rather do this: https://jazz.net/library/article/797 or something similar.

showing 5 of 6 show 1 more comments

Your answer


Register or to post your answer.