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

0 Members and 1 Guest are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #405 on: February 10, 2011, 07:27:51 am »
I haven't touched a single line of code since then, but I'm keeping track of your bug reports and suggestions, hopefully I'll try to integrate them soon.


What have you decided about the arrow and number keys?

I think mapping arrow keys to number keys at the Ndless level (which has been introduced in the last builds if I've understood well) is a bad idea.

I can understand this "hack" has been introduced to make old Ndless 1.7 games work without modifying the source...
But let's look at the future and not at the past: there are many reasons a program would like to test for number keys (numerical input, menu choice...).

I think it's up to the program itself to test for number keys and to decide to handle them either as numbers either as arrows.
« Last Edit: February 10, 2011, 07:31:03 am by critor »
TI-Planet co-admin.

Offline Agentx002

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
  • Personal Text: Hmm let me think...
    • View Profile
    • Meca Productions
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #406 on: February 10, 2011, 11:25:05 am »
How do you "build" ndless 2.x
The instructions are for experienced users and arent even for 2.0, they are for 1.7 and barely tell you how to build that!
To build and hack into Ndless 2.0:

 - Install a Subversion client such as TortoiseSVN
 - Checkout the source code with the URL and account above
 - Set up a C development environment
 - Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy
 - Install it on nspire_emu or your calculator by following src/doc/ReadMe.txt

Update frequently your SVN working copy to get and rebuild the latest version.

You may browse the Development resources on Hackspire to start your own programs.

Links to download the TI-Nspire OSes are available in this topic.



That basically sounds like "To build ndless, build it." to less experienced people  ???
There is no "src" directory, I did find the "Ndess-Development.txt" but it repeats, "To build ndless 2.0, build it"
I tried the 1.7 instructions on hackspire
Quote
Setting up a development environment

Get Ndless which contains an SDK for C and assembly development on TI-Nspire. This article is written for Ndless v1.7.
Add the sdk/bin/ directory to your PATH environment variable (on Windows XP, Windows Vista or on Linux).
There is no sdk/bin directory in the ndless 2.0 folder, I feel these instructions are a bit irrelevant to 2.0, I tried searching but found no further instruction on how to build ndless 2.0, can anyone help me out here? I mean, even if you can send me the built version of ndless 2.0, I mean, it hasnt been updated since January 18th, no offense to devs, that was almost a month ago. If someone can provide further instructions on how to build it, that would be highly appreciated  :-\

Details:
I have a Non-CAS nSpire touchpad calculator, a non-CAS touchpad, non-CAS clickpad, and OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash) and of course a mini usb cable
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
« Last Edit: February 10, 2011, 11:30:11 am by Agentx002 »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #407 on: February 10, 2011, 11:30:19 am »
There is no sdk/bin directory in the ndless 2.0 folder, I feel these instructions are a bit irrelevant to 2.0, I tried searching but found no further instruction on how to build ndless 2.0, can anyone help me out here?
Did you follow this step: "Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy"
Those should be the instructions for building 2.0, unless I'm horribly mistaken.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Agentx002

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
  • Personal Text: Hmm let me think...
    • View Profile
    • Meca Productions
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #408 on: February 10, 2011, 11:33:08 am »
There is no sdk/bin directory in the ndless 2.0 folder, I feel these instructions are a bit irrelevant to 2.0, I tried searching but found no further instruction on how to build ndless 2.0, can anyone help me out here?
Did you follow this step: "Set up the development environment for Ndless and built it: follow the procedure described in src/doc/Ndess-Development.txt in your working copy"
Those should be the instructions for building 2.0, unless I'm horribly mistaken.

Was editing my post to throw that I saw that in while you where posting
The text files first instruction
Quote
* Add 7-zip's folder to your PATH environment variable
* Copy Ndless/Makefile.config.tpl to Ndless/Makefile.config and configure the latter
Hurr?
« Last Edit: February 10, 2011, 11:34:45 am by Agentx002 »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #409 on: February 10, 2011, 11:39:55 am »
Quote
OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash)
Nleash is not required to downgrade from 2.1.0.631 to 1.7.2741 or 2.0.1.60 :)
It's however necessary to use Nleash for reverting from 2.1.0.631 to 1.1.*-1.6.*.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #410 on: February 10, 2011, 11:41:16 am »
I haven't touched a single line of code since then, but I'm keeping track of your bug reports and suggestions, hopefully I'll try to integrate them soon.


What have you decided about the arrow and number keys?

I think mapping arrow keys to number keys at the Ndless level (which has been introduced in the last builds if I've understood well) is a bad idea.

I can understand this "hack" has been introduced to make old Ndless 1.7 games work without modifying the source...
But let's look at the future and not at the past: there are many reasons a program would like to test for number keys (numerical input, menu choice...).

I think it's up to the program itself to test for number keys and to decide to handle them either as numbers either as arrows.
About this, I have an idea that might make everything work great: how about add a line in Ndless program headers so as to specify for which version they were compiled for. If this line is absent, consider it to be an Ndless 1.7 program, and make Ndless decide which buttons to use, but if the line says that the program was made for Ndless 2.0, let the program decide its own course of action in regard of the keys.
What do you think?
« Last Edit: February 10, 2011, 11:41:42 am by Silver Shadow »
Former Coder of Tomorrow


Offline Agentx002

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
  • Personal Text: Hmm let me think...
    • View Profile
    • Meca Productions
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #411 on: February 10, 2011, 11:43:22 am »
Quote
OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash)
Nleash is not required to downgrade from 2.1.0.631 to 1.7.2741 or 2.0.1.60 :)
It's however necessary to use Nleash for reverting from 2.1.0.631 to 1.1.*-1.6.*.
Nice ta know, saves me a step if I very have to downgrade (hopefully I won't) to 1.7+

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #412 on: February 10, 2011, 12:45:33 pm »
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
well if the above is done then msys should spit out the binarys for 1.7,2.0 and 2.1 if you:
run msys, then type in
"cd D:/Nspire/ndless" (or wherever you have stored the source from the svn)
and then
"make"



« Last Edit: February 10, 2011, 12:45:58 pm by shrear »

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #413 on: February 10, 2011, 01:27:34 pm »
Quote
OS 2.1 on my calc (I can revert back to 2.0 and 1.7 if I really have to via nleash)
Nleash is not required to downgrade from 2.1.0.631 to 1.7.2741 or 2.0.1.60 :)
It's however necessary to use Nleash for reverting from 2.1.0.631 to 1.1.*-1.6.*.

In fact, Nleash is required to downgrade to 1.7.2741 if you have a TouchPad keypad.
If the TouchPad keypad is detected, OSes 2.x set the minimal OS version to 2.0.

But anyway, someone having only a TouchPad keypad should not downgrade to 1.7...
« Last Edit: February 10, 2011, 01:28:36 pm by critor »
TI-Planet co-admin.

Offline Agentx002

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
  • Personal Text: Hmm let me think...
    • View Profile
    • Meca Productions
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #414 on: February 10, 2011, 02:55:44 pm »
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
well if the above is done then msys should spit out the binarys for 1.7,2.0 and 2.1 if you:
run msys, then type in
"cd D:/Nspire/ndless" (or wherever you have stored the source from the svn)
and then
"make"
Well, it spat out a bin folder, and some other stuff. Now what :|

Offline benoit934

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +2/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #415 on: February 10, 2011, 03:01:53 pm »
When i try to build i have error can tou help me pleas ?

Code: [Select]
make[1]: Entering directory `/home/Ndless/libndls'
nspire-gcc -Os -nostdlib -c feof.c
feof.c: In function 'feof':
feof.c:28:11: error: 'EOF' undeclared (first use in this function)
feof.c:28:11: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [feof.o] Error 1
make[1]: Leaving directory `/home/Ndless/libndls'
make: *** [subdirs] Error 1
:banghead:

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #416 on: February 10, 2011, 03:41:48 pm »
I have installed MSYS, Mingw, yagarto, and have had 7zip forever.
Yagarto is in my 'path'
well if the above is done then msys should spit out the binarys for 1.7,2.0 and 2.1 if you:
run msys, then type in
"cd D:/Nspire/ndless" (or wherever you have stored the source from the svn)
and then
"make"
Well, it spat out a bin folder, and some other stuff. Now what :|

add that bin folder to your path and then redo
if it gives the same error restart your pc (don't really know why that helps sometimes)
if that doesn't help post the error message please

hope this helps



When i try to build i have error can tou help me pleas ?

Code: [Select]
make[1]: Entering directory `/home/Ndless/libndls'
nspire-gcc -Os -nostdlib -c feof.c
feof.c: In function 'feof':
feof.c:28:11: error: 'EOF' undeclared (first use in this function)
feof.c:28:11: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [feof.o] Error 1
make[1]: Leaving directory `/home/Ndless/libndls'
make: *** [subdirs] Error 1
:banghead:
Could you check which version you have?
« Last Edit: February 10, 2011, 03:52:47 pm by shrear »

Offline benoit934

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +2/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #417 on: February 10, 2011, 04:10:06 pm »
I have rev 364 of Ndless
GNU Make 3.81
gcc.exe (GCC) 4.5.0
« Last Edit: February 10, 2011, 04:12:06 pm by benoit934 »

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #418 on: February 10, 2011, 04:19:48 pm »
GNU Make 3.81 ?
err... are you on a linux system?
(for windows you need msys+yagarto as described in the first post of this topic)

Offline benoit934

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +2/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #419 on: February 10, 2011, 04:46:39 pm »
I have msys+yagarto and i have Centos how i can update ?