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

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.