Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse CDT Linux makefile
Eclipse CDT Linux makefile [message #226199] Sun, 02 November 2008 05:27 Go to next message
Eclipse UserFriend
Hello,

I hope somebody could help me. I have developed a huge C++ research
project consisting of more than one hundred source(.h, .cpp) files with
the necessary folder hierarchies (on Ubuntu 8.04, Eclipse 3.4.1, CDT
5.0.1). The compilation/building process was managed by eclipse. Right
now, I need to move my src files to some other Linux machine(Fedora) and
compile them from command line.

To install programs on linux what we do is using the configure, make, make
install utility. I know that these files/scripts are generated by GNU
autotools. However even though I tried to use autotools I could not be
successful.

I would like to ask;
1) How CDT users move their projects to other systems and make them
executable (Assuming only linux systems and command line tools)
2) Is there any tool that automatically creates a makefile given the src
folder?
3) How can I make eclipse to generate a makefile for my project?
4) How can I integrate autotools to CDT? So that I can use the configure
utility.

I really do appreciate if you could answer my questions, give some links
to check, give some ideas, or lead to somewhere else...

Peace
Engin
Re: Eclipse CDT Linux makefile [message #226216 is a reply to message #226199] Sun, 02 November 2008 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Engin wrote:
> Hello,
>
> I hope somebody could help me. I have developed a huge C++ research
> project consisting of more than one hundred source(.h, .cpp) files with
> the necessary folder hierarchies (on Ubuntu 8.04, Eclipse 3.4.1, CDT
> 5.0.1). The compilation/building process was managed by eclipse. Right
> now, I need to move my src files to some other Linux machine(Fedora) and
> compile them from command line.
>
> To install programs on linux what we do is using the configure, make,
> make install utility. I know that these files/scripts are generated by
> GNU autotools. However even though I tried to use autotools I could not
> be successful.
>
> I would like to ask;
> 1) How CDT users move their projects to other systems and make them
> executable (Assuming only linux systems and command line tools)
To move files, you would either Export them, or use a source code
control system to manage the files.

> 2) Is there any tool that automatically creates a makefile given the src
> folder?
Yes, Eclipse!

> 3) How can I make eclipse to generate a makefile for my project?
If it is a managed make project, it creates it automatically for you.
Look for the Makefile and *.mak files - normally in you Debug or Release
directory. Not you would have to a built your project at least once
before it will create the Makefiles.

> 4) How can I integrate autotools to CDT? So that I can use the configure
> utility.
>
> I really do appreciate if you could answer my questions, give some links
> to check, give some ideas, or lead to somewhere else...
>
> Peace
> Engin
>


--
Derek
Re: Eclipse CDT Linux makefile [message #226233 is a reply to message #226216] Mon, 03 November 2008 05:18 Go to previous messageGo to next message
Eclipse UserFriend
Derek, thank you very much for the reply. However, I just tried to export
my project to file system and run make on the command line. Even though I
changed some source files the make did not compile anything "make:nothing
to be done for ...". I tried the same thing without export that is just
copying the Release and src folders again the same result.

Do you have any idea how I can move my Eclipse CDT project to a different
machine and use command line utilities to compile it?

Engin
Re: Eclipse CDT Linux makefile [message #226246 is a reply to message #226233] Mon, 03 November 2008 06:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Engin wrote:
> Derek, thank you very much for the reply. However, I just tried to
> export my project to file system and run make on the command line. Even
> though I changed some source files the make did not compile anything
> "make:nothing to be done for ...". I tried the same thing without export
> that is just copying the Release and src folders again the same result.
>
> Do you have any idea how I can move my Eclipse CDT project to a
> different machine and use command line utilities to compile it?
>
> Engin
> Within Eclipse, the makefile is only created when you build. So:
1. Make sure you Build in Eclipse first
2. Make sure you have a Debug or Release directory
3. Export to file system, unsureing the Debug/Release directory is
exported too

--
Derek
Re: Eclipse CDT Linux makefile [message #536865 is a reply to message #226199] Mon, 31 May 2010 06:35 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I am having exactly the same problem with Engin, just that I can't seem to find the makefile anywhere under my project folder (yeah, I checked the Debug and release folder as well).

I am fairly sure that my project is set to auto generated makefile (or am I ? Embarrassed ). Any way, did I miss something?

Oh, and my eclipse version is 3.5.1 in Linux.

Thanks in advance,

[Updated on: Mon, 31 May 2010 06:35] by Moderator

Re: Eclipse CDT Linux makefile [message #537116 is a reply to message #536865] Tue, 01 June 2010 07:35 Go to previous message
Eclipse UserFriend
i simply did a new project and added all files in a directory (flightgear). eclipse did all work even as only M$ project files were available.
Google is your friend
Previous Topic:Extending CDT Editor
Next Topic:Unable to build project with jam (or make)
Goto Forum:
  


Current Time: Thu Nov 06 16:59:21 EST 2025

Powered by FUDForum. Page generated in 0.03867 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top