Welcome, Guest. Please login or register.

Author Topic: source compiling  (Read 1934 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline SeiyaTopic starter

  • Sr. Member
  • ****
  • Join Date: Apr 2004
  • Posts: 380
    • Show only replies by Seiya
    • http://www.amigademo.tk
source compiling
« on: May 28, 2006, 07:34:42 PM »
when i found a source..on linux for example i usally make a: ./configuration.

And on amigaos?

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: source compiling
« Reply #1 on: May 28, 2006, 07:40:24 PM »
You need a C compiler on the Amiga. But it's not going to be that simple. You can't just compile the Linux source on an Amiga, you have to port it first.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline djbase

Re: source compiling
« Reply #2 on: May 28, 2006, 09:59:57 PM »
Depends what kind of shell you have.

'./configure' or 'sh configure'
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: source compiling
« Reply #3 on: May 28, 2006, 10:07:51 PM »
@Seiya

If you have ixemul environment and gcc set up, that'll work just fine (sh configure or from sh itself: ./configure), assuming no unsupported functions are used. Many things will build out of the box with ixemul. Sometimes you'll need to fetch and build some libraries before you can build some more complex application, though.

Also, in some cases you might need to update two files (config.guess and config.sub) before configure will work.

This is the easy way to compile things. If this works you might want to try adding -noixemul and see if the thing builds with libnix (that is without requiring ixemul.library to run). For simple programs this will work aswell.

If the program has GUI or somesuch, then you're pretty much forced to rewrite large portions of it.

In case you're asking about amiga specific sources: These often use just makefile and make (smakefile/smake for SAS/C, makefile/make for GCC). Anyway, there is no set rule for this, every project can have a different build system.