Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: simonepsp on March 13, 2013, 11:19:42 am

Title: [problem] TI NSPIRE C compile error
Post by: simonepsp 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
Title: Re: [problem] TI NSPIRE C compile error
Post by: aeTIos on March 13, 2013, 11:21:35 am
are you using linux?
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp on March 13, 2013, 11:23:44 am
no, windows 8
Title: Re: [problem] TI NSPIRE C compile error
Post by: aeTIos 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.
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp 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 ;)
Title: Re: [problem] TI NSPIRE C compile error
Post by: aeTIos 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.
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp 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 :(
Title: Re: [problem] TI NSPIRE C compile error
Post by: ExtendeD 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/
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp 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. :(
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp 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.

:(
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp 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 ;)
Title: Re: [problem] TI NSPIRE C compile error
Post by: ElementCoder 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.
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp on March 13, 2013, 01:04:42 pm
fatal error, no such file os.h :(
Title: Re: [problem] TI NSPIRE C compile error
Post by: aeTIos 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.
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp 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"....

:(((
Title: Re: [problem] TI NSPIRE C compile error
Post by: ElementCoder on March 13, 2013, 02:05:11 pm
What exactly are you trying to compile? Because, like ExtendeD pointed out, from the first post it looks like you're trying to build ndless itself. So indeed first try to compile a basic nspire program, if that works, you're set.
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp on March 13, 2013, 02:16:56 pm
I'm trying to compile hello.c in /samples/hello directory

Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp on March 13, 2013, 02:58:51 pm
a Ti nspire basic program? :| what program should I use? ;)

Sorry, I'm a noob :S
Title: Re: [problem] TI NSPIRE C compile error
Post by: ElementCoder on March 14, 2013, 03:27:21 am
I don't mean a TI BASIC program, I meant a simple program like hello, but you're already trying that. Personally I use the SDK, which is pretty much plug 'n play. Maybe something is wrong with the makefile, paths or it's just win8 being silly. I don't know unfortunately :(
Title: Re: [problem] TI NSPIRE C compile error
Post by: aeTIos on March 14, 2013, 07:52:19 am
seems like your directories are messed up as os.h cannot be found.
Title: Re: [problem] TI NSPIRE C compile error
Post by: simonepsp on March 14, 2013, 12:12:59 pm
SOLVED :D

How I did:
1) uninstalled everything with revo uninstaller
2) removed path references with PATH editor
3) reinstalled 3 programs:
- MinGW
- Yagarto
- Msys
4) added bin folder, from Ndless SDK, to path environments
5) FIXED:D

Thank you ;)