| Author |
Message |
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 04 Aug 2012 12:28:56 pm Post subject: Prizm C and Lua |
|
|
I just got my prizm today for $99 which is what the TI-84+SE Was so I guess I got a nice deal. I know there is a section on prizm SDK and things, but can someone point me in the correct directness to it? As in where should I start first?
Thanks in advance. _________________
 |
|
| Back to top |
|
|
Tari

Systems Integrator

Joined: 03 Jul 2006 Posts: 2107 Location: Always-winter, Michigan
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 05 Aug 2012 11:17:35 pm Post subject: |
|
|
Yup, I'd recommend that that be your first stop if you want to do C programming on the Prizm. As you may have read in some of the other threads, we don't yet have a Lua interpreter for the Prizm, but if you want to start learning the language in general, we should have one soon. _________________
 |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 05 Aug 2012 11:19:22 pm Post subject: |
|
|
I'm learning Lua on my iPad through "Coders" it has interpreter AND drawing functions fir animations and games _________________
 |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 06 Aug 2012 09:26:38 am Post subject: |
|
|
Here's the error I get!
makefile:20: warning: overriding commands for target '.My'
makefile:17: warning: ignoring old commands for target '.My'
make: Circular .My <- .My dependency dropped.
make: *** No rule to make target 'My', needed by 'project(test).bin stop. _________________
 |
|
| Back to top |
|
|
Ashbad

... I think redheaded girls are kind of cool

Joined: 01 Dec 2010 Posts: 2417 Location: Stomp Stomp Stomp, The Idiot Convention
|
Posted: 06 Aug 2012 09:30:13 am Post subject: |
|
|
| The_Coded wrote: | | I'm learning Lua on my iPad through "Coders" it has interpreter AND drawing functions fir animations and games |
Nice idea for experience's and learning's sakes, but heads up, there's no Lua support on the prizm yet -- because there are no interpreters compiled for it (yet).
| The_Coded wrote: | Here's the error I get!
makefile:20: warning: overriding commands for target '.My'
makefile:17: warning: ignoring old commands for target '.My'
make: Circular .My <- .My dependency dropped.
make: *** No rule to make target 'My', needed by 'project(test).bin stop. |
Would you mind pastebinning your Makefile, and your code as well? _________________ -Ashbad |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 06 Aug 2012 09:34:23 am Post subject: |
|
|
Pastebinning? I'm not sure how to do that, you mean add it as an attachment? _________________
 |
|
| Back to top |
|
|
Ashbad

... I think redheaded girls are kind of cool

Joined: 01 Dec 2010 Posts: 2417 Location: Stomp Stomp Stomp, The Idiot Convention
|
Posted: 06 Aug 2012 09:36:45 am Post subject: |
|
|
| The_Coded wrote: | | Pastebinning? I'm not sure how to do that, you mean add it as an attachment? |
Copy both the code, and the makefile's contents here (one at a time) and give us the links to the pastes it creates.
(EDIT: rafb.me is superior, changed link) _________________ -Ashbad |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
|
| Back to top |
|
|
Ashbad

... I think redheaded girls are kind of cool

Joined: 01 Dec 2010 Posts: 2417 Location: Stomp Stomp Stomp, The Idiot Convention
|
Posted: 06 Aug 2012 09:46:39 am Post subject: |
|
|
link one, corrected:
Code: #include <display.h>
#include <display_syscalls.h>
#include <keyboard_syscals.h>
#include <keyboard.hpp>
#include <color.h>
int main()
{
PrintXY(0,1," Hello World!", TEXT_MODE_NORMAL, TEXT_COLOR_RED);
int key; // you always need semicolons
while(1) GetKey(&key); // Loop forever
return 0;
}
Link two:
Code: BIN=$(OUTDIR)My_Project(Test).bin #don't use spaces in names in the makefile, unless you put it in quotes
So, either add quotes around the "My_Project(Test).bin" part, or add an underscore. _________________ -Ashbad |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 06 Aug 2012 09:52:11 am Post subject: |
|
|
Thanks, I can't believe I forgot the underscore and semicolons. even in BASIC the underscore rule applies..-_- it's still saying there's no rule to make the file though. _________________
 |
|
| Back to top |
|
|
Ashbad

... I think redheaded girls are kind of cool

Joined: 01 Dec 2010 Posts: 2417 Location: Stomp Stomp Stomp, The Idiot Convention
|
Posted: 06 Aug 2012 09:56:16 am Post subject: |
|
|
I just noticed on line 8:
Code: CSOURCES=My Project(Test).c
Didn't see it the first time around. You'll have to fix that the same way as you did the other one. _________________ -Ashbad |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 06 Aug 2012 10:01:10 am Post subject: |
|
|
Thanks, I edited that and another one I found without the _ but now it says no rule to make 'my_project(test).o' _________________
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 06 Aug 2012 01:01:39 pm Post subject: |
|
|
Would it be an unacceptable hardship to call everything "myproj_test.*" instead of the dual challenges of parsing spaces and parentheses? I suspect that will greatly reduce the number of issues you need to wrestle with. _________________
 |
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 06 Aug 2012 01:04:27 pm Post subject: |
|
|
that's fair, I was just following the tutorial, and named it Hello_World.c..alright so to break it down..do I name the file myproj_test.* or .c..and then change all the make file names to said project name? _________________
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 06 Aug 2012 03:47:08 pm Post subject: |
|
|
| The_Coded wrote: | | that's fair, I was just following the tutorial, and named it Hello_World.c..alright so to break it down..do I name the file myproj_test.* or .c..and then change all the make file names to said project name? | * is a wildcard, which means it matches anything. When I say that, it's shorthand for "change all of the files to things like myproj_test.c, myproj_test.bin, etc". _________________
 |
|
| Back to top |
|
|
AHelper

LONG LIVE COMICTECH

Joined: 30 Jan 2011 Posts: 1658 Location: Aufhelperstan, Utopian Republic
|
Posted: 06 Aug 2012 03:50:55 pm Post subject: |
|
|
| Ashbad wrote: | link one, corrected:
Code: #include <display.h>
#include <display_syscalls.h>
#include <keyboard_syscals.h>
#include <keyboard.hpp>
#include <color.h>
int main()
{
PrintXY(0,1," Hello World!", TEXT_MODE_NORMAL, TEXT_COLOR_RED);
int key; // you always need semicolons
while(1) GetKey(&key); // Loop forever
return 0;
}
|
That should be
Code: PrintXY(1,1," Hello World!", TEXT_MODE_NORMAL, TEXT_COLOR_RED); Origin is 1,1. _________________ °ᴥ° Get Lucky
<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol." |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
|
| Back to top |
|
|
The_Coded
Advanced Member

Joined: 30 Jul 2012 Posts: 205
|
Posted: 06 Aug 2012 09:53:36 pm Post subject: |
|
|
It's still not working _________________
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Aug 2012 07:55:45 am Post subject: |
|
|
| The_Coded wrote: | | It's still not working | Please oh please be more specific than that. I understand you're probably frustrated with the process, but we can help you most easily if we know exactly what's not working. _________________
 |
|
| Back to top |
|
|
|