Fedora Linux Support Community & Resources Center
  #1  
Old 11th June 2007, 07:56 PM
rracasanu Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Creating cmake projects with KDevelop

Hello,

I'm sorry if this has been answered before or of this has an obvious answer but I'm new to KDevelop and cmake and could not find any reference to this problem.

I'm using KDevelop 3.5.6 of a Fedora 7 system and I'm trying to create and run the sample "Hello world program". So I started to create the project: Project -> New Project -> C++ -> CMake based projects -> Hello world program. After finishing the wizard, all the files have been generated, but the CMakeLists.txt file in the project's root folder contains only commented out lines and whenever I build the project I get this as output:

gmake[1]: Nothing to be done for `all'.

and the executable or object files are not generated.

Is there something I'm doing wrong or this is a problem related to the installation?

Thanks
Reply With Quote
  #2  
Old 12th June 2007, 07:48 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Chances are the IDE already compiled the code for you. If there have been no updates since then, gmake will tell you there's nothing to be done. This is how (g)make works: It rebuilds a project only if the sources are older then the executables (output) files. Change the sources or `touch' them or delete the executable to see if this is true.

Last edited by giulix; 12th June 2007 at 07:50 PM.
Reply With Quote
  #3  
Old 12th June 2007, 10:10 PM
rracasanu Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Thanks for answering.

Although I'm new to CMake, I have used make a lot of times before so I know how this works. The problem is that there is no object or executable being built.

To me it seems that KDevelop does not add the source files to the make files. For example, the demo project only contains one source file: main.cpp. The only file containing this text is the CMakeLists.txt file in the project's root folder, but this line is commented out like this:

Code:
#dataFile = main.cpp cmakesimple.png CMakeLists.txt
Reply With Quote
  #4  
Old 13th June 2007, 08:28 PM
rracasanu Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
I have managed to figure this one out. In case anybody else has the same problem, they should try upgrading KDevelop to version 3.4.1 as this has solved the problem for me. Even if this version is not available for Fedora through the standard repositories, installing the package for Fedora Code 6 from the KDevelop site seems to work.
Now, the CMakeLists.txt file is correctly generated and the project builds properly.
Reply With Quote
Reply

Tags
cmake, creating, kdevelop, projects

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cmake + IL + allegro linking problem rhiakath Using Fedora 0 11th July 2009 09:11 PM
cmake and mingw32 dulsi Programming & Packaging 0 6th July 2009 02:20 AM
CMake will not be able to correctly generate this project. gregma Using Fedora 3 4th January 2008 06:20 PM
how to get involved in projects pkpanda Using Fedora 9 6th April 2006 09:55 PM
CMake Complitric Using Fedora 2 30th August 2005 03:04 AM


Current GMT-time: 02:44 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat