Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Building existing sources with Eclipse CDT
Building existing sources with Eclipse CDT [message #140614] Mon, 14 March 2005 00:04 Go to next message
Eclipse UserFriend
Originally posted by: cf_1957.hotmail.com

I'm trying to use eclipse CDT to build an existing project code. The code is
typical of GPL stuff, a gzip tarball that is extracted to a directory,
contains src, include, example etc directories. From a console or xterm
window I can run ./configure, make, and make install. All this works fine on
Cygwin with gcc compiler etc.

What I was hoping was that I could use Eclipse to do further work on the
source but just somehow importing the directory structure and using the
existing makefile (perhaps with slight modifications). I have scoured the
help, tutorials, and newgroup, but have still not managed to grasp how to do
this. It seems like the managed project idea is the way but I still don't
get it.

From Cygwin I can run eclipse with no problem. If I then start a new managed
project, import the folder structure into the workspace and modify makefile
references to point to the new source tree location in the workspace
directory I still get do not get a successful build. Typically I jujst see
an error like "no rule to make target all"

Can anyone explain what are the basic steps I need to take to get this type
of project building?

tia

Chris
Re: Building existing sources with Eclipse CDT [message #140653 is a reply to message #140614] Mon, 14 March 2005 12:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tstephen.milkyway.gsfc.nasa.gov

Hi,
Actually what you want to do is use a Standard Make project instead of
a Managed Make project. Here's what you should do:

1) unpack the tarball
2) run configure to make the initial set of makefiles
3) Start up eclipse
4) Create a new Standard Make project with the project directory
pointing the top directory of the source install is.

At that point you should be able to select 'Build Project' and the
system will fire off and build. 'Clean' and 'Rebuild Project' should
also work. Additionally, if you want other targets you can add them in
the 'Make Targets' view under the directory in your source tree you want
the command to execute. For example to add an 'install' target in the
top directory, right click on the project name in the 'Make Targets'
view and select 'Add Make Target'. Fill in 'install' in the two files
and you have a new target. Double clicking on that target would then
execute a the 'make install' command.

Hope that helps.

- Tom

crap wrote:
> I'm trying to use eclipse CDT to build an existing project code. The code is
> typical of GPL stuff, a gzip tarball that is extracted to a directory,
> contains src, include, example etc directories. From a console or xterm
> window I can run ./configure, make, and make install. All this works fine on
> Cygwin with gcc compiler etc.
>
> What I was hoping was that I could use Eclipse to do further work on the
> source but just somehow importing the directory structure and using the
> existing makefile (perhaps with slight modifications). I have scoured the
> help, tutorials, and newgroup, but have still not managed to grasp how to do
> this. It seems like the managed project idea is the way but I still don't
> get it.
>
> From Cygwin I can run eclipse with no problem. If I then start a new managed
> project, import the folder structure into the workspace and modify makefile
> references to point to the new source tree location in the workspace
> directory I still get do not get a successful build. Typically I jujst see
> an error like "no rule to make target all"
>
> Can anyone explain what are the basic steps I need to take to get this type
> of project building?
>
> tia
>
> Chris
>
>
Re: Building existing sources with Eclipse CDT [message #140711 is a reply to message #140653] Tue, 15 March 2005 02:20 Go to previous message
Eclipse UserFriend
Originally posted by: cf_1957.hotmail.com

Thanks. That cleared up the confusion.

I also suibsequently found that the CDT case study helped me cement the
ideas.


"Thomas Stephens" <tstephen@milkyway.gsfc.nasa.gov> wrote in message
news:d14gj2$sku$1@www.eclipse.org...
> Hi,
> Actually what you want to do is use a Standard Make project instead of
> a Managed Make project. Here's what you should do:
>
> 1) unpack the tarball
> 2) run configure to make the initial set of makefiles
> 3) Start up eclipse
> 4) Create a new Standard Make project with the project directory
> pointing the top directory of the source install is.
>
> At that point you should be able to select 'Build Project' and the
> system will fire off and build. 'Clean' and 'Rebuild Project' should
> also work. Additionally, if you want other targets you can add them in
> the 'Make Targets' view under the directory in your source tree you want
> the command to execute. For example to add an 'install' target in the
> top directory, right click on the project name in the 'Make Targets'
> view and select 'Add Make Target'. Fill in 'install' in the two files
> and you have a new target. Double clicking on that target would then
> execute a the 'make install' command.
>
> Hope that helps.
>
> - Tom
>
> crap wrote:
> > I'm trying to use eclipse CDT to build an existing project code. The
code is
> > typical of GPL stuff, a gzip tarball that is extracted to a directory,
> > contains src, include, example etc directories. From a console or xterm
> > window I can run ./configure, make, and make install. All this works
fine on
> > Cygwin with gcc compiler etc.
> >
> > What I was hoping was that I could use Eclipse to do further work on the
> > source but just somehow importing the directory structure and using the
> > existing makefile (perhaps with slight modifications). I have scoured
the
> > help, tutorials, and newgroup, but have still not managed to grasp how
to do
> > this. It seems like the managed project idea is the way but I still
don't
> > get it.
> >
> > From Cygwin I can run eclipse with no problem. If I then start a new
managed
> > project, import the folder structure into the workspace and modify
makefile
> > references to point to the new source tree location in the workspace
> > directory I still get do not get a successful build. Typically I jujst
see
> > an error like "no rule to make target all"
> >
> > Can anyone explain what are the basic steps I need to take to get this
type
> > of project building?
> >
> > tia
> >
> > Chris
> >
> >
Previous Topic:Requesting New feature, (showing control characters)
Next Topic:?? c-dll in calling from JAVA
Goto Forum:
  


Current Time: Thu Jul 24 14:06:31 EDT 2025

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

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

Back to the top