Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: Maizesmagikarp on March 07, 2011, 08:36:29 pm

Title: nspire-ld help
Post by: Maizesmagikarp on March 07, 2011, 08:36:29 pm
Hi, I've been trying to compile nspire programs with MSYS, everything goes well until I get error 127: nspire-ld not found.
I put the sdk/bin into my path, and followed apcalc's guide, installed YAGARTO, etc.
No idea what to do...
Title: Re: nspire-ld help
Post by: ExtendeD on March 08, 2011, 05:21:32 am
Make sure YAGARTO's bin/ directory is in your PATH environment variable as described in the tutorial (http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction#On_Windows).
Title: Re: nspire-ld help
Post by: Maizesmagikarp on March 08, 2011, 05:13:58 pm
I did that, everything as described in the guide.
nspire-gcc works fine, and if I rename nspire-ld and try to execute it that doesn't work either.
D:
Title: Re: nspire-ld help
Post by: ExtendeD on March 09, 2011, 03:45:51 am
Sorry I misread you first post.
So you mean typing "nspire-gcc" in MSYS returns no error whereas "nspire-ld" returns one, although the two files exist ndless\sdk\bin ?
Title: Re: nspire-ld help
Post by: Maizesmagikarp on March 09, 2011, 06:08:28 pm
Nspire-ld works now, but in Eclipde, I get a ld.exe: cannot find -lndls error, and in MINGW32 I get make: nothing to be done for all.
:(
Title: Re: nspire-ld help
Post by: ExtendeD on March 10, 2011, 04:17:45 am
1) Do you mean nspire-ld works in MSYS? What did you change to make it work?
2) Are you using Eclipse CDT? Did you set it up as described here (http://hackspire.unsads.com/wiki/index.php/Debugging_programs#With_Eclipse_CDT)? I'm surprised "ld.exe" complains instead of "arm-none-eabi-ld.exe".
3) Do you mean MSYS instead of MINGW32? The "nothing to be done for all" means everything as been built. "make clean all" can be used for a full rebuild.
Title: Re: nspire-ld help
Post by: Maizesmagikarp on March 10, 2011, 08:19:18 am
I am indeed using Eclipse.
It works in the MINGW32 shell, everything builds fine.
When I try to compile in Eclipse, however, it is not working. It usually exits with "excec.tns error 1] or something similar.
I guess I could just use Eclipse to write the code, then set up a batch file for MINGW32 to auto-compile it, then start Ncubate...
Title: Re: nspire-ld help
Post by: ExtendeD on March 11, 2011, 04:05:40 am
Didi you set up the Eclipse project exactly the same way as in the video tutorial (http://www.youtube.com/watch?v=JB-SnyZpbA4)?
Title: Re: nspire-ld help
Post by: apcalc on March 11, 2011, 07:48:25 pm
Is yagarto located in /Program Files (x86)?  If so, move it elsewhere, as this caused problems for me when I set up Eclipse for the first time (don't forget to adjust you're path, too)