LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2005, 11:34 AM   #1
rup
LQ Newbie
 
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Unhappy using make in Kdevelop


I have transferred a set of cpp sources and headers of a project into Kdevelop. The project had it's own makefile which created two target files (executables). I decided to let Kdevelop create the makefile for the sources and headers of the project. Now, how do I tell kdevelop that there are 2 targets. Since there are two main() functions in these two .cpp files, 'make' is exiting with the error 'multiple definition of main()'.
The old makefile had the 2 targets (say x, y) specified with the line 'all: x y'.How do I do it in Kdevelop?
 
Old 06-19-2005, 04:22 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You define targets in Automake Manager (with standard config - tab on the right). In your case you need to define two, for each executable and add right files to the targets (so there aren't two main()s in one). What this is configured you can use an option to compile current target or the whole project (all targets).
 
Old 06-20-2005, 11:49 AM   #3
rup
LQ Newbie
 
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
I am in trouble. My Kdevelop (2.1) has got it's windows spoilt.They appear as a small mess in the IDE and I can't expand them or put them in the right place. How do I uninstall it? I tried installing 3.1 but running configure I found that Qt libraries were needed. I tried doing it, the dependency check threw up a huge list of stuff. Please suggest another IDE like Kdevelop.
 
Old 06-20-2005, 02:24 PM   #4
rup
LQ Newbie
 
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
I'm using KDevelop 2.1, can't find Automake Manager.Where is it?
 
Old 06-20-2005, 03:32 PM   #5
rup
LQ Newbie
 
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Please ignore the last two posts.

Well, I found where the Automake Manager is (in fact that's the first FAQ at KDevelop).but it seems my KDevelop 2.1 doesn't have it.

I've obtained Kdevelop 3.2 but ./configure gives the following error:-

checking for Qt...configure:error: Qt(>=Qt 3.2) (library qt-mt) not found.Please check your
installation.

So I downloaded qt 3.2.something rpm but the rpm is checking dependencies and then
nothing's happening.How do i install qt to solve my Kdevelop problem?
 
Old 06-20-2005, 04:00 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Qt 3.2 will probably show you a long list of dependencies. Having most up-to-date system helps here (if your profile is correct, RH 9 may not have all the newest packages). Upgrade to Qt 3.2 (and KDE 3.2 or 3.3) is a good idea, but it takes time.

If you have problems with Qt installation, you may consider compiling Qt and KDE from source (instructions on KDE website). It's rather long process (2-3 days, depening on the machine used), but you get a fresh version compiled for your machine (what means: faster). If you have time, do it.

If you don't...well. If I remember correctly in KDevelop 2.1 you have to edit makefiles yourself. With automake/autoconf it may be a hard task. Using the orginal makefiles may be a better solution.
 
  


Reply


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
kdevelop error: no rule to make target.. is it a bug? LinToWinWin Linux - Software 3 07-08-2008 01:07 AM
kdevelop + make/automake climbingmerlin Programming 0 10-07-2005 04:51 AM
No Rule to make file - Kdevelop ashwinipahuja Programming 2 05-20-2004 03:37 AM
Having a problem with Make in KDevelop tcaptain Programming 0 07-09-2003 12:31 PM
How to Make a Makefile for KDevelop 2.0 ??? shassouneh Programming 7 03-15-2002 01:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:48 AM.

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