Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: sammyMaX on September 01, 2011, 05:40:19 pm

Title: Using Eclipse for Ndless Development/Debugging
Post by: sammyMaX on September 01, 2011, 05:40:19 pm
From this hackspire page (http://hackspire.unsads.com/wiki/index.php/Debugging_programs) I see that programs can be built and debugged from Eclipse. However, when I import my project and build it, it uses GCC instead of nspire-gcc. Is it reading my previous makefile at all? How is this fixed?

Edit: Eclipse also can't find os.h, although [ndless directory]/sdk/include is in the path.
Title: Re: Using Eclipse for Ndless Development/Debugging
Post by: fb39ca4 on September 02, 2011, 09:43:37 pm
I am having this same issue. I hope someone knows a solution.
Title: Re: Using Eclipse for Ndless Development/Debugging
Post by: sammyMaX on September 03, 2011, 10:53:15 am
Are you using Windows? I had that problem in the Linux version of Eclipse, and I (reluctantly) installed the Windows version. The Windows one works fine for me. Go to Properties>C/C++ Build>Tool Chain Editor and make sure the toolchain is "No Toolchain," and the builder is "GNU Make Builder." (Those are my settings, at least) Also, make sure EVERY folder in the sdk directory of Ndless is in your PATH variable. (sdk/bin, sdk/include, sdk/lib, and sdk/system) Some of these things might not be necessary, but this is how I got my system to work.

This youtube video (http://www.youtube.com/watch?v=JB-SnyZpbA4) from ExtendeD really helps. MAKE SURE TO TURN CC ON, as that's how the instructions are given!

Edit: Make sure to go to PROPERTIES (from the project explorer window, then right click on your project name), not PREFERENCES.