AmigaOS development on Linux (Help!)

This forum is for general developer support questions.
Post Reply
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

AmigaOS development on Linux (Help!)

Post by mechanic »

Greetings,

I just came into possession of a laptop. My very first, for free!

It's a Dell inspiron 1525. I installed LinuxMint 13 and was wondering if it will be possible to get a working build environment for AOS4. It uses Eclipse 3.7.1-1 as its default IDE with CDT 8.0.2-1 plugin.

I have no idea how to set it up for Amiga and thought I would ask first. Any help is appreciated.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
abalaban
Beta Tester
Beta Tester
Posts: 456
Joined: Mon Dec 20, 2010 2:09 pm
Location: France
Contact:

Re: AmigaOS development on Linux (Help!)

Post by abalaban »

You should find almost everything necessary to setup a cross compilation environment on Zero Hero's homepage...
AmigaOne X1000 running AOS 4 beta
AmigaOne XE/G4
Amiga 1200/PPC 603e + BVision PPC
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

Re: AmigaOS development on Linux (Help!)

Post by mechanic »

@ abalaban

That works.

Thanks for the info. :)
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

Re: AmigaOS development on Linux (Help!)

Post by mechanic »

Hm,

I re-installed everything twice now and can only build C stuff, nothing AmigaOS specific. For example ReAction related.

Did I miss something :?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
AmigaDave
Posts: 145
Joined: Wed Jan 04, 2012 3:31 am
Location: Lake Shastina, California, USA

Re: AmigaOS development on Linux (Help!)

Post by AmigaDave »

mechanic wrote:Hm,

I re-installed everything twice now and can only build C stuff, nothing AmigaOS specific. For example ReAction related.

Did I miss something :?
I guess you mean building on the laptop and then trying to run it on your AmigaOS3.x, or 4.x computer(s)?

Your missing the Amiga specific header files and includes for ReAction?

Edit: Sorry, I am just beginning to learn "C", so I should not comment in this thread.
Proud owner of 10+ Commodore Amiga 680x0 computers
First Contact AmigaOne X1000 Dual Core 1.8GHz PA6T w/OS4.1FE
Dual 2.7GHz G5 PowerMac w/MorphOS3.7
1.5GHz G4 PMac MDD w/MorphOS3.7
1.5GHz G4 MacMini w/MorphOS3.7
17" 1.67GHz G4 PBooks w/MorphOS3.7
Efika 5200b w/MorphOS3.7
FPGA Arcade Replay w/AmigaOS3.x
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

Re: AmigaOS development on Linux (Help!)

Post by mechanic »

AmigaDave wrote:
Your missing the Amiga specific header files and includes for ReAction?

Edit: Sorry, I am just beginning to learn "C", so I should not comment in this thread.
Same here.

It was a silly error on my part. All sorted out on amigans net in a thread with same title. I hope to get some play time today to see if everything works. I only tried one of the example ReAction progs and it worked fine on the X1000. :D
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

Re: AmigaOS development on Linux (Help!)

Post by mechanic »

Now that I have a working environment for Amiga programming on Linux
I am wondering if it is possible to install the whole thing in the user
directory instead of /usr/local ?

I know the build configuration calls for /usr/local, but what else would
need change to move it all to /home/user/ ?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
Hans-Joerg Frieden
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 223
Joined: Wed Dec 08, 2010 3:52 pm

Re: AmigaOS development on Linux (Help!)

Post by Hans-Joerg Frieden »

mechanic wrote:I know the build configuration calls for /usr/local, but what else would
need change to move it all to /home/user/ ?
The question would be, why would you want to?

AFAIR, you need to rebuild the compiler and tools yourself if you want to move it. The tools use a prefix specified during compile time, and I don't think there is any way to relocate them without recompilation.
Alternatively, you could use a soft link, I don't know what you want to achieve exactly.
NOTICE: If you want to contact me, use E-Mail. I cannot be contacted via the forum/private messages anymore
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: AmigaOS development on Linux (Help!)

Post by marcus »

Actually, gcc is pretty good at detecting that it has been moved from the predefined location and adapting accordingly. I think the only problems are these declarations from the specs file:

Code: Select all

*base_gcc:
/usr/local/amiga/

*base_sdk:
/usr/local/amiga/ppc-amigaos/SDK/
These are used to setup various lib and include paths (for the SDK, as well as clib2/newlib), so they need to be overridden with the new location. But that should just be a question of dropping in a custom specs file (use 'ppc-amigaos-gcc -dumpspecs', edit the paths, and you have an updated specs file).
Post Reply