Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: hgarrereyn on September 27, 2014, 04:22:17 pm

Title: Using the ndless-sdk on osx
Post by: hgarrereyn 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!
Title: Re: Using the ndless-sdk on osx
Post by: Vogtinator 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/
Title: Re: Using the ndless-sdk on osx
Post by: hgarrereyn 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.
Title: Re: Using the ndless-sdk on osx
Post by: ExtendeD 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...
Title: Re: Using the ndless-sdk on osx
Post by: Adriweb 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 :)
Title: Re: Using the ndless-sdk on osx
Post by: ExtendeD 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 (https://github.com/docker/docker/issues/7198)).
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
Title: Re: Using the ndless-sdk on osx
Post by: Adriweb 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...