Author Topic: Using the ndless-sdk on osx  (Read 6212 times)

0 Members and 1 Guest are viewing this topic.

Offline hgarrereyn

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Using the ndless-sdk on osx
« on: September 27, 2014, 04:22:17 pm »
I am trying to set up the ndless sdk for use on my mac running osx 10.9.2 (Mavericks).


I followed the linux tutorial on setting up an environment with Docker and got to the point where I can run the command:
Code: [Select]
docker run ndless/ndless-sdk nspire-gcc and get the expected error message.

However, when I try to use the
Code: [Select]
nspire-tools new name command or the
Code: [Select]
nspire-tools main command, nothing gets created (They should make a Makefile and a main.c file respectively).

It seems like most of the dev tools are intended for windows and linux use so I haven't been able to find any information regarding osx use.


Any help is appreciated!

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Using the ndless-sdk on osx
« Reply #1 on: September 27, 2014, 06:21:03 pm »
I don't much about docker (I haven't used it at all, actually), but docker needs a VM on OSX:
http://docs.docker.com/installation/mac/

Offline hgarrereyn

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: Using the ndless-sdk on osx
« Reply #2 on: September 27, 2014, 06:38:11 pm »
Yeah, I downloaded boot2docker which also installs VirtualBox. It seems like the problem is with the nspire-tools command as the nspire-gcc command seems to work fine.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Using the ndless-sdk on osx
« Reply #3 on: October 12, 2014, 11:24:15 am »
hgarrereyn, sorry for the late reply.
I double-checked, everything is fine on Linux with the nspire-tools command. The Makefile and main.c should be created in your current folder.
I don't know if this is an issue with the Docker setup or the nspire-tools command itself. Most developers are using Linux, some are using Windows, but not MacOS X, so things haven't been thoroughly tested on it, and I can't really troubleshoot myself MacOS X issues...
Ndless.me with the finest TI-Nspire programs

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Using the ndless-sdk on osx
« Reply #4 on: October 12, 2014, 02:17:25 pm »
FYI, I successfully set up everything yesterday from the git repo (the only things weird is that you need to remove python2.7 support from gdb (I couldn't make it work...) and add an empty string as an argument to genzhen's "all" variable (description for program_options) otherwise it crashes.
The sh scripts work well :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Using the ndless-sdk on osx
« Reply #5 on: October 12, 2014, 03:57:36 pm »
Adriweb, I suppose you are building the toolchain from scratch and not using the Docker image as hgarrereyn tries to.
Also feel free to make a Github pull request for your issues.

hgarrereyn: I have just noticed and fixed an issue with Docker's volume permissions (caused by a limitation of Docker).
To check if you were concerned:
* Check if the command 'id -u' returns 1000 on your VM
* If it does, 'git pull' to update your Ndless clone and retry to run the nspire-tools command
Ndless.me with the finest TI-Nspire programs

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Using the ndless-sdk on osx
« Reply #6 on: October 12, 2014, 07:16:18 pm »
Extended : yes indeed, I was building it manually, not using Docker.
Also, about the genzhen issue, I told Fabian about it so I guess he should add the few extra chars to fix that sometime soon.

For the python bug, that still might be related to my current setup (10.10 GM) so maybe some other people should try it first...
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation