Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - apcalc

Pages: 1 ... 90 91 [92] 93 94 ... 96
1366
News / Re: 2010 ACT-SO National Gold Medalist in Computer Science
« on: July 12, 2010, 09:12:11 pm »
Congrats on winning!!!

1367
tiDE / Re: tiDE
« on: July 11, 2010, 11:24:59 am »
This project sounds great! I hope it does not get deleted. :(

1368
TI Z80 / Re: The Legend of Zelda
« on: July 10, 2010, 04:46:59 pm »
That looks very nice!  Great job with them! :)

1369
TI-Nspire / Re: Nspire bmp viewer
« on: July 10, 2010, 04:45:57 pm »
I think I missed this when it was originally posted.  I just tried this out and it works nicely! :) Great job!

1370
Art / Re: Sprite request for Nostalgia
« on: July 10, 2010, 04:44:01 pm »
The second one looks best! :D

1371
TI-Nspire / Re: Virus to crack RSA for nspire? :P
« on: July 10, 2010, 04:42:40 pm »
hey, on a side note, think of how famous the ti-community would be if we factored ANY 2048 bit key, not specifically the nspire's. so, ponder this: if you multiply two 2048 bit keys together, and try to factor that, you now have to locate one of 4 possible prime numbers in a field that is no larger than if you were factoring a single key alone. you've just doubled your chances, which halves the amount of time it takes to do it! with 4 keys together, you could factor one of them in 1/4 the time!!!! actually, its a little longer than that because you're working with a bigger number, but still!!!! ok, so we won't be able to factor the specific key we want, necessarily, but we'll still be famous for being the first people to factor a 2048 bit RSA key!!!

I think the community would become famous if we did just crack the 1024 bit key.  Has this ever been done before?  The community even got some publicity with the 512 bit keys!

1372
TI-Nspire C Development Set Up For Ndless Version 1.7

Many people on this website, including myself, have had questions/problems on setting up a C development environment for the TI-Nspire. Because of this, I thought I would write this tutorial to clearly describe the steps to set up a development environment, compile a file, and describe some of the common errors when compiling.

Setting up a Windows C development environment

Two programs are needed for a Windows C development environment:  MSYS, and the YAGARTO toolchain.  You will also need a copy of Ndless for some tools needed to compile.

First, you must install MSYS, which is, according to its website "MSYS, a contraction of "Minimal SYStem", is a Bourne Shell command line interpreter system. Offered as an alternative to Microsoft's cmd.exe, this provides a general purpose command line environment, which is particularly suited to use with MinGW, for porting of many Open Source applications to the MS-Windows platform; it includes a small selection of Unix tools, chosen to facilitate that objective, and using it is a necessary prerequisite for building mingwPORTs."  Here is the link to install MSYS.

http://sourceforge.net/projects/mingw/files/MSYS/BaseSystem/msys-core/msys-1.0.11/MSYS-1.0.11.exe/download

Then, you must install YAGARTO, which is a GNU ARM toolchain for Windows.  When you install, make sure the box "Add YAGARTO's to your PATH variable" is checked.  Here is the link.

http://sourceforge.net/projects/yagarto/

Finally, you have to add the Ndless /sdk/bin Directory to your path variable.  If you are running Windows Vista or Windows 7, you can add to the Path variable by press the "Windows" key.  Then, type Path in the search field and choose option two, "Edit the system environment variables".  A dialog box should open up; click "Environment Variables" near the bottom of the dialog box.  A new dialog box should pop up; in the second field, navigate to the "Path" variable and click "edit", then add the Ndless /sdk/bin directory to the end of the list.

To confirm that you have successfully added to the path variable, open the command prompt and type:

Code: [Select]
echo %path%

It should be at the end of the list.

You now have all of the components needed for a C development environment for Windows.  In the next section, I will explain how to compile a file.

Compiling a file

For this example, we will compile the Ndless demo.  First, it is probably best to start with a fresh copy of Ndless, which can be downloaded from the following link.  After you download, unzip the file and remember the file directory to the folder.  You will need this soon.

http://www.ticalc.org/archives/files/fileinfo/426/42626.html

Now, open MSYS and set the current directory to the folder in Ndless that contains the Ndless demo.  Do this by typing "cd <Place Ndless folder path here>/src/samples/particles.  Now type "make".  The Ndless demo should have successfully compiled! You should have received the message:

Code: [Select]
$ make
nspire-gcc -Os -Wall -W -c main.c
nspire-gcc -Os -Wall -W -c utils.c
nspire-gcc -Os -Wall -W -c vector.c
nspire-gcc -Os -Wall -W -c particle.c
nspire-gcc -Os -Wall -W -c particle_system.c
nspire-gcc -Os -Wall -W -c gravity_particles.c
nspire-ld  main.o utils.o vector.o particle.o particle_system.o gravity_particles.o -o particles.elf
arm-none-eabi-objcopy -O binary particles.elf ../../calcbin/samples/particles.tns

If you received this message, or something close to it, you are now ready to start developing in C for the Nspire!  The easiest way to do so is simply to edit the "main.c" file.  Look in the files "common.h", "utils.h", and "os.h" to find commands you can use.  Likewise, there are several functions in the Nspire libraries, which are documented at hackspire.  Also, there are some very useful header files in the tread "Post your Nspire routines here" here at Omnimaga.  If you did not receive this message shown above, you probably received an error message.  In the next section, I will list common error messages and methods to fix them.

Common Error Messages

If you are getting an error message about a file not being found (such as MakeTNS.exe, FlashEdit.exe, nsprie-gcc), make sure you added the bin/ of Ndless to your path variable.  Check this by opening a command prompt window and typing:

Code: [Select]
echo %PATH%

Note:  If you are attempting to build Ndless and you are getting errors, please ensure that the following directories are in your path:
1. MSYS /bin
2. MinGW /bin
3. Ndless Root /bin (created by "make" in the tools directory of Ndless)
4. 7zip Root
5. YAGARTO /bin

If the Ndless /sdk/bin/ directory is not listed in the %PATH% list, follow the procedure above to add it.

If your error message is not listed here, or you have any other questions about the instillation process, feel free to post a reply below and I will try to edit this post and add new error messages here. Thank you!  Good luck developing!

Also, If you do not like using notepad/wordpad to type your code in a text editor with colorized syntax, you can use different text editors such as gedit, Programmers Notepad 2, and Notepad++, all of which have syntax highlighting for C code.

In addition, you can also use the Eclipse C/C++ IDE for developing Ndless programs.  More information on setting up this IDE, and linking it with the GDB Debugging support incorporated into the TI-Nspire Emulator Ncubate can be found in this video on YouTube:


1373
Introduce Yourself! / Finally introducing myself!
« on: July 09, 2010, 10:39:18 pm »
Hi!  I have been at this forum for a little while already, but I though that I would formally introduce myself.

I have been into calcs for about nine months now.  I got into calcs when I got my TI-89 last year.  My first experience with programming was manually typing in the code to a short TI-BASIC program to another TI-89.  I had to figure out how the program worked and I was soon writing simple math programs in TI-BASIC.  I later got a TI-Nspire because my state tests do not allow the usage of a CAS, so I also started programming that in BASIC.

Recentally, I have been teaching myself C for the 89 and Nspire recentally.  I am still learning, but I still have several more years of calculator usage ahead of me so I hope to be able to eventunally be able to develop quality games.  I don't know too much yet, but I am learning quickly and I have made some decent games despite my lack of complete knowledge of the language.

I have two or three more years of calculator usage ahead of me, and I will try to stay here longer even if I stop programming.  I have enjoyed my experience here at omnimaga for the short time I have been here and I hope to have even more enjoyable moments!

1374
TI Z80 / Re: The Legend of Zelda
« on: July 09, 2010, 08:51:03 pm »
That looks nice!

1375
And if we're really going to break 2006, we really do have a chance of passing 40K this year (I think). ticalc.org should put up a news article for that ... Omni breaks all records! (Guinness, anyone?)

I think we will pass 40K this year.  The summer will definately be slower, but I think activity will pick up significantly when the school year starts with new members asking questions about Ndless, Axe, and all of the other projects here!

1376
TI Z80 / Re: Geometry Wars Update
« on: July 08, 2010, 10:58:11 pm »
This game looks great! Great job!! :D

1377
Introduce Yourself! / Re: Hello Omnimaga !
« on: July 08, 2010, 08:08:36 pm »
Welcome!!

1378
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: July 08, 2010, 08:07:19 pm »
411. People think you are strange because you carry more than one calculator at all times in school.
412. You get a lock for your gym locker to protect against anyone who would steal your calculators.

1379
TI Z80 / Re: The Impossible Game
« on: July 08, 2010, 07:57:07 pm »
This game looks better every time I see it!  You did a great job! :)

1380
I was just reading through staples weekly add for next week and I came across the coupon that will be in next weeks ad for 20% off any Texas Instruments Graphing calculators.  It only shows an 84+ SE in the picture, but I would assume it is for all calcs.  Also, I am in the United States, so I am not sure if this will apply to other countries.  Here is a link to staples online ad.  You have to click "Upcomming weekly ad" in the upper left and the coupon is on page 3!

http://weeklyad.staples.com/staples/default.aspx?action=entryflash&adref=%20staples_right_hand_nav&cm_sp=marketing-_-Weekly%20ad%20header-_-weekly%20ad%20header

Pages: 1 ... 90 91 [92] 93 94 ... 96