Author Topic: Problems Compiling on Linux for NSpire  (Read 2368 times)

0 Members and 1 Guest are viewing this topic.

Offline toru

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Problems Compiling on Linux for NSpire
« on: January 27, 2013, 11:26:49 pm »
Hi all, I'm having a tough time starting developing for the NSpire on my linux machine. I already have ndless installed (version 3.1), and I can run the pre-built binaries that are included in the samples directory without a problem. However, when I try to build the sample code myself (even just the helloworld), it won't run on the calculator. I'm using their makefile, and it BUILDS just fine (produces a .tns file and everything). HOWEVER, when I move it over to the calculator I get the error "This document format is not supported: helloworld.tns". I have followed this tutorial to install the build environment in linux (http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux#Your_first_build)

As I said, it's very strange because it build fine on my linux machine, and gives me a tns file - but simply won't run on the calculator. Any ideas??

Here's my info:
running 3.1 of ndless
calc OS version 3.10.0392

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Problems Compiling on Linux for NSpire
« Reply #1 on: January 28, 2013, 01:42:16 am »
Quote
I get the error "This document format is not supported: helloworld.tns"
Usually, this means that one hasn't properly installed Ndless 3.1... but as you can run the pre-built binaries, we can rule this out.
Could you upload the helloworld.tns file here ?
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline toru

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: Problems Compiling on Linux for NSpire
« Reply #2 on: January 28, 2013, 02:15:02 am »
Hi Lionel, thanks for the reply - I wasn't sure what's the best way to upload files here, so I just added it to a git repository: https://github.com/torusan/helloworld. I ran a diff on my executable and the precompiled executables with the NDless SDK, and there is a difference in them. So maybe my toolchain isn't set up properly or something.

Thanks!