Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Re: Using eclipse with an already existing project

Thanks Chris, for your response, and for clarifying that I registered to the wrong list.
The projects are make based, but the makefile is constructed and maintained outside of eclpise.
I will post my message in the newsgroup, and hope I can get some help there.

 
On 2/25/08, Chris Recoskie <recoskie@xxxxxxxxxx> wrote:
Hi Ron,

User questions like this are probably best asked on the newsgroup.  This
mailing list is for people working on the CDT.

I don't know which version of CDT you are using, but it sounds like the
reason that your files are not indexed is that CDT knows nothing about your
build process, and so thinks that none of your files are built, and hence
are not relevant.  In the project properties you should turn on the option
to index all files, and then in theory indexing should work.  You may have
to do some manual configuration though in order to setup the include paths
and preprocessor #defines for the parser if you are not going to use make
based builds.  YMMV.

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt




            "Ron B"
            <ronbbnd@xxxxxxxx
            m>                                                         To
            Sent by:                  cdt-dev@xxxxxxxxxxx
            cdt-dev-bounces@e                                          cc
            clipse.org
                                                                  Subject
                                      [cdt-dev] Re: Using eclipse with an
            02/25/2008 03:27          already existing project
            AM


            Please respond to
              "CDT General
            developers list."
            <cdt-dev@eclipse.
                  org>






I managed to work around the build and qmake problems using  ANT build. (if
there's another, elegant way I would love to hear so).

However, I still cannot get my files indexed. Namely, I get messages of
type "Could not find symbol SomeSymbol in index".
Can someone please help me in doing it?
I understand that Eclipse has the ability of generating the index according
to the build results.

I built the application with the ANT builder. The build output was shown in
the Eclipse console, but I did not get any indexing done.

My build.xml file looks like this:

<?xml version="1.0"?>
<project name="MyAppBuild" default="make">
     <description>
         Ant adaptor for Makefile - first try - RM, February 2008.
     </description>

     <target name="make" description="build MyApp">
         <exec executable="make">
         </exec>
     </target>

     <target name="qmake" description="qmake from start and make clean">
             <exec executable="/home/myPath/reQmake.sh">
             </exec>
         </target>

     <target name="clean" description="clean build">
         <exec executable="make">
             <arg value="clean"/>
         </exec>
     </target>
</project>



On Sun, Feb 24, 2008 at 9:23 PM, Ron B <ronbbnd@xxxxxxxxx> wrote:
Hi List,

I have recently joined a (linux) project, which has a complete directory
structure, and makefiles.
My objective is to work on the current project tree, as will be somewhat
detailed below, from within the eclipse.
For this, I opened a new project, using the root directory of my project
tree.

The project has currently been developed with other Linux tools such as
vi and emacs, and is roughly consisted of this directory structure:
1. $APP/   -  This directory contains most of the components of the
system. Each component has its own makefile in its build list, however,
the entire application's
makefile is given in another directory - $INF
2.  $INF/ - the directory contains the makefile and a lot of other
makefiles (all are created by using qmake). It is a pretty complicated
build.

In the existing environment I have no problem of editing files, building
components, and building the entire application.

However, when I tried to create an eclipse project, things got really
complicated for me.
At the moment, all I could do is to create a new project with the $APP
folder, as I described above.

However, I had the following problems:
1. I could not use the makefile in the $INF directory. I would like to be
able to use this makefile, and have Eclipse somehow recongize
the include paths (i.e. -I )- so that the indexer could recognize header
files which are included in the  <someFile.hxx> form.

2. Code browsing - Having the ability to open every include file, or
every definition with a single F3 click
This is a clarification for the problem listed in one. If there is some
sort of work around, that does not include a sisyphean copy-paste work,
I would like to know how I can do it.

3. Being able to run a qmake command prior to the make command - and
having the option to turn off the qmake option.
In my environment, a qmake is first invoked to create the makefiles.

4. For some reason I could not  use environment variables such as $APP,
but had to use a full name (such as /user/ronb/views/ ..... ) . This
could be problematic, becasue
the files are under source control (clear case), which means that if I
want to use the Eclipse project on another computer, I will have to
re-create it.
Is there any way to work around this?

I have been searching the mailing lists for solutions but couldn't find
them, so I hope you can help me with that.

I would like to emphasis that keeping

Thanks,
Ron.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top