1

I'm trying to import the project grive2 into eclipse. I figured the easiest way would be to use Eclipses' build in git support. This was performed with File->Import->Git->Projects From GIT Then I choose Clone URI and entered the URI. After setting the destination path I was shown this dialog:

enter image description here

For which I selected the Import using the New Project wizard option (I don't know if that's correct!? Then in the new wizard I select the Makefile project with existing code.

enter image description here

In the next window I had to set the path of the project and the compiler:

enter image description here

After this step the project was entered in the eclipse tree of the projects on the right. When now clicking the build (little hammer in the bar) I receive the output message

 18:55:32 **** Incremental Build of configuration Default for project    
 grive2 ****
 make all 
 make: *** No rule to make target 'all'.  Stop.

 18:55:32 Build Finished (took 73ms)

What else do I need to do to get it to build and compile?

2 Answers 2

2

From their git repository, the readme has the following instruction:

mkdir build
cd build
cmake ..
make -j4
sudo make install

You need to run cmake first. It it will do what it needs to do and gives you a make file to run. You don't need eclipse to build and compile!

1
  • I don't just wanna build it, but also modify the code. But following the above steps gave me the Makefile and Eclipse recognized it. It works fine now, Thx!
    – wasp256
    Commented Jul 3, 2016 at 18:04
2

The eclipse marketplace has a plugin that can generate the makefiles and build directory for you: cmake4eclipse

Not the answer you're looking for? Browse other questions tagged or ask your own question.