Author Topic: Ndless 2.0 for TI-Nspire Clickpad/Touchpad  (Read 178548 times)

0 Members and 3 Guests are viewing this topic.

Offline Cuervo

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +2/-1
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #450 on: February 22, 2011, 11:49:59 am »
Hi,

I'm new here..
Tried to make Ndless, but I'm having also this problem with os.h not being found..
The same problem on Mac OS X 10.6.6 and Ubuntu 10.10..

Where is the include-dir included? I didn't find it..

Code: [Select]
christian@CUBULAP1:~/Desktop/ndless/trunk$ make
make all in tools...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in build...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
make all in MakeLoader...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in libndls...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
nspire-gcc -Os -nostdlib -c any_key_pressed.c
any_key_pressed.c:22:16: fatal error: os.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[1]: *** [any_key_pressed.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
make: *** [subdirs] Fehler 1
christian@CUBULAP1:~/Desktop/ndless/trunk$

And if I add
-I../include
in
libndls/Makefile, so
GCCFLAGS = -Os -nostdlib
becomes
GCCFLAGS = -Os -nostdlib -I../include
I get a much more confusing output:

Code: [Select]
make all in tools...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in build...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/build'
make all in MakeLoader...
make[2]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader
make[2]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools/MakeLoader'
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/tools'
make all in libndls...
make[1]: Betrete Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
nspire-gcc -Os -nostdlib -I../include -c any_key_pressed.c
In file included from any_key_pressed.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -marm -c clear_cache.c
In file included from clear_cache.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c clrscr.c
In file included from clrscr.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c feof.c
In file included from feof.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c fgets.c
In file included from fgets.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c fputs.c
In file included from fputs.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -marm -c idle.c
In file included from idle.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c isalnum.c
In file included from isalnum.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c iscntrl.c
In file included from iscntrl.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c rewind.c
In file included from rewind.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
nspire-gcc -Os -nostdlib -I../include -c show_msgbox.c
In file included from show_msgbox.c:22:0:
../include/os.h:254:1: warning: inline function ‘printf’ given attribute noinline
../include/os.h:255:1: warning: inline function ‘sprintf’ given attribute noinline
../include/os.h:256:1: warning: inline function ‘fprintf’ given attribute noinline
../include/os.h:315:53: warning: inline function ‘exit’ given attribute noinline
show_msgbox.c: In function ‘show_msgbox’:
show_msgbox.c:35:1: error: insn does not satisfy its constraints:
(insn 63 20 21 2 show_msgbox.c:29 (set (reg:SI 2 r2)
        (reg/f:SI 13 sp)) 167 {*thumb1_movsi_insn_osize} (nil))
show_msgbox.c:35:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
make[1]: *** [show_msgbox.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/christian/Desktop/ndless/trunk/libndls'
make: *** [subdirs] Fehler 1

Sorry for german output.. (and wrong encoding..-.-)


At first I understood why there are no binaries released, but if the people destroy their calculators, it's not your fault, is it?..


TIA
Cuervo

Offline gamecheet

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #451 on: February 22, 2011, 09:21:39 pm »
help me please, im using ubuntu 10.10 and a windows xp virtualbox in unison to try and compiling Ndless but no matter what i try it won't, in windows my [subdirs] always seem to be the problem, in ubuntu my /tools folder compiles nicely but i can't make Ndless :( if somebody could be as so kind as to either send me a binary or lend a helping hand i would be more than happy

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #452 on: February 22, 2011, 09:26:28 pm »
@Cuervo - I don't understand German, but make sure you did the following:

From the Ndless root:
Code: [Select]
cd tools;make

Then add the created /bin directory in the ndless root to your path

@gamecheet - I am not familiar with Linux at all, but I recall there being an issue with building Ndless in Linux.  I can't remember if it was resolved yet or not. :(


Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #453 on: February 22, 2011, 09:46:35 pm »
@Cuervo: even when the end user is still fully liable, we wouldn't want people to destroy their calc if they didn't know what they were doing. It would give ndless, it's authors, and omni a bad name.

Offline gamecheet

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #454 on: February 22, 2011, 09:53:18 pm »
i dont need the binary itself (although it would be nice) all i need is a windows xp step by step kind of thing ;) lol anything would be helpful, ive looked far and wide and nobody is being very helpful. i also have access to a windows vista virtualbox if thats any easyier, maybe somebody could describe how they did it, im sure many people are looking for the same thing as me :/

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #455 on: February 22, 2011, 09:57:01 pm »
Try this tutorial I wrote a while back:
http://ourl.ca/6330


Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #456 on: February 22, 2011, 09:59:32 pm »
You will also need to install mingw, so you can actually build ndless.

Offline gamecheet

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #457 on: February 22, 2011, 10:07:07 pm »
@apcalc your tutorial assumes youre using a post xp version of windows, would that make a difference while compiling, or in any way make the process easier?

Offline pokemonrules9

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 16
  • Rating: +2/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #458 on: February 22, 2011, 10:44:40 pm »
Hey, like many others, I am all very new to this.  I followed the tutorial, but when trying to build it, I came up with this.  :banghead:   Can anyone tell me what i did wrong?


Spoiler For Spoiler:
$ make
make all in tools...
make[1]: Entering directory `/C/ndless/tools'
make all in build...
make[2]: Entering directory `/C/ndless/tools/build'
cp nspire-gcc nspire-ld  nspire-as ../../bin
make[2]: Leaving directory `/C/ndless/tools/build'
make all in MakeLoader...
make[2]: Entering directory `/C/ndless/tools/MakeLoader'
gcc -W -Wall MakeLoader.c -o ../../bin/MakeLoader.exe
make[2]: gcc: Command not found
make[2]: *** [MakeLoader.exe] Error 127
make[2]: Leaving directory `/C/ndless/tools/MakeLoader'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/C/ndless/tools'
make: *** [subdirs] Error 1

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #459 on: February 22, 2011, 10:46:26 pm »
Add the /bin directory of MinGW to you path. :)

@apcalc your tutorial assumes youre using a post xp version of windows, would that make a difference while compiling, or in any way make the process easier?

It has been years since I last used Windows XP, but I highly doubt it will make that much of a difference.  The only issue I can think of is you might have to use a different method to add to your path (I am sure there are countless tutorials on how to do this on the Internet!). :)
« Last Edit: February 22, 2011, 10:48:01 pm by apcalc »


Offline gamecheet

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #460 on: February 22, 2011, 10:49:43 pm »
duuuude thats what i get in windows xp i will try to do what apcalc says

Offline gamecheet

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #461 on: February 22, 2011, 11:16:29 pm »
how about an md5, would that work or would it be different because its diy?

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #462 on: February 23, 2011, 04:30:25 am »
Where is the include-dir included? I didn't find it..

It's location should be as simple as
ndless\include or ndless\trunk\include in your case
If it isn't there I would have a serious talk with your svn client if I where you.
(especially since the "missing os.h" error is probably related with an error in your tree.)


@pockemonrules9

Seems to me as if you didn't install mingw properly
look here for how to do it.
Make also sure that you have Yagarto and 7Zip installed (and their respective folders in your path
or you'r going to have error's later therefore.)
« Last Edit: February 23, 2011, 04:32:11 am by shrear »

Offline Cuervo

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +2/-1
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #463 on: February 23, 2011, 11:54:23 am »
Ok, thanks, I now get another error.. but he finds os.h^^

Code: [Select]
nspire-gcc -Os -nostdlib -c any_key_pressed.c
In file included from /Users/christiancoors/Desktop/TI-nspire/ndless/trunk/bin/../include/os.h:8:0,
                 from any_key_pressed.c:22:
/Users/christiancoors/Desktop/TI-nspire/ndless/trunk/bin/../include/common.h:225:20: schwerwiegender Fehler: stddef.h: No such file or directory
Kompilierung beendet.
make[1]: *** [any_key_pressed.o] Error 1
make: *** [subdirs] Error 1

He does not find stddef.h.. And on Ubuntu gcc still crashes.
« Last Edit: February 23, 2011, 11:54:49 am by Cuervo »

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #464 on: February 23, 2011, 12:10:28 pm »
stddef.h has to be in the include folder of "GNU C Compiler" if I interpret the source right but there I can't help you...