Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Getting started compiling an aerospace application with CDT on Linux
Getting started compiling an aerospace application with CDT on Linux [message #168974] Sun, 30 April 2006 17:08 Go to next message
Eclipse UserFriend
Originally posted by: gnss_engr.yahoo.com

Hello,

I can seem to be able to compile under CDT an existing C/C++ aerospace
engineering program currently running under Linux. I have read the
tutorials and have a basic understanding of IDE's in general.

I am totally new at Eclipse/CDT and not too exprienced with Linux. I have
used other IDE's such as MS Visual C++.

This aerospace program has been ported to Linux recently and builds/runs
fine under Linux SuSE 10.1. I simply type make to build it and run the
executable. It would be nice to be able to work on this application under
Eclipse.

I installed the Eclipse SDK version 3.1.2 linux-gtk (latest) as well as
the eclipse.cdt-3.0.2 (also the latest). Installation went fine.

To build the program, I tried different ways using the "Managed Make C++",
the "Standard Make C++" as well as the "Convert to C/C++ Make Project" but
all three ways failed. Trying "Convert to C/C++ Make Project" results in
"Error creating Project, Reason: Internal Error." I tried each way a
couple of times cleaning everthing out and re-trying.

This application has two levels of make files. The main makefile changes
to each sub-directories and runs the makefiles that are there.

Using the "Managed Make C++", I create an empty project and place all my
source files under the Workspace. There are 3 sub-directories under this
workspace each with more source files. When I try to build, I get many:
"C/C++ Indexer Problem: Preprocessor Inclusion not found: xxxx.h in file:
/xxx/xxxx/xxx.h"

Basically it can't find any of my include files even though the
directories are clearly added to the project. CDT also can't see the
"all" and "clean" makefile targets.

When using the "Standard Make C++" method, I get the same problem. It
can't find any of my include files.

I would appreciate some inital guidance by some of the more patient among
you. If necessary, I don't mind calling to work this out over the phone.

With best regards,

Frank
Anaheim, California.
Re: Getting started compiling an aerospace application with CDT on Linux [message #168989 is a reply to message #168974] Mon, 01 May 2006 10:30 Go to previous message
Eclipse UserFriend
Originally posted by: thomas.stephens.gmail.com

Hi,
If you have existing makefiles that work then you want to use a
Standard C/C++ project. This is what I do on my projects as we use a
non-standard build system. All you should need to do is create the
project in the root directory of your source tree where the main make
file is. I've never needed to do anything more that that as our make
files point to the proper directories where the include files are.
However, if it still isn't finding the header files by itself, you can
give it specific places to look.
To do this select the Project menu and click on the Properties option
for the project you created. In the left pane of the window select the
"C/C++ Include Path & Symbols" entry. Here you can enter specific paths
to be included.

- Tom

Frank Choq wrote:
> Hello,
>
> I can seem to be able to compile under CDT an existing C/C++ aerospace
> engineering program currently running under Linux. I have read the
> tutorials and have a basic understanding of IDE's in general.
>
> I am totally new at Eclipse/CDT and not too exprienced with Linux. I
> have used other IDE's such as MS Visual C++.
>
> This aerospace program has been ported to Linux recently and builds/runs
> fine under Linux SuSE 10.1. I simply type make to build it and run the
> executable. It would be nice to be able to work on this application
> under Eclipse.
>
> I installed the Eclipse SDK version 3.1.2 linux-gtk (latest) as well as
> the eclipse.cdt-3.0.2 (also the latest). Installation went fine.
>
> To build the program, I tried different ways using the "Managed Make
> C++", the "Standard Make C++" as well as the "Convert to C/C++ Make
> Project" but all three ways failed. Trying "Convert to C/C++ Make
> Project" results in "Error creating Project, Reason: Internal Error." I
> tried each way a couple of times cleaning everthing out and re-trying.
>
> This application has two levels of make files. The main makefile
> changes to each sub-directories and runs the makefiles that are there.
>
> Using the "Managed Make C++", I create an empty project and place all my
> source files under the Workspace. There are 3 sub-directories under
> this workspace each with more source files. When I try to build, I get
> many: "C/C++ Indexer Problem: Preprocessor Inclusion not found: xxxx.h
> in file: /xxx/xxxx/xxx.h"
>
> Basically it can't find any of my include files even though the
> directories are clearly added to the project. CDT also can't see the
> "all" and "clean" makefile targets.
>
> When using the "Standard Make C++" method, I get the same problem. It
> can't find any of my include files.
>
> I would appreciate some inital guidance by some of the more patient
> among you. If necessary, I don't mind calling to work this out over the
> phone.
>
> With best regards,
>
> Frank
> Anaheim, California.
>
Previous Topic:How to visit a IASTTranslationUnit?
Next Topic:building CDT for linux on AMD
Goto Forum:
  


Current Time: Fri Jul 18 06:07:05 EDT 2025

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

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

Back to the top