English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 17 April 2021, 12:25   #21
dlsa
Registered User
 
Join Date: Feb 2021
Location: Portugal
Posts: 40
Hi,
If I were to do some Intuition based software that used some of the amiga libraries, how would the development procedure go as to cross compilation ? The host where I do the cross compile does not have the amiga libraries. How could I do it ? And I would have to have a development cycle of : write code -> cross compile -> copy to amiga -> test. Right ?
Thanks,
Regards
dlsa is offline  
Old 17 April 2021, 14:16   #22
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by dlsa View Post
If I were to do some Intuition based software that used some of the amiga libraries, how would the development procedure go as to cross compilation ?
Not much different than compiling on your Amiga.

Quote:
The host where I do the cross compile does not have the amiga libraries.
What do you mean by "libraries"? The linker libraries should be there. The AmigaOS shared libraries (xyz.library) are not needed. The compiler either calls library functions via stub routines in the linker library or by compiler-specific inline-calls (defined in header files which come with the compiler).

Quote:
How could I do it ?
Make sure the 68k-backend of your cross compiler has the appropriate AmigaOS startup-code, linker libraries and OS header files installed. That's all you need.

Quote:
And I would have to have a development cycle of : write code -> cross compile -> copy to amiga -> test. Right ?
Or use an emulator on your cross-compilation host for some quick tests.
phx is offline  
Old 17 April 2021, 15:08   #23
dlsa
Registered User
 
Join Date: Feb 2021
Location: Portugal
Posts: 40
What do you mean by 'libraries' ? Statically linked libs ? Where do I get those ? are they in the NDK3.9 ?
dlsa is offline  
Old 17 April 2021, 20:51   #24
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by dlsa View Post
What do you mean by 'libraries' ?
Linker libraries.

Quote:
Statically linked libs ?
For AmigaOS you will always link statically (except for OS4.x in some cases).

Quote:
Where do I get those ? are they in the NDK3.9 ?
Yes. The NDK usually provides amiga.lib and debug.lib. Although most Amiga compilers provide their own amiga.lib, which you should prefer.
phx is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing a level editor for your own game sparhawk support.Other 6 28 April 2020 17:31
Double barrel Amiga Future article series: Demoscene + Developing Demo Effects Photon News 3 29 December 2015 23:04
Dave Haynie Talks About Developing The Commodore Amiga pandy71 Nostalgia & memories 2 23 April 2014 20:38
First doubts for game developing nandius_c Coders. Asm / Hardware 21 25 October 2013 12:21
Who are developing games for Amiga platform at the moment? oldpx Amiga scene 65 06 October 2002 17:41

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:34.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06911 seconds with 15 queries