Author Topic: Using Eclipse for Ndless Development/Debugging  (Read 2894 times)

0 Members and 1 Guest are viewing this topic.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Using Eclipse for Ndless Development/Debugging
« on: September 01, 2011, 05:40:19 pm »
From this hackspire page 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.
« Last Edit: September 01, 2011, 06:08:05 pm by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Using Eclipse for Ndless Development/Debugging
« Reply #1 on: September 02, 2011, 09:43:37 pm »
I am having this same issue. I hope someone knows a solution.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Using Eclipse for Ndless Development/Debugging
« Reply #2 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 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.
« Last Edit: September 03, 2011, 10:55:26 am by sammyMaX »

Are you wondering who Sammy is? My avatar is Sammy.