Author Topic: [problem] TI NSPIRE C compile error  (Read 9754 times)

0 Members and 1 Guest are viewing this topic.

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
[problem] TI NSPIRE C compile error
« on: March 13, 2013, 11:19:42 am »
Hi,

I have some problems with Ndless SDK and Windows 8 :(

I set up environment for C development (http://ourl.ca/6330), I installed MSys, Yagarto, Cygwin, 7zip but I have some problems and I don't know how solve :(

That's what appear when I type "make" in src folder using Msys :\
Quote
simonepsp@TERA /c/ndless/src
$ make
make all in tools...
make[1]: Entering directory `/c/ndless/src/tools'
make all in build...
make[2]: Entering directory `/c/ndless/src/tools/build'
cp nspire-gcc nspire-ld nspire-ld-bflt nspire-as nspire-tools Makefile.tpl ../../Ndless-SDK/ndless/bin
chmod +x ../../Ndless-SDK/ndless/bin/nspire-*
make[2]: Leaving directory `/c/ndless/src/tools/build'
make all in MakeTNO...
make[2]: Entering directory `/c/ndless/src/tools/MakeTNO'
make[2]: Leaving directory `/c/ndless/src/tools/MakeTNO'
make[1]: Leaving directory `/c/ndless/src/tools'
make all in libndls...
make[1]: Entering directory `/c/ndless/src/libndls'
nspire-gcc -Os -nostdlib -c _scrsize.c
_scrsize.c:22:16: error: os.h: No such file or directory
_scrsize.c: In function '_scrsize':
_scrsize.c:26: error: 'SCREEN_WIDTH' undeclared (first use in this function)
_scrsize.c:26: error: (Each undeclared identifier is reported only once
_scrsize.c:26: error: for each function it appears in.)
_scrsize.c:26: error: 'SCREEN_HEIGHT' undeclared (first use in this function)
make[1]: *** [_scrsize.o] Error 1
make[1]: Leaving directory `/c/ndless/src/libndls'
make: *** [subdirs] Error 1


What Can I do? :(

If can help:
Windows environments variables path list:
Quote
C:\Users\simonepsp>echo %path%
C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\ndless\sdk\bin;C:\Users\simonepsp\Docum
ents\AMD APP\bin\x86_64;C:\Users\simonepsp\Documents\AMD APP\bin\x86;C:\Program
Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;F:\Program
 Files (x86)\CollabNet;F:\Program Files (x86)\Embarcadero\RAD Studio\10.0\bin;C:
\Users\Public\Documents\RAD Studio\10.0\Bpl;F:\Program Files (x86)\Embarcadero\R
AD Studio\10.0\bin64;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\
Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\
ASP.NET Web Pages\v1.0\;F:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:
\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\
Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int
el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Man
agement Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\
;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program
 Files (x86)\Prime Sense\NITE\Bin;C:\MinGW\bin;C:\msys\1.0\bin;C:\Program Files\
OpenNI\Bin64;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\ATI Technol
ogies\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\b
inn\;C:\Program Files\7-Zip;C:\Program Files (x86)\yagarto\bin;c:\program files
(x86)\gnuarm\bin;C:\Program Files\TortoiseSVN\bin

Thank you
« Last Edit: March 13, 2013, 11:29:05 am by simonepsp »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [problem] TI NSPIRE C compile error
« Reply #1 on: March 13, 2013, 11:21:35 am »
are you using linux?
I'm not a nerd but I pretend:

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #2 on: March 13, 2013, 11:23:44 am »
no, windows 8

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [problem] TI NSPIRE C compile error
« Reply #3 on: March 13, 2013, 11:25:01 am »
hmm. I had problems using the SDK and Linux: Makefiles were messed up and so forth. That might also be your problem.
I'm not a nerd but I pretend:

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #4 on: March 13, 2013, 11:27:16 am »
hmm I downloaded SDK from http://www.unsads.com/projects/nsptools/downloader/download/release/5. There is a new/fixed version?

How did you fixed Makefiles problem?

Thank you ;)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [problem] TI NSPIRE C compile error
« Reply #5 on: March 13, 2013, 11:29:40 am »
I did not fix the makefiles, jacobly fixed them. They most likely won't work on your computer since they are made for linux.
You could poke jacobly on IRC.
I'm not a nerd but I pretend:

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #6 on: March 13, 2013, 11:38:53 am »
ok, thank you.

I hope there are some windows user on this forum that can help me :(

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #7 on: March 13, 2013, 11:38:56 am »
simonepsp: I suppose you are trying to build Ndless itself. Do you plan to add features to Ndless? Did you try first to build a standard TI-Nspire program to check if the

Your error may come from a bad PATH environment variable setup.
The Ndless SDK is a zero-setup compilation chain, you don't need to install MSYS or YAGARTO, nor set yourself environment variables. Make sure to follow the latest tutorial: http://ndlessly.wordpress.com/native-development-intro/
Ndless.me with the finest TI-Nspire programs

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #8 on: March 13, 2013, 11:45:32 am »
I'm trying to "transform" a .c file to .tns file

I tried to use ndless SDK IDE (SciTE) but I can't build a .c file. When I click "Tools ---> "Build" it says << "C:\Users\simonepsp\Desktop\TI-Nspire" not recognized as an internal or external command, operable program or batch file.>>

You can check my PATH environment here:

Quote
C:\Users\simonepsp>echo %path%
C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\ndless\sdk\bin;C:\Users\simonepsp\Docum
ents\AMD APP\bin\x86_64;C:\Users\simonepsp\Documents\AMD APP\bin\x86;C:\Program
Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;F:\Program
 Files (x86)\CollabNet;F:\Program Files (x86)\Embarcadero\RAD Studio\10.0\bin;C:
\Users\Public\Documents\RAD Studio\10.0\Bpl;F:\Program Files (x86)\Embarcadero\R
AD Studio\10.0\bin64;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\
Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\
ASP.NET Web Pages\v1.0\;F:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:
\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\
Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int
el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Man
agement Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\
;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program
 Files (x86)\Prime Sense\NITE\Bin;C:\MinGW\bin;C:\msys\1.0\bin;C:\Program Files\
OpenNI\Bin64;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\ATI Technol
ogies\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\b
inn\;C:\Program Files\7-Zip;C:\Program Files (x86)\yagarto\bin;c:\program files
(x86)\gnuarm\bin;C:\Program Files\TortoiseSVN\bin

I tried to build programs in Ndless SDK on other computer with no MSYS or YAGARTO installed but It gave me the same error. :(
« Last Edit: March 13, 2013, 11:48:52 am by simonepsp »

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #9 on: March 13, 2013, 11:47:50 am »
I've also tried to follow this tutorial on command line TNspire compiling (http://ourl.ca/6330)

but it gave me errors that you can see on first post.

:(

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #10 on: March 13, 2013, 12:27:13 pm »
hmm using Msys when I type:

" nspire-gcc " it reply:

<<arm-elf-gcc.exe: no input files >>

so....PATH works ;)
« Last Edit: March 13, 2013, 12:38:53 pm by simonepsp »

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #11 on: March 13, 2013, 12:29:39 pm »
You need to specify an input file like "nspire-gcc myfile.c", otherwise it won't know what to compile.

Some people need a high five in the face... with a chair.
~EC

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #12 on: March 13, 2013, 01:04:42 pm »
fatal error, no such file os.h :(

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: [problem] TI NSPIRE C compile error
« Reply #13 on: March 13, 2013, 01:06:56 pm »
Try to re-configure stuff, I think you haven't set it up correctly though you say you did.
I'm not a nerd but I pretend:

Offline simonepsp

  • LV2 Member (Next: 40)
  • **
  • Posts: 20
  • Rating: +4/-1
    • View Profile
Re: [problem] TI NSPIRE C compile error
« Reply #14 on: March 13, 2013, 01:29:10 pm »
Try to re-configure stuff, I think you haven't set it up correctly though you say you did.

I reinstalled it 100 times :( I don't know what to do now D:

the compiling stops because of this fatal error:  "fatal error: os.h: No such file or directory"....

:(((
« Last Edit: March 13, 2013, 01:32:03 pm by simonepsp »