Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-10-2004, 07:31 AM   #1
Registered: Dec 2004
Posts: 57

Rep: Reputation: 15
Build 'n Debug a C/C++ KDevlop cmd prompt project

I have had a fair amount of programming experience in the Linux cmd prompt environment but would like to use Kdevelop (either 2.1 or 3.1, using 2.1 now that shipped with SuSE 8.2).

ALL of my IDE programming experience is in MS visual Studio, however my several day through Kdevelope have been a bit aggravating.

To begin I am building a C++ cmd prompt ONLY app that is using an existing API, i.e. I have all the libraries (.so) and headers that define my API and middleware. Additionally I already have an existing Makefile.

My problem was encountered when initially creating my project, initially choosing a C/C++ cmd prompt app. Then this complex makefile, doc, template framework was slammed on me in a directory that did not even exist at my API release local location.

previous posts mention something about a ./configure, which after initial investigation did help much. I suppose my makefile is too simple or may not be compatible with Kdevelope (the makefile(s) that this software creates read like Latin and I DO NOT need half the crap it creates or wants me to create.

Now a custom app creation got me further after adding files and stuff, but again this thing bothers me and seems to appear or want to appear in every directory I have. I found that if I edit the project file to specify what I want helps, but some parts I am unaware on how to change or what to add. From here I was at least able to use my makefile and build, but was not able to set break points to debug and step through.

Could someone provide a good known tutorial on CUSTOM and C++ cmd prompt only projects. The ones available across the web always use a GUI project as the example and is of little use to me.

Perhaps I need to follow the same instructions from these tutorials and live with all the added mess or maybe this is the only way to use this software. Hopefully not.

Hell if someone could even provide a short procedure and or description of the bare minimum needed to get me started on just a main build and debug, this would be great. I'll figure out the rest.
Old 12-10-2004, 09:19 AM   #2
Registered: Nov 2004
Location: UK
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
Sounds like you don't really need Kdevelop for what you are trying to do.
You can just use any text edit to modify the code e.g. gvim.
As you already have a makefile you should be able to open a terminal, change to the directory of your source code (and makefile) and run make.

As for tutorials these might help :


Old 12-10-2004, 10:07 AM   #3
Registered: Dec 2004
Posts: 57

Original Poster
Rep: Reputation: 15
Yes in terms of editting no I do not need Kdevelop but for debugging, an IDE enviroment is sort of a crutch of mine. ie, address and pointer values display and data structure viewing, not to mention step through code ability.

Addtionally when your working with a LARGE API its nice to have a graphical tree like view of your members and functions for easy reference


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
stuck in unix cmd prompt ddajango Linux - Newbie 3 10-11-2005 02:24 AM
Can I compile / build GnomeBasic project. Burgos Programming 1 04-20-2005 08:19 AM
KDevlop error compfreak221 Linux - Software 0 10-09-2004 02:07 PM
debug build of glibc flok Slackware 2 07-13-2004 11:17 AM
free quote @ cmd prompt rickenbacherus Linux - General 7 03-06-2003 11:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration