Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 13:39:22 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Compiling C for Nspire -  (Read 1536 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Maizesmagikarp
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 22 March, 2011, 01:49:36
Date Registered: 07 March, 2010, 22:33:20
Location: Hoenn
Posts: 14


Topic starter
Total Post Ratings: +1

View Profile WWW
« on: 10 March, 2010, 01:27:06 »
+1

Hi!

I was wondering how one would compile C source code for the TI-Nspire (Ndless).
As in compile the C into a .TNS.
Any help would be greatly appreciated!

Maize
Logged

Omnomnom!
Author of Encyclopedia Ingenus Lingus: http://lickitung.ath.cx/Encyclopedia_Final.pdf
Administrator of all Lickitung's World entities
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #1 on: 10 March, 2010, 01:30:17 »
-1

Read the Ndless readme!
On Linux, all I had to do was install arm-elf-gcc, binutils (for ARM), and newlib.
On Windows, I think you want to install Yagarto, which is an ARM toolchain for Windows.
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:47:05
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50634


Total Post Ratings: +2637

View Profile WWW
« Reply #2 on: 10 March, 2010, 02:42:23 »
+1

Let's not scare away new members, bwang, but I agree that the readme might have some useful information on what you need. If not, or if it confuses you, feel free to ask more questions (altough I myself may not be able to help, since I don't do C).

Also, what computer OS are you running?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #3 on: 10 March, 2010, 02:50:50 »
0

Sorry if I sounded rude; I really meant "there's useful stuff in the readme but I'm too lazy to type it here". Also, I just realized the document I got the development information from was Ndless-v1.0/src/doc/Dev.txt, which has step-by-step instructions on how to install YAGARTO, as well as various Eclipse plugins if you're into IDEs and such. That should be all you need to get started on Windows.
If you are running Linux, there are a couple posts on UTI that will help you (see, for example, this).
« Last Edit: 10 March, 2010, 02:53:48 by bwang » Logged
Maizesmagikarp
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 22 March, 2011, 01:49:36
Date Registered: 07 March, 2010, 22:33:20
Location: Hoenn
Posts: 14


Topic starter
Total Post Ratings: +1

View Profile WWW
« Reply #4 on: 10 March, 2010, 02:51:54 »
0

FYI, I run Windows.
Thanks!
I'll look into it.
Logged

Omnomnom!
Author of Encyclopedia Ingenus Lingus: http://lickitung.ath.cx/Encyclopedia_Final.pdf
Administrator of all Lickitung's World entities
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 10:47:05
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50634


Total Post Ratings: +2637

View Profile WWW
« Reply #5 on: 10 March, 2010, 02:56:01 »
+1

Will this work on most Windows versions, btw? I mean x64 Seven/Vista, 2000, etc
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #6 on: 10 March, 2010, 03:09:05 »
0

I don't actually know since I'm running Linux, but there's no reason it shouldn't since it doesn't involve drivers or strange hardware.
Logged
BrownyTCat
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 08 May, 2013, 19:20:38
Date Registered: 15 May, 2009, 22:39:36
Location: {(Y+Z)*W+(X+6)+GDB1}
Posts: 420


Total Post Ratings: +19

View Profile
« Reply #7 on: 11 March, 2010, 03:58:46 »
0

 Huh? Yeah I want to compile, but I need to have a compiler, I suck at makefiles.
Logged

bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #8 on: 11 March, 2010, 04:15:34 »
0

Right now, I just use the Makefile that came with Ndless and modify it as necessary.
Logged
BrownyTCat
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 08 May, 2013, 19:20:38
Date Registered: 15 May, 2009, 22:39:36
Location: {(Y+Z)*W+(X+6)+GDB1}
Posts: 420


Total Post Ratings: +19

View Profile
« Reply #9 on: 12 March, 2010, 00:26:18 »
0

Right now, I just use the Makefile that came with Ndless and modify it as necessary.
But how? How do you... Run a makefile and set it up?
I have two files: main.c and utils.h, How do I make them a .tns and/or debug them?
Logged

bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #10 on: 12 March, 2010, 01:54:50 »
0

According to the DEV.txt, just open a MSYS shell in the folder your code is in.
If you edit the original Ndless demo, you can just edit main.c and then run "make" in the src folder. I use Linux, though, so I don't know how MSYS works. Presumably its just a command shell like the Windows DOS prompt.
If MSYS is just a bash shell like the site said it was, these commands will build the demo:

1
2
cd <NSPIRE_DIRECTORY>/src/arm/demo
make
Logged
Tribal
Anti-Riot Squad
LV5 Advanced (Next: 300)
*
Offline Offline

Gender: Male
Last Login: 12 May, 2013, 02:02:17
Date Registered: 02 September, 2008, 22:38:51
Location: $0001
Posts: 237


Total Post Ratings: +13

View Profile
« Reply #11 on: 12 March, 2010, 18:02:20 »
0

Is there considerable difference between Yogarto and the devkitARM toolchain? It would be nice to know if one has any advantages over another.
Logged
bwang
LV7 Elite (Next: 700)
*******
Offline Offline

Last Login: 11 August, 2012, 12:59:06
Date Registered: 20 June, 2009, 01:42:58
Posts: 632

Total Post Ratings: +19

View Profile
« Reply #12 on: 12 March, 2010, 18:12:11 »
0

I'm not sure. It seems both of them are gcc's, though.
Logged
BrownyTCat
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 08 May, 2013, 19:20:38
Date Registered: 15 May, 2009, 22:39:36
Location: {(Y+Z)*W+(X+6)+GDB1}
Posts: 420


Total Post Ratings: +19

View Profile
« Reply #13 on: 13 March, 2010, 02:52:26 »
0

Yeah I edit using Programmer's Notepad 2, the YAGARTO toolchain, and makefiles.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.479 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.