Rockbox Development > Starting Development and Compiling
Eclipse project for rockbox
Echo:
Hi
I want to setup an eclipse project for rockbox but I had some trouble figuring out what directory should be the main directory for the project.
I don't want to use the root directory because I don't want the build directory(ies) to be in the project so auto-generated code won't contaminate my index.
Also, if anyone knows how to use the eclipse git plugin I would love some directions.
Thanks
BenBrown:
See, http://www.rockbox.org/wiki/AndroidPort
Most notably "If you like eclipse: Import the Rockbox eclipse project from the android folder (File->New->Other->Android->Android Project; then select 'Create Project from existing Source')"
TL;DR The /rockbox/android folder.
Echo:
That won't give me only the android project?
I actually need the sansa project...
BenBrown:
My apologies Echo I was mistaken about your post. To rectify that, let me see if I can help you out. I'll be back shortly.
Edit:
You can create a build directory outside of the rockbox directory. So, as long you create your build directory outside of the rockbox sources you needn't worry about them being imported into your eclipse project.
Like this, say I have two directories in my WORKING directory ~/WORKING/build/ and my rockbox sources in ~/WORKING/rockbox/
If I "cd ~/WORKING/build/" and execute "../rockbox/tools/configure" and then "make", it will build my project outside of the rockbox sources directory.
Importing rockbox into eclispe requires the CDT plugin from http://www.eclipse.org/cdt/downloads.php , after that is installed with "help>install new software", OR perhaps you all ready have that, you can import the existing C project rockbox into eclispe using the rockbox directory as the root folder. However, building rockbox in eclipse is beyond my familiarity with it. I have an affinity for the command line. Perhaps if you learn how you could post back here to enlighten the rest of us.
BenBrown:
;D I just built rockbox within eclipse. Let me work out a method and I'll post it here.
Navigation
[0] Message Index
[#] Next page
Go to full version