log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Cross compilation
 
  Cross compilation
  sinns (07:40 7/3/2009)
  VincceH (10:23 7/3/2009)
    Phlamethrower (12:55 7/3/2009)
      sinns (20:24 9/3/2009)
        ksattic (22:26 14/3/2009)
          sinns (13:19 20/3/2009)
 
Simon Inns Message #109500, posted by sinns at 07:40, 7/3/2009
Member
Posts: 73
Continuing my quest to do more programming on my RISC PC... Does any one know any good guides to cross-compiling for RISC OS using Linux or would be willing to give some guidance?

(Why? Because my Linux machine is dual-screen and it would greatly help if I could have the documentation for the various libraries and the code on-screen at the same time whilst I learn)

I have a working GCC installation on Linux and I have downloaded and compiled the GCCSDK, but the instructions really only cover compilation of the GCCSDK and tools. I want to build my growing 3D application (which is C++) in Eclipse/GCC and then Samba the !RunImage over to the RISC PC.

For starters all I want is to build a simple !HelloWorld on Linux targeted for the StrongARM.

Any help or advice would be appreciated.

(My environment: Ubuntu 8.10/GCC/Eclipse 3.4.2 - RISC PC 900/RISC OS 4.39/StrongARM T)
  ^[ Log in to reply ]
 
VinceH Message #109501, posted by VincceH at 10:23, 7/3/2009, in reply to message #109500
VincceH
Lowering the tone since the dawn of time

Posts: 1600
Does any one know any good guides to cross-compiling for RISC OS using Linux or would be willing to give some guidance?
I don't know if there is one but, if there is, the most likely site to find such a thing would be on the riscos.info wiki
  ^[ Log in to reply ]
 
Jeffrey Lee Message #109504, posted by Phlamethrower at 12:55, 7/3/2009, in reply to message #109501
PhlamethrowerHot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff

Posts: 15100
The information you want is hidden away in the readme file (which itself is in the gcc4 folder in the gccsdk source).

Using the cross-compiler
------------------------

The cross-compiler can be used on its own. The recommended way is to
define the environment variable GCCSDK_INSTALL_CROSSBIN.
$ export GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin

Add add this environment value to your PATH.
$ PATH=$GCCSDK_INSTALL_CROSSBIN:$PATH

Then use it as you would the GCC compiler normally.

GCCSDK_INSTALL_CROSSBIN is sometimes also used explicitly to access the
GCCSDK cross-compiler.
  ^[ Log in to reply ]
 
Simon Inns Message #109517, posted by sinns at 20:24, 9/3/2009, in reply to message #109504
Member
Posts: 73
Thanks! I will try it out.
  ^[ Log in to reply ]
 
Simon Wilson Message #109544, posted by ksattic at 22:26, 14/3/2009, in reply to message #109517
ksattic
Finally, an avatar!

Posts: 1291
I'd be interested to hear if you have any luck with the autobuilder (if you use it). I have tried it many times over the past and spent many hours on a 32 bit Intel Mac, 32 bit Ubuntu 7.04 PC and now a 64 bit Ubuntu 8.10 PC. The autobuilder always fails somewhere, and I'm never able to get anyone to tell me why exactly it doesn't work.
  ^[ Log in to reply ]
 
Simon Inns Message #109584, posted by sinns at 13:19, 20/3/2009, in reply to message #109544
Member
Posts: 73
I ran it on Ubuntu 8.10 desktop... after installing all the libraries and apps it asked for it ran flawlessly...

Don't know if I did anything special, but it seemed trouble-free for me. I haven't moved any of the resulting files over to the Archie yet to test them though.

/Simon
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Cross compilation