Author Topic: A new graphical SDK for Ndless  (Read 19544 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
A new graphical SDK for Ndless
« on: August 26, 2012, 11:30:37 am »
After the official Lua SDK in TI-Nspire 3.2 softwares, the new Ndless graphical SDK has just been released.

This new SDK features a real integrated development environment! ;D
From the same window you can now:
  • modify your code in a graphic editor with syntax coloring
  • compile with only 2 clicks
  • test in the emulator with only 2 clicks too



Now, developping for Ndless and TI-Nspire becomes much easier! ;D





Source:
http://ndlessly.wordpress.com/2012/08/26/new-ndless-sdk/

Links:
SDK Ndless 3.1
The new Ndless SDK tutorial
« Last Edit: August 28, 2012, 10:05:20 am by Art_of_camelot »
TI-Planet co-admin.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #1 on: August 26, 2012, 11:39:11 am »
Now this is interesting. This will surely help me with development. I've always found it a bit of a hassle :/ Downloading now!

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

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: A new graphic SDK for Ndless
« Reply #2 on: August 26, 2012, 11:54:24 am »
Is it portable? :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A new graphic SDK for Ndless
« Reply #3 on: August 26, 2012, 12:09:57 pm »


He's also porting Starcraft 1 to the Nspire?? (see window title bar) O.O

Kidding aside, this is cool. I'm glad new tools are coming out to make Ndless development more user-friendly.
« Last Edit: August 26, 2012, 12:10:14 pm by DJ_O »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: A new graphic SDK for Ndless
« Reply #4 on: August 26, 2012, 12:42:03 pm »
Is it portable? :D
Seems it is—it's a ZIP :w00t: Still waiting for it to download. Looks like a great tool.




Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: A new graphic SDK for Ndless
« Reply #5 on: August 26, 2012, 12:51:13 pm »
Quote
Is it portable? :D
In the sense of being zero-install, or in the sense of being usable on Windows, MacOS X and Linux ?
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #6 on: August 26, 2012, 01:33:38 pm »
Good stuff! :D I do hope though that ExtendeD fixes the trunk to make the old ndless building work... :P
(If you don't know, r632 ish is the only revision that does not have the SDK, and still has the nspire-gcc and friends work.)
Actually, could the SDK be separated from the ndless tree? It's a lot to download for a Linux user, like me! ;)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #7 on: August 26, 2012, 01:55:00 pm »
Very Nice, trying it out right now
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #8 on: August 26, 2012, 02:34:23 pm »
nspire_emu won't let me send files to it. What could be wrong? I was using an old rev of ndless (643 :P)

And when building the hello world example it throws me an error:
Code: [Select]
nspire-gcc -Os -Wall -W -marm -c main.c
main.c: In function 'main':
main.c:5:2: error: unknown type name 'nioconsole'
main.c:9:2: warning: passing argument 1 of 'nio_InitConsole' from incompatible pointer type [enabled by default]
\Users\Gebruiker\Downloads\ndless-v3.1-beta-r695-sdk\ndless-v3.1-beta-r695-sdk/ndless/bin/../3rd/nspireio/include/nspireio2.h:117:6: note: expected 'struct nio_console *' but argument is of type 'int *'
main.c:10:2: warning: passing argument 1 of 'nio_DrawConsole' from incompatible pointer type [enabled by default]
\Users\Gebruiker\Downloads\ndless-v3.1-beta-r695-sdk\ndless-v3.1-beta-r695-sdk/ndless/bin/../3rd/nspireio/include/nspireio2.h:122:6: note: expected 'struct nio_console *' but argument is of type 'int *'
main.c:11:2: warning: passing argument 1 of 'nio_printf' from incompatible pointer type [enabled by default]
\Users\Gebruiker\Downloads\ndless-v3.1-beta-r695-sdk\ndless-v3.1-beta-r695-sdk/ndless/bin/../3rd/nspireio/include/nspireio2.h:172:6: note: expected 'struct nio_console *' but argument is of type 'int *'
main.c:13:2: warning: passing argument 1 of 'nio_CleanUp' from incompatible pointer type [enabled by default]
\Users\Gebruiker\Downloads\ndless-v3.1-beta-r695-sdk\ndless-v3.1-beta-r695-sdk/ndless/bin/../3rd/nspireio/include/nspireio2.h:196:6: note: expected 'struct nio_console *' but argument is of type 'int *'
make: *** [main.o] Error 1
Built.

My code:
Code: [Select]
#include <os.h>
#include <nspireio2.h>

int main(void) {
nioconsole csl;
lcd_ingray();
clrscr();
//53 col, 29 row, 0px offset for x/y, bgcolor, fgcolor
nio_InitConsole(&csl, 53, 29, 0, 0, 0, 15);
nio_DrawConsole(&csl);
nio_printf(&csl, "Hello World!");
wait_key_pressed();
nio_CleanUp(&csl);
return 0;
}
« Last Edit: August 26, 2012, 02:42:38 pm by ElementCoder »

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

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #9 on: August 26, 2012, 03:07:02 pm »
Replace nioconsole with nio_console in line 5 ;)

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #10 on: August 26, 2012, 03:49:43 pm »
I'm wondering if there's a tutorial for nspire c programming?
Sig wipe!

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: A new graphic SDK for Ndless
« Reply #11 on: August 26, 2012, 05:02:33 pm »
I'm wondering if there's a tutorial for nspire c programming?
All resources made for nspire C programming are on hackspire.
There is also a tutorial for non-Windows users in order to setup the environnement and make a hello world program, but I guess it is getting a bit old now (it still work tho)
http://hackspire.unsads.com/wiki/index.php/Main_Page

edit : wait, Extended has updated the page for Linux-users (since they can't use the sdk)
http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux
« Last Edit: August 26, 2012, 05:04:06 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #12 on: August 26, 2012, 05:49:30 pm »
I'm wondering if there's a tutorial for nspire c programming?

The step-by-step tutorial for the Windows SDK is available here: http://ndlessly.wordpress.com/native-development-intro/

Good stuff! :D I do hope though that ExtendeD fixes the trunk to make the old ndless building work... :P
(If you don't know, r632 ish is the only revision that does not have the SDK, and still has the nspire-gcc and friends work.)

Hm, what's wrong with it exactly?

Quote
link=topic=14288.msg260691#msg260691 date=1346002418]
Actually, could the SDK be separated from the ndless tree? It's a lot to download for a Linux user, like me! ;)

True, I'll see what I can do.
Ndless.me with the finest TI-Nspire programs

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #13 on: August 26, 2012, 10:17:09 pm »
Good stuff! :D I do hope though that ExtendeD fixes the trunk to make the old ndless building work... :P
(If you don't know, r632 ish is the only revision that does not have the SDK, and still has the nspire-gcc and friends work.)

Hm, what's wrong with it exactly?
Basically, the bin/ directory disappeared, so I tried to find and use another copy of nspire-gcc within another directory. I only found tools/build/nspire-gcc, so I set my PATH to that, and it failed (for obvious reasons). Building ndless itself failed too!

Interesting enough, I downloaded the latest revision, and got Ndless-SDK/ndless/bin/nspire-gcc, which works! :D Whatever you did, something must've worked! (Though oddly enough, I *don't* see the bin directory on the web repo: https://www.unsads.com/scm/svn/nsptools/Ndless/trunk/Ndless-SDK/ndless/)

Re: the web repo, could you fix the problems with it? It would be great to see the history of a folder/file with a single click instead of going through SVN commands. ;) (For instance, https://www.unsads.com/repos-web/open/log/?base=nsptools&target=/Ndless/trunk/Ndless-SDK/ndless/3rd/nSDL/)

As for the repo separation... I'm foreseeing some difficulty now that I've seen the current structure of the repo. Maybe you could move the Windows only stuff to a branch or different repo, and have linked folder(s) to the ndless one? (Like this: https://github.com/Chronic-Dev/greenpois0n - though now looking at it, that's a Git repo, so I don't know if SVN has such a thing.) That way, you won't have to go through the hassle of maintaining two separate repos. :)

Again, great work! :D An IDE for Ndless development will definitely bring in some activity to the C development community here! ;) I do have a few minor suggestions though:
  • A pretty, yet thorough wizard for getting an emulator set up and ready to go. This would include having the IDE show the user the available emulators, downloading the user's emulator, dumping the needed files, and setting it up. (And in the future, if a community boot1 is created, simply extracting OS files downloaded from TI.)
  • Tutorials using the 3rd party libraries. Those are rather powerful libraries, and most people getting into Nspire development are unlikely to know how to manipulate the screen buffer! ;) They abstract away some of the not-so-nice internal stuff, so it's more dev-friendly. SDL might just be an import from the other tutorials online, with some Nspire-y modifications. SDL might be a bit too much for simple stuff, so...
  • Add nRGBLib to the 3rd party libraries. It's a much simpler library, and would certainly help newcomers get into developing Nspire programs!
  • Clarify that the printf() statement does NOT print to screen, and that something like NspireIO should be used. In fact, maybe it would be best to replace that printf() tutorial with a NspireIO one (using the NspireIO printf() statement)! I know that the wiki does say RS232 is needed, but I feel that not many new devs would know what it is, or even if they did, not realize that the printf() won't show up! If you don't want to take such an extreme change, you could writeup (or I could, if I have time) a NspireIO tutorial (on the wiki), and then link to it saying that this is the way to put text on the screen.
  • Better API documentation + tutorials. Each function could have their own page, with a description, usage, breakdown of usage, and maybe a very well documented example (with a picture, if applicable!).
  • Pictures on the wiki! I'd feel better than looking at code :P
(I apologize in advance if you've already implemented any of these - I haven't tested the SDK on my Windows computer yet! :P)

I know this is a lot to ask for, so I'm certainly willing to help do any of these suggestions when I have time. :) (Just tell me which ones you are too lazy to do :P)
« Last Edit: August 26, 2012, 10:17:45 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: A new graphic SDK for Ndless
« Reply #14 on: August 27, 2012, 06:10:11 am »
Replace nioconsole with nio_console in line 5 ;)
How could I miss that -.- Well everything works fine now :D got Hello World to appear on the screen :P

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