Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Integrating KDevelop w/ gcc and g++

  1. #1
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Integrating KDevelop w/ gcc and g++

    I recently installed KDevelop because I saw a number of recommendations for it as far as an IDE goes. However, after installing, I realized that there is no clear way to compile the programs (C++). Is there a way to integrate gcc and g++ into the IDE so that I can run it all from KDevelop, and don't have to use the terminal?

    Thanks in advance

  2. #2
    Join Date
    Mar 2007
    Beans
    29

    Re: Integrating KDevelop w/ gcc and g++

    I'm also looking for an answer to this problem, possibly I have automake and auto configure installed wrong but I can't seem to be able to compile and run any programs using any IDE in Ubuntu.

    I wrote a simple hello world program using KDevelop but I can't work out how to compile 0_o

  3. #3
    Join Date
    Jan 2006
    Location
    Serbia
    Beans
    39
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: Integrating KDevelop w/ gcc and g++

    Have you installed build-essential package before deploying KDevelop? Similiar situation happened to me a year ago and I fixed it by installing this package. It doesn't matter if KDevelop is already installed, as long as you have build-essential package installed, it should work... Also, look if you have all KDE and Qt related development packages and libraries installed on your system, that caused me lots of problems and frustrations in the past, too... Good luck.

  4. #4
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Integrating KDevelop w/ gcc and g++

    I have build-essential installed already, so that's not it unfortunately.

    As for the KDE and QT development packages, which ones should I install? There seem to be a lot of choices, so should I just go ahead and install them all (e.g. qt4-dev-tools, qt3-dev-tools, kde-devel, kde-devel-extras, etc. etc)

    Thanks

  5. #5
    Join Date
    Mar 2007
    Beans
    29

    Re: Integrating KDevelop w/ gcc and g++

    I've also installed build-essentials so its not that.
    This is really annoying me, I don't want to have to dual boot just to write some c programs for uni.

  6. #6
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Integrating KDevelop w/ gcc and g++

    To cold_fu5ion:

    There's no need to dual boot, even though we can't get the IDE to compile, you can still use gcc or g++ (I think one works in some situations, and the other works in others) to compile your .c file. It's temporary, but at least it prevents you from the major hassle of dual booting when it's not necessary.

    g++ myprogram.c --> creates an a.out file which you can execute (you can also name it something else w/ the -o option)

  7. #7
    Join Date
    Apr 2005
    Location
    Hampshire, UK
    Beans
    1,274

    Re: Integrating KDevelop w/ gcc and g++

    Quote Originally Posted by se2131 View Post
    I recently installed KDevelop because I saw a number of recommendations for it as far as an IDE goes. However, after installing, I realized that there is no clear way to compile the programs (C++). Is there a way to integrate gcc and g++ into the IDE so that I can run it all from KDevelop, and don't have to use the terminal?
    Of course - otherwise, it wouldn't be an IDE

    What version of KDevelop do you have, what have you tried so far, and what problems are you having?

  8. #8
    Join Date
    Mar 2007
    Beans
    29

    Re: Integrating KDevelop w/ gcc and g++

    Thanks for the terminal commands
    Im using KDev version 3.5.5. I just can't work out how to compile, I read a guide that said ............. "From the build menu; choose ‘Run automake and friends’. After this is successfull; run ‘Build->Run Configure’. Now your project is ready to ‘Build’. Choose ‘Build->Build Project’ and then you can execute it by doing ‘Build->Execute Program’. Congrats! You have just built your first KDE application."

    When I click on build the only thing is a greyed out stop button, there just is nothing else in that menu.

  9. #9
    Join Date
    Apr 2005
    Location
    Hampshire, UK
    Beans
    1,274

    Re: Integrating KDevelop w/ gcc and g++

    Quote Originally Posted by cold_fu5ion View Post
    Thanks for the terminal commands
    Im using KDev version 3.5.5. I just can't work out how to compile, I read a guide that said ............. "From the build menu; choose ‘Run automake and friends’. After this is successfull; run ‘Build->Run Configure’. Now your project is ready to ‘Build’. Choose ‘Build->Build Project’ and then you can execute it by doing ‘Build->Execute Program’. Congrats! You have just built your first KDE application."

    When I click on build the only thing is a greyed out stop button, there just is nothing else in that menu.
    I'm pretty sure 3.4.0 is the latest stable release of kdevelop

    What version of (K)Ubuntu are you using? I'll see if I can try this out in a blank VM when I get home tonight. I seem to recall that the "Automake and Friends" always ends with an error or a warning on a stock (K)Ubuntu install, which is why the build cycle is failing, but can't recall offhand what the fix was.

  10. #10
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Integrating KDevelop w/ gcc and g++

    I'm using KDevelop version 3.3.4, w/ KDE version 3.5.5. I just installed it a few days ago, so I think that it's the latest version (I think cold_fu5ion was referring to his KDE version). I'm running this on Ubuntu 6.10

    I also only have the greyed out "Stop" item under the Build menu.


    Thanks for looking into this, hopefully we can get this to work
    Last edited by se2131; April 5th, 2007 at 12:35 AM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •