CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 113 users online: 5 members, 77 guests and 31 bots.
Members: gudenau, ordelore, tifreak8x.
Bots: VoilaBot (1), MSN/Bing (1), Magpie Crawler (3), VoilaBot (5), Googlebot (19), MSN/Bing (2).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
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

Posted: 04 Aug 2012 12:47:11 pm    Post subject:

Wiki wiki wiki.
_________________


Ask questions the smart way · タリ
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:

Tari wrote:
Wiki wiki wiki.
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. Wink

(EDIT: rafb.me is superior, changed link)
_________________
-Ashbad
Back to top
The_Coded


Advanced Member


Joined: 30 Jul 2012
Posts: 205

Posted: 06 Aug 2012 09:43:30 am    Post subject:

[/url] http://www.rafb.me/results/cdRb2m53.html

URL: http://www.rafb.me/results/nZ0uCc79.html

URL: http://www.rafb.me/results/GRnouV42.html

I'm pretty sure I didn't do something right in the code, probably didn't remove the things I should but I didn't want to do anything the tut didn't advise me to do
_________________
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

Posted: 06 Aug 2012 05:28:22 pm    Post subject:

This is a tiny nitpick, but I would usually write that as:
Code:
PrintXY(1,1,"XXHello World!", TEXT_MODE_NORMAL, TEXT_COLOR_RED);
Because of an unknown features of PrintXY(), the first two characters of any string are ignored, so you need to add two junk characters before anything you display. I use "XX" instead of " " because they're more obvious when glancing through the code.
_________________


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. Smile 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
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Page 1 of 2 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.042600 seconds.