Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Seiya on May 28, 2006, 07:34:42 PM

Title: source compiling
Post by: Seiya 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?
Title: Re: source compiling
Post by: motorollin 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
Title: Re: source compiling
Post by: djbase on May 28, 2006, 09:59:57 PM
Depends what kind of shell you have.

'./configure' or 'sh configure'
Title: Re: source compiling
Post by: Piru 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 (http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess) and config.sub (http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/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.