ELF files

Discussion in '3DS - Homebrew Development and Emulators' started by Schrax, Oct 2, 2016.

  1. Schrax
    OP

    Schrax Advanced Member

    Newcomer
    75
    7
    May 27, 2016
    France
    Dans le paradis du rubis
    I want to convert homebrew programs source code to an elf file how can I do?
     
  2. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,279
    Jan 28, 2016
    United States
    You can compile a source code as an elf. No converter needed.
     
  3. Schrax
    OP

    Schrax Advanced Member

    Newcomer
    75
    7
    May 27, 2016
    France
    Dans le paradis du rubis
    How can I do to compile it?
     
  4. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,279
    Jan 28, 2016
    United States
    If you don't know how it is best you don't mess with it. However depending on what you want to compile the readme.md should tell you how.
     
  5. nop90

    nop90 GBAtemp Maniac

    Member
    1,431
    2,136
    Jan 11, 2014
    Italy
    Rome
    Why do you need a 3ds homebrew in Elf format?

    Every 3ds homebrew when is compiled is first pached in Elf format, than (if you use the standard makefile of devkitarm) is converted in 3dsx format that is a simplified version of the Elf format.

    I can't see any good reason for dealing directly with an Elf format
     
    Last edited by nop90, Oct 2, 2016
  6. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    1,527
    1,021
    Apr 20, 2007
    United States
    To make CIA versions of a homebrew that does not currently have one compiled.
     
  7. Shah Isah

    Shah Isah GBAtemp Regular

    Member
    102
    14
    Sep 7, 2016
    :facepalm: if that is the case. You do know that you can convert 3ds homebrew to cia woth little effort nstead of turn it into .elf then cia...
     
  8. Roomsaver

    Roomsaver GBAtemp Advanced Fan

    Member
    951
    243
    Sep 7, 2015
    United States
    garfield kart grand prix
    You can't convert from 3DSX to CIA. You can compile the homebrew as ELF and convert it to CIA, though.
     
  9. B_E_P_I_S_M_A_N

    B_E_P_I_S_M_A_N I have graced this thread with my presence.

    Member
    827
    3,093
    Jun 7, 2016
    United States
    Hell
  10. nop90

    nop90 GBAtemp Maniac

    Member
    1,431
    2,136
    Jan 11, 2014
    Italy
    Rome
    As someone already said, install devkitarm , set the eviroment variables ad use the command "make cia".

    But a 3ds homebrew in cia format needs some custom code to handle the interaction with the home menu, or it will likely crash the system on exit.

    Some people don't release in CIA format because they don't like the proprietary format, but others don't make CIAs for the additinal work they need.
     
  11. zoogie

    zoogie simple pimp tool

    Member
    6,518
    8,393
    Nov 30, 2014
    United States
  12. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    1,527
    1,021
    Apr 20, 2007
    United States
    Yep, I know, I did it with FTBrony after the commits the removed the My Little Pony references and attached it here. If you were trying to reply to the OP, that'd be @Schrax