Cross compiling for MorphOS apps
  • Cocoon
    Cocoon
    walkero
    Posts: 54 from 2006/3/1
    Hello guys,
    I would like to ask if there is a good tutorial on how to setup a cross compiling development environment for MorphOS apps. I mean, if someone would like to develop and compile his MorphOS apps from Linux, or an other OS.

    Thank you in advance.
  • »07.10.19 - 09:36
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1840 from 2003/3/5
    From: Poland
    As mentioned by bigfoot, we'll be releasing scripts to build the SDK on Linux as well as pre-built binaries soon.
  • »07.10.19 - 11:51
    Profile Visit Website
  • Cocoon
    Cocoon
    walkero
    Posts: 54 from 2006/3/1
    I am interested on creating a cross compiling development environment, based on docker, which can be used on every major OS (Windows, Linux, MacOS). I created something similar for AROS (https://github.com/walkero-gr/dde4aros) which is under testing.

    The benefits of such an environment are many and the users will not need to mess with any installation, except of the docker and pull the necessary images.

    Looking forward for your release.

    Thank you for the hard work you do.
  • »07.10.19 - 20:45
    Profile Visit Website
  • Caterpillar
    Caterpillar
    sTix
    Posts: 31 from 2003/12/7
    Quote:

    walkero wrote:
    I am interested on creating a cross compiling development environment, based on docker, which can be used on every major OS (Windows, Linux, MacOS). I created something similar for AROS (https://github.com/walkero-gr/dde4aros) which is under testing.

    The benefits of such an environment are many and the users will not need to mess with any installation, except of the docker and pull the necessary images.

    Looking forward for your release.

    Thank you for the hard work you do.


    I found this very useful:

    https://github.com/AmigaPorts/docker-amiga-gcc
  • »08.10.19 - 18:20
    Profile
  • Just looking around
    Marlon
    Posts: 15 from 2018/2/9
    From: Sweden
    Quote:

    jacadcaps wrote:
    As mentioned by bigfoot, we'll be releasing scripts to build the SDK on Linux as well as pre-built binaries soon.


    Where can i find SDK.global? It's in none of the sdk downloads.

    Makefile:2: ../../../SDK.global: No such file or directory
  • »16.10.19 - 11:31
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1840 from 2003/3/5
    From: Poland
    You can't, it likely shouldn't be there. Just 'touch' it.
  • »16.10.19 - 11:34
    Profile Visit Website
  • Just looking around
    Marlon
    Posts: 15 from 2018/2/9
    From: Sweden
    I'm getting this while trying to compile binutils:
    Code:
    In file included from ../../binutils-2.32/bfd/elf32-ppc.c:30:
    ./elf32-target.h:1006:26: error: 'bfd_elf32_bfd_reloc_type_lookup' undeclared here (not in a function); did you mean '_bfd_norelocs_bfd_reloc_type_lookup'?
    BFD_JUMP_TABLE_RELOCS (bfd_elf32),
  • »16.10.19 - 11:45
    Profile Visit Website
  • MorphOS Developer
    Nadir
    Posts: 144 from 2003/3/17
    Quote:

    Marlon wrote:
    I'm getting this while trying to compile binutils:
    Code:
    In file included from ../../binutils-2.32/bfd/elf32-ppc.c:30:
    ./elf32-target.h:1006:26: error: 'bfd_elf32_bfd_reloc_type_lookup' undeclared here (not in a function); did you mean '_bfd_norelocs_bfd_reloc_type_lookup'?
    BFD_JUMP_TABLE_RELOCS (bfd_elf32),



    Hi,

    I'm not really sure what goes on here. Did you unpack the tarballl and apply the diff (the makefile should do that for you)?
  • »16.10.19 - 14:35
    Profile
  • Just looking around
    Marlon
    Posts: 15 from 2018/2/9
    From: Sweden
    Quote:

    Nadir wrote:
    Quote:

    Marlon wrote:
    I'm getting this while trying to compile binutils:
    Code:
    In file included from ../../binutils-2.32/bfd/elf32-ppc.c:30:
    ./elf32-target.h:1006:26: error: 'bfd_elf32_bfd_reloc_type_lookup' undeclared here (not in a function); did you mean '_bfd_norelocs_bfd_reloc_type_lookup'?
    BFD_JUMP_TABLE_RELOCS (bfd_elf32),



    Hi,

    I'm not really sure what goes on here. Did you unpack the tarballl and apply the diff (the makefile should do that for you)?



    Yeah, I just unpacked the sdk-source, went into binutils and typed "make"

    Here's the full log: http://dl.amigadev.com/setup-cross-sdk.log

    [ Edited by Marlon 16.10.2019 - 16:09 ]
  • »16.10.19 - 15:09
    Profile Visit Website