Author Topic: Tutorial - Setting up C Development Environment for the TI-Nspire  (Read 65596 times)

0 Members and 1 Guest are viewing this topic.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #75 on: August 14, 2011, 12:29:10 pm »
1) Did the install script for the underlying ARM toolchain run to completion successfully ?
2) Does nspire-gcc have +x (executable) permissions ?
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #76 on: August 14, 2011, 12:53:17 pm »
[edit] didn't see Lionel's post.
« Last Edit: August 14, 2011, 12:53:48 pm by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #77 on: August 14, 2011, 12:57:51 pm »
1. Yes, I have installed gcc-4.5-arm-linux-gnueabi and all of its dependencies correctly.
2. Yes, as well as everything else in the bin folder.

EDIT: If this helps anybody, the line after "command not found," it gives error 127.
« Last Edit: August 14, 2011, 01:17:44 pm by sammyMaX »

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

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #78 on: August 14, 2011, 01:23:11 pm »
Quote
1. Yes, I have installed gcc-4.5-arm-linux-gnueabi and all of its dependencies correctly.
AFAICT, we usually compile the toolchain ourselves and use "none-eabi" instead of "linux-gnueabi" ;)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #79 on: August 14, 2011, 02:10:27 pm »
I used the bash script here http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction but it gives me an error during the installation of gcc. The console says: "checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES." and then the script exits.

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

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #80 on: August 14, 2011, 02:38:53 pm »
Ah, OK :)
Interesting, because this is the script that worked for me and that I contributed to Hackspire, with these exact versions.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #81 on: August 14, 2011, 02:59:46 pm »
Is there any other way to set up the toolchain? Sorry, I'm kind of a Linux noob. :(

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

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #82 on: November 29, 2011, 03:10:44 pm »
Revisiting the topic: jimbauwens is experiencing the same problem, while I am still not :(

I could successfully compile:
BINUTILS=binutils-2.22 # http://www.gnu.org/software/binutils/
GCC=gcc-4.6.2 # http://gcc.gnu.org/
NEWLIB=newlib-1.19.0 # http://sourceware.org/newlib/
GDB=gdb-7.3.1 # http://www.gnu.org/software/gdb/
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #83 on: November 29, 2011, 03:50:25 pm »
Alright, got it to work (in Ubuntu 11.04).

I added "--with-system-zlib" to gcc step 1 and 2 because it always failed on the zlib part.
Also, be sure to add $HOME/bin to the PATH :)

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #84 on: November 29, 2011, 05:58:52 pm »
I later got it set up without using the script by just installing everything though Synaptic. The problem I was having was that I had gcc-4.5-arm-linux-gnueabi installed, but not gcc-arm-linx-gnueabi, which was needed.

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

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #85 on: November 30, 2011, 04:06:33 am »
Well, I did that at first, but then realized that it wasn't the good gcc :)

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #86 on: November 30, 2011, 05:33:49 pm »
How are the gcc's different?

And btw, did anyone get Eclipse working (debugging Ndless programs) in linux? I can get it running, but it can't debug properly. (The settings are just different for some reason so I don't know what to change)
« Last Edit: November 30, 2011, 05:34:03 pm by sammyMaX »

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

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #87 on: January 21, 2012, 09:53:33 am »
scince this isnt that old....
does this work for ndless 3.1?
you know, to set everything up
« Last Edit: January 21, 2012, 09:54:08 am by jwalker »
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #88 on: January 21, 2012, 11:58:43 am »
I followed these instructions, which were actually quite simple to do ;)

http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction

(666th post) XD

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Tutorial - Setting up C Development Environment for the TI-Nspire
« Reply #89 on: January 21, 2012, 04:17:08 pm »
i tried that and now im getting this:
/c/ndless/sdk/bin/nspire-gcc: line 26 : command not found
this is after i type in the nspire-gcc command that they tell you to inorder to test it on hackspire
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads