Setting up Eclipse on a fresh Ubuntu installation?

Firmware/software/electronics/mechanics
Post Reply
demcanulty
Beginner
Posts: 8
Joined: Fri Nov 22, 2013 8:28 am

Setting up Eclipse on a fresh Ubuntu installation?

Post by demcanulty »

The VirtualBox was good for proof and getting start, but not comfortable to work in for development, so I decided to get a used laptop and dedicate it as a crazyflie dev computer. I've got the client working and controlling successfully, cloned repositories, got the arm tools installed, but I'm having trouble getting Eclipse set up.

It would be great if there was a list of what to install and how to get to the point of being able to compile firmware on a new installation of Eclipse. I'm sure that would be a lot of work for someone, I'd be happy instead with a few pointers and then I can write up a more complete description for the forums or the wiki.

So far I've got all the software additions that are in the VirtualBox implementation (I think), but I don't know how to include the cloned repository in a project and get it to compile correctly.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Setting up Eclipse on a fresh Ubuntu installation?

Post by tobias »

We have been thinking about including the Eclipse project files in the repository but not found a good general way so that it works well for everyone. What you can do is to copy the project folder from the VM to your own setup to get you started quickly. Those projects include Eclipse project files. You can then pretty easily import those projects into Eclipse file->import->general->import existing project into workspace. You might have to update some references/links in the project preferences though but I think that will be the fastest way to get going.
demcanulty
Beginner
Posts: 8
Joined: Fri Nov 22, 2013 8:28 am

Re: Setting up Eclipse on a fresh Ubuntu installation?

Post by demcanulty »

That helped a lot, thanks! I'd thought I was working with copies of the project files from the VBox, but I had fooled myself. Those worked, I had to change a couple of links, and then I had a bunch of trouble until I realized that you have to do something special to get the arm tools to work on a 64 bit system. There's a build for that, but on Ubuntu 13.10, it's not technically officially supported. There's a workaround here: https://launchpad.net/~terry.guo/+archi ... m-embedded

Then make works both in the terminal and Eclipse!
Post Reply