Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
77 user(s) are online (43 user(s) are browsing Forums)

Members: 1
Guests: 76

Mlehto, more...

Headlines

 
  Register To Post  

AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
AmigaOS 4 development on Linux.

I have been attempting to setup a AmigaOS development environment on X86 Linux.

I can get it to compile C progs for Amiga, but none that require Amiga specific stuff like ReAction windows. Yes, I have the SDK installed, links made, export path, etc..

Does anybody have a working cross-compile setup on Linux?

A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Home away from home
Home away from home


See User information
http://cross.zerohero.se/os4.html

I used to have working cross compiler setup using cygwin.

do you find the header files, when you compile?

#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/intuition.h>

int main()
{

}


Normally you can compile whit -lauto -lraauto flas, but don't know if that works whit a cross compiler, if not you will need to OpenLibrarie's and OpenClass's manually.

Don't forget -D__USE_INLINE__ saves you alot of truble in the long run, the -lauto stuff should not be used anyway.

Do you get any errors?

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: AmigaOS 4 development on Linux.
Amigans Defender
Amigans Defender


See User information
Note that raauto is obsolete and no longer required.

ExecSG Team Lead
Go to top
Re: AmigaOS 4 development on Linux.
Home away from home
Home away from home


See User information
@ssolie
What about removing -lauto totally from next SDK ? If it obsolete and should be not used, then there should be no place in SDK for it at all to avoid any confusion.

@mechanic
Quote:

Does anybody have a working cross-compile setup on Linux?


I use crosscompiler on my winxp/cygwin all the time. All you need its follow zerohero's install instructions. If you will have after that any questions, just ask.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
Quote:

LiveForIt wrote:

do you find the header files, when you compile?

#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/intuition.h>

int main()
{

}


Normally you can compile whit -lauto -lraauto flas, but don't know if that works whit a cross compiler, if not you will need to OpenLibrarie's and OpenClass's manually.

Do you get any errors?


Yes. No header files.

The problem is the compile process is not finding the /SDK.
It will build Amiga compatible C routines.

I have followed zerohero's instructions (several times). It will build 'Hello world', but no ReAction stuff. It reports something like 'reaction.h no such file or directory'.

I do not have any windows computers, so no cygwin.

I wonder if I could add some kind of #include statement to the programs to find the /SDK directory? Any hints?

Too early, I need more coffee.

Thanks Guys.

A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Quite a regular
Quite a regular


See User information
It's #include only inside source files, for gcc -I instead... you said correctly that this is set per program, so use -I flag.

Go to top
Re: AmigaOS 4 development on Linux.
Home away from home
Home away from home


See User information
@Kas1e

Read more carefully He (ssolie) said "raauto" not "auto" the code from libraauto.a has been merged with libauto.a for sometime now. (since OS4 itself?)

it exists only as a stub in newlib and clib for backwards compatabilty, similar to libm.a and libsocket.a in the newlib libs which are also stubs for code that is elsewhere.


Go to top
Re: AmigaOS 4 development on Linux.
Home away from home
Home away from home


See User information
@broadblues
Quote:

Read more carefully He (ssolie) said "raauto" not "auto" the code from libraauto.a has been merged with libauto.a for sometime now. (since OS4 itself?)


Blah, i already make a BZ for :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmigaOS 4 development on Linux.
Just can't stay away
Just can't stay away


See User information
@mechanic

You claim to have followed the instructions but it certainly sounds like you missed at least one of the steps.

Some questions:

1. Do you have the SDK directory in "/usr/local/amiga/ppc-amigaos/"?

2. Do you have the OS includes installed in "/usr/local/amiga/ppc-amigaos/SDK/include/include_h"?

3. Have you created a soft link from "/SDK" to /usr/local/amiga/ppc-amigaos/SDK?
ln -s /usr/local/amiga/ppc-amigaos/SDK /SDK

Note also that the case of file/directory names is important on linux because linux file-systems are case-sensitive.

Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
Yes, to all questions.

If I do the following it finds the needed files, but ......thats crazy.

#include </SDK/Include/include_h/exec/types.h>
#include </SDK/Include/include_h/dos/dos.h>
#include </SDK/Include/include_h/classes/window.h>
#include </SDK/Include/include_h/gadgets/button.h>

I have tried making various links in various places without luck.
I also imagine this is only the first of several problems.

P.S. If I seem rather thick headed for some of what you guys are talking about,,
it is because I am.

A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Quite a regular
Quite a regular


See User information
Just a dumb question: how are you compiling? I.e. what is the command line you are using?

Back to a quiet home... At last
Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
ppc-amigaos-gcc test.c -o test

Also with various switches like -lauto.

Got an Idea? I'll try it.

these are the type of errors I get;

/SDK/Include/include_h/classes/window.h:18:31: error: reaction/reaction.h: No such file or directory


Edited by mechanic on 2012/9/13 16:53:46
A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Just can't stay away
Just can't stay away


See User information
Quote:

#include </SDK/Include/include_h/exec/types.h>
#include </SDK/Include/include_h/dos/dos.h>
#include </SDK/Include/include_h/classes/window.h>
#include </SDK/Include/include_h/gadgets/button.h>


The path to the OS includes should be "/SDK/include/include_h" (lower case "i" in "include" directory name) as stated in the instructions here and not "/SDK/Include/include_h". As I said before case matters because linux filesystems are case sensitive.

Go to top
Re: AmigaOS 4 development on Linux.
Quite a regular
Quite a regular


See User information
@mechanic

I was suspecting you weren't using the right command-line (which would have explained why it would not find the includes unless you were explicitly state absolute path to them)...

Back to a quiet home... At last
Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
Quote:

salass00 wrote:
Quote:

#include </SDK/Include/include_h/exec/types.h>
#include </SDK/Include/include_h/dos/dos.h>
#include </SDK/Include/include_h/classes/window.h>
#include </SDK/Include/include_h/gadgets/button.h>


The path to the OS includes should be "/SDK/include/include_h" (lower case "i" in "include" directory name) as stated in the instructions


Yes I do understand about cAsE. But, that (above) works.
This, below, does not work.

#include <dos/dos.h>
#include <classes/window.h>
#include <gadgets/button.h>
#include <gadgets/layout.h>

and to have a path to every file/function in the SDK listed in the source code is simply not going to be any fun at all.

I will change the 'Include' to 'include' and be back.

A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Just can't stay away
Just can't stay away


See User information
@mechanic

Obviously I wasn't clear enough. You need to **rename** the **directory** "/SDK/Include" to "/SDK/include" otherwise the cross-compiler won't find the files unless you specify the path manually when compiling using "-I/SDK/Include/include_h".

Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
Told you I was thick headed. I'll be back.

A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
Quote:

salass00 wrote:
@mechanic

Obviously I wasn't clear enough. You need to **rename** the **directory** "/SDK/Include" to "/SDK/include".....


Stupid, stupid, stupid..........

'make a directory called SDK there, case is important.'

So I made sure sdk was SDK. Then stopped right there.

I guess I really am one of those people that needs everything
driven into my head with a heavy hammer.

Changed SDK/Include to SDK/include and AOK.

I use ppc-amigaos-gcc test.c -o test -lauto and so far so good.

Thank you, thank you, thank you.

A1-X1000
Go to top
Re: AmigaOS 4 development on Linux.
Not too shy to talk
Not too shy to talk


See User information
@mechanic

don't be so hard on yourself mech! :)

Go to top
Re: AmigaOS 4 development on Linux.
Just popping in
Just popping in


See User information
Quote:

Vulture wrote:
@mechanic

don't be so hard on yourself mech! :)


I usually leave that up to the wife, but this was another of those instances where you do something silly and look around wondering if somebody seen you do it. Like the time I stepped off my bike without putting the side stand down. DOH!

A1-X1000
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project