Welcome, Guest. Please login or register.

Author Topic: Starting Development in AROS  (Read 1913 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Starting Development in AROS
« on: January 09, 2005, 12:24:02 PM »
If you don't want to integrate your code into the AROS CVS (yet), all you need to do is set up a crosscompiler. In order to do that you can compile AROS itself, in which case the crosscompiler (a fake one, but which does the right job) is automatically set up for you under the

Code: [Select]

bin/linux-i386/tools/i386-linux/


directory, within the toplevel AROS source dir.

There you'll find i386-aros-gcc, i386-aros-ld and so on which you can use to make your own programs runnable under AROS.

Hope that helps.


 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Starting Development in AROS
« Reply #1 on: January 09, 2005, 12:33:08 PM »
Quote

Ranchu wrote:
I don't want to start work on AROS itself at this point, so I have no need for access to their CVS.

I'm need to set up the development environment so that I can write utilities for AROS.


Yes, and what I told you applies perfectly well to your case: you said you aready have the AROS sources, so the fastest way for you to get ready is to compile those sources and get the (fake) crosscompiler from where I told you.

Alternatively, you can download the linux binary from the download page, and from there also download the SDK package. You'll unpack the SDK package somewhere, run the installation script in it and it will automatically set up for you the (fake) crosscompiler.
 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Starting Development in AROS
« Reply #2 on: January 10, 2005, 12:07:59 PM »
Quote

Any ideas?


Yup, I forgot to add the -static flag to the line where the real gcc is invoked. I fixed this in the CVS, so tonight's build should be fine, but you can simply open the i386-aros-gcc file and add -static at the end of the command line it contains. Tell me if that works.
 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Starting Development in AROS
« Reply #3 on: January 11, 2005, 06:20:22 PM »
Quote

However I'm now having a problem compiling the Zune "Hello World" example from AROS' website. The error I get is:

There are undefined symbols in 'hello':
U MUI_MakeObject
U MUI_NewObject


That's because those functions are in the libmui.a library, so you need to append -lmui at the end of the command line which you use to produce the executable. If this is not mentioned in the example, then there's a bug in the documentation.

However, you could avoid linking with that library if you do this

Code: [Select]

    #define MUIMASTER_YES_INLINE_STDARG


before including any header file related to Zune/MUI.
 

Offline falemagn

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 269
    • Show all replies
    • http://www.aros.org/
Re: Starting Development in AROS
« Reply #4 on: January 12, 2005, 05:52:36 PM »
Quote

Thanks again falemagn, I'm starting to think you know this stuff


Well, I better do, as I'm one of the AROS developers ;-)

Quote

I'm not very familiar with the AmigaOS API (most of my programming has been in Windows and Linux). What would you recommend as a resource? I was thinking of buying a copy of the Amiga Development CD.


That's certainly a good idea, yes.