required KDevelop 4 packages for C++ programming

Asked by EricWang

Could you tell me how many packages I should install, therefore KDevelop 4 can build a C++ program ? I clicked 'Build' button, but there was no activities appeared in 'Build Window'. Should I add any Environment Variable in addition to Environment Group set as 'Default' in 'Configure KDevelop' ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu kdevelop Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Przemek K. (azrael) said :
#1

Do you have build-essential installed? (all compilers metapackage)
As far as I remember, Kdevelop will require this to be installed.

Revision history for this message
madmed (medbelh) said :
#2

I tested it in kubuntu and it works without any additional packages. (Installation guide http://www.kubuntu.org/news/kdevelop-beta-9)
You can also try installing g++ if it is not installed.

Revision history for this message
EricWang (ewang) said :
#3

Hi,
  Thanks for your quick response. Yes, build-essential was installed. I found the problem was lack of Cmake since I created the project using project template "Simple Cmake-based C++ application". Currently my simple program can be built and run, however there is a little bit strange in debugging. The followings are source of my program,

#include <iostream>
#include <stdio.h>

Int main(int argc, char **argv) {
 printf("Hello\n");
 std::cout << "Hello, world!" << std::endl;
 return 0;
}

  I set break points at both statements printf and std:cout. After I clicked "Debug" button on toolbar, the program execution stopped at once with lightbar and arrow stayed at right bracket (The one indicating end of main() function body). At this moment, there is no output in Debug window. I clicked 'Continue' button, lightbar and arrow stayed at same place and Debug window has following output,

Hello
Hello, world!

  I clicked 'Continue' button again, then my program terminated. So it seems there are two problems here,

  1. The lightbar and arrow to indicate next execution statement can not position themselves at right location.
  2. The second break point doesn't have effect.

  Do you have any idea what went wrong ?

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Przemys?aw Kulczycki
Sent: Wednesday, April 28, 2010 9:16 PM
To: Wang Eric-TGI0360
Subject: Re: [Question #108635]: required KDevelop 4 packages for C++programming

Your question #108635 on kdevelop in ubuntu changed:
https://answers.edge.launchpad.net/ubuntu/+source/kdevelop/+question/108635

    Status: Open => Answered

Przemysław Kulczycki proposed the following answer:
Do you have build-essential installed? (all compilers metapackage) As far as I remember, Kdevelop will require this to be installed.

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.edge.launchpad.net/ubuntu/+source/kdevelop/+question/108635/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.edge.launchpad.net/ubuntu/+source/kdevelop/+question/108635

You received this question notification because you are a direct subscriber of the question.

Revision history for this message
madmed (medbelh) said :
#4

the final release of kdevelop 4 was released yesterday you may check it out maybe this they fixed it.
http://www.kubuntu.org/news/kdevelop-4

Can you help with this problem?

Provide an answer of your own, or ask EricWang for more information if necessary.

To post a message you must log in.