Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Importing existing projects from web that uses standard makefile (Linux Kernel for example)
Importing existing projects from web that uses standard makefile (Linux Kernel for example) [message #154062] Wed, 14 September 2005 20:03 Go to next message
Eclipse UserFriend
Originally posted by: lamikr.cc.jyu.fi

Hi

I am now working with the Linux kernel and have really started to
appreciate the Eclipse editor over gedit or VI :-)

But I think I have failed to harness the full power of Eclipse as I am
still building everything from command line and using eclipse just as a
editor having well handy source tree view and editor with syntax
higlighting.

The reason for this is that I have not figured out a way how I could
import the Kernel I have extracted from the tar-bal to Eclipse as a
standard C project. Is there any method for this?

Currently I have done things in a following way.

1) I have extracted kernel sources I have downloaded from kernel.org to
Eclipse workspace
2) I have created "Simple" project with a same name than linux kernel
dir. I have tried to Import the kernel as a Standard C Makefile project
but eclipse has refused to load it as a project. (I have not tried to
make standard C project with same name because I am afraid that Eclipse
could overwrite the existing Makefile)
3) So as I have now created the project just as a Simple project I can
open C sources just fine but I do not have compiler options...

Mika
Re: Importing existing projects from web that uses standard makefile (Linux Kernel for example) [message #154385 is a reply to message #154062] Thu, 15 September 2005 18:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas.stephens.gmail.com

Hi,
Most of the projects I've worked on I've started from scratch or
inherited from in-house but I've never really used the Managed Make
functionality of Eclipse and have always used the Standard Make system
due to the build software we use. However, this is basically the same
as getting the source from the web and installing it. Anyway, here is
what I do and I believe it should work for you.

1) Download and install the source code
2) You may need to run the configure script from the command line to
actually create the make files. I've never done this but it seems that
you would need to
3) Create a new C Standard Make project in Eclipse
3a) You should be able to give it any name you like. It doesn't need to
be the name of the directory.
3b) Uncheck the 'Use Defaults' button in the Project contents section
and set the directory to the installation directory of the code.
3c) Click the 'Next' button and fill in the information you want in each
of the tabs.
3d) Click the 'Finish' button.

At this point you should be good to go. If you then right click on the
project name and select 'Build Project' it should take off and execute a
make command and build the software.

Hope that helps.

- Tom



lamikr wrote:
> Hi
>
> I am now working with the Linux kernel and have really started to
> appreciate the Eclipse editor over gedit or VI :-)
>
> But I think I have failed to harness the full power of Eclipse as I am
> still building everything from command line and using eclipse just as a
> editor having well handy source tree view and editor with syntax
> higlighting.
>
> The reason for this is that I have not figured out a way how I could
> import the Kernel I have extracted from the tar-bal to Eclipse as a
> standard C project. Is there any method for this?
>
> Currently I have done things in a following way.
>
> 1) I have extracted kernel sources I have downloaded from kernel.org to
> Eclipse workspace
> 2) I have created "Simple" project with a same name than linux kernel
> dir. I have tried to Import the kernel as a Standard C Makefile project
> but eclipse has refused to load it as a project. (I have not tried to
> make standard C project with same name because I am afraid that Eclipse
> could overwrite the existing Makefile)
> 3) So as I have now created the project just as a Simple project I can
> open C sources just fine but I do not have compiler options...
>
> Mika
Re: Importing existing projects from web that uses standard makefile (Linux Kernel for example) [message #154488 is a reply to message #154385] Fri, 16 September 2005 00:27 Go to previous message
Eclipse UserFriend
Originally posted by: lamikr.cc.jyu.fi

Yes, that seems to be good method.
Another one I found was to checkout code from the Subversion repository
by using Subclipse plug-in.

I for example know one repository having kernel code and checked it out
from there in a following way.

1) Opened SVN repository tree and selected the root folder of Kernel
project (or any other C project)
2) Right mouse clicked and selected "Create As..."
3) New Project Wizard appeared and I selected "Standard C project"
4) Filtered project name, etc...

The project with kernel opened just nicely as a C project but now CDT
has really slowed down for many hours when it is running somekind of
"C/C++ indexor". In 5 hours it has managed to index 16% of kernel with
my 1.8 ghz AMD athlon. Wondering can I somehow stop the indexing, I have
already put of the automatic build option.

Mika

Thomas Stephens wrote:
> Hi,
> Most of the projects I've worked on I've started from scratch or
> inherited from in-house but I've never really used the Managed Make
> functionality of Eclipse and have always used the Standard Make system
> due to the build software we use. However, this is basically the same
> as getting the source from the web and installing it. Anyway, here is
> what I do and I believe it should work for you.
>
> 1) Download and install the source code
> 2) You may need to run the configure script from the command line to
> actually create the make files. I've never done this but it seems that
> you would need to
> 3) Create a new C Standard Make project in Eclipse
> 3a) You should be able to give it any name you like. It doesn't need to
> be the name of the directory.
> 3b) Uncheck the 'Use Defaults' button in the Project contents section
> and set the directory to the installation directory of the code.
> 3c) Click the 'Next' button and fill in the information you want in each
> of the tabs.
> 3d) Click the 'Finish' button.
>
> At this point you should be good to go. If you then right click on the
> project name and select 'Build Project' it should take off and execute a
> make command and build the software.
>
> Hope that helps.
>
> - Tom
>
>
>
> lamikr wrote:
>
>> Hi
>>
>> I am now working with the Linux kernel and have really started to
>> appreciate the Eclipse editor over gedit or VI :-)
>>
>> But I think I have failed to harness the full power of Eclipse as I am
>> still building everything from command line and using eclipse just as
>> a editor having well handy source tree view and editor with syntax
>> higlighting.
>>
>> The reason for this is that I have not figured out a way how I could
>> import the Kernel I have extracted from the tar-bal to Eclipse as a
>> standard C project. Is there any method for this?
>>
>> Currently I have done things in a following way.
>>
>> 1) I have extracted kernel sources I have downloaded from kernel.org
>> to Eclipse workspace
>> 2) I have created "Simple" project with a same name than linux kernel
>> dir. I have tried to Import the kernel as a Standard C Makefile
>> project but eclipse has refused to load it as a project. (I have not
>> tried to make standard C project with same name because I am afraid
>> that Eclipse could overwrite the existing Makefile)
>> 3) So as I have now created the project just as a Simple project I can
>> open C sources just fine but I do not have compiler options...
>>
>> Mika
Previous Topic:Excluding source directories from managed builds
Next Topic:Crosscompiling kernel with CDT
Goto Forum:
  


Current Time: Wed Jul 17 14:53:26 GMT 2024

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

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

Back to the top