Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to create a CDT project inside an existing JDT project?
How to create a CDT project inside an existing JDT project? [message #167845] Tue, 11 April 2006 09:48 Go to next message
Eclipse UserFriend
Originally posted by: koloska.voiceinterconnect.de

Hello,

I have a Java project that uses JNI and is organised like this

workspace/
project/
source/ Java Sources
test/ Java Unittests
classes/
jni-src/
Makefile
module1/
module2/

The native modules are built outside of eclipse.

How can I make a CDT project that uses my Makefile? Is there a way to use
this directory structure or do I have to restructure? The reasons for
having one directory tree are:

- it is all be managed in one CVS module
- giving this to anyone away from our CVS is simply a matter of packaging
the whole dir

What can I do?

Thank you
Uwe Koloska
Re: How to create a CDT project inside an existing JDT project? [message #167853 is a reply to message #167845] Tue, 11 April 2006 15:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dschaefer.qnx.com

What I've done in the past is use the Convert to C/C++ Make Project
wizard, which appears in the New Project Wizards list. This will make it
both a Java and C/C++ project.

The problem you run into then is that if you have Build Automatically
turned on, it'll run make every time you save a Java file :(. So I turn
of build automatically and have to remember to hit the build button to
compile my Java sources.

Good news is that someone at Intel is looking at making the JDT and CDT
work together better for these kinds of projects. But this won't be
avaliable for a while.

Cheers,
Doug

Uwe Koloska wrote:
> Hello,
>
> I have a Java project that uses JNI and is organised like this
>
> workspace/
> project/
> source/ Java Sources
> test/ Java Unittests
> classes/
> jni-src/
> Makefile
> module1/
> module2/
>
> The native modules are built outside of eclipse.
>
> How can I make a CDT project that uses my Makefile? Is there a way to use
> this directory structure or do I have to restructure? The reasons for
> having one directory tree are:
>
> - it is all be managed in one CVS module
> - giving this to anyone away from our CVS is simply a matter of packaging
> the whole dir
>
> What can I do?
>
> Thank you
> Uwe Koloska
Re: How to create a CDT project inside an existing JDT project? [message #167925 is a reply to message #167853] Wed, 12 April 2006 05:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: koloska.voiceinterconnect.de

Hello,

thanks for your answer.

Doug Schaefer wrote:

> What I've done in the past is use the Convert to C/C++ Make Project
> wizard, which appears in the New Project Wizards list. This will make it
> both a Java and C/C++ project.

But with this wizard I can't select the main makefile of the C part of the
project because it is not in the main directory. Or is there some hidden
(or overlooked) setting?

Uwe
Re: How to create a CDT project inside an existing JDT project? [message #167983 is a reply to message #167845] Wed, 12 April 2006 15:21 Go to previous message
Eclipse UserFriend
Originally posted by: jancewicz.comcast.net

What I did was to create a Java project for the Java code and a separate
C/C++ project for the native C code. When you create the C/C++ project, you
can specify the existing makefile. Just make sure the root directory of your
project contains all of the subdirecories containing the files in your
project. This link has a section called, "Eclipse C Project Creation and
Setup", that gives a brief step-by-step procedure for doing this:
http://www.kineteksystems.com/white-papers/mixedjavaandc.htm l

Hope it helps,
Nick Jancewicz

"Uwe Koloska" <koloska@voiceinterconnect.de> wrote in message
news:e1gc3l$of5$1@utils.eclipse.org...
> Hello,
>
> I have a Java project that uses JNI and is organised like this
>
> workspace/
> project/
> source/ Java Sources
> test/ Java Unittests
> classes/
> jni-src/
> Makefile
> module1/
> module2/
>
> The native modules are built outside of eclipse.
>
> How can I make a CDT project that uses my Makefile? Is there a way to use
> this directory structure or do I have to restructure? The reasons for
> having one directory tree are:
>
> - it is all be managed in one CVS module
> - giving this to anyone away from our CVS is simply a matter of packaging
> the whole dir
>
> What can I do?
>
> Thank you
> Uwe Koloska
Previous Topic:Can't turn off C/C++ indexer
Next Topic:CDT, DBG: debug C++ dll with VB60 executable
Goto Forum:
  


Current Time: Tue May 13 06:04:19 EDT 2025

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

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

Back to the top