How to make CTR SDK work on your very own computer - [VM EDITION]

Discussion in '3DS - Homebrew Development and Emulators' started by AtlanticBit, Feb 22, 2015.

  1. AtlanticBit
    OP

    AtlanticBit Yeh, fuck this

    Member
    365
    189
    Jan 15, 2015
    Poland
    DEEP IN SPACE
    YoshiInAVoid you wanted it, you got it.

    • Set up a VirtualBox VM with Windows 7.
    • Download CTR SDK(just google CTR_SDK_4_2_8 ) MODS: IF I SHOULDN'T HAVE TOLD THIS FEEL FREE TO GET RID OF THIS
    • Go into the CTR_DevEnvironment folder and ONLY install omake.
    • Go here and install this thing WITH Eclipse.
    • -Now comes the part which explains why we are using a VM-
    • Open up Eclipse for DS-5
    • Click on Help -> ARM License Manager... -> Add license -> Generate a 30day evalution(see, that's why!) -> Do what it asks you to do. -> Set Select the toolkit you intend to use: to ARM DS-5 blah blah -> Now select diagnostics and find your license folder. -> write it down, you will need it later.
    • Now create a environmental variable called CTRSDK_ROOT which will be in my case C:\Users\Atlantic\nintendosux\ctrsdk\CTR_SDK
    • Now add the folder C:\Program Files (x86)\DS-5\sw\ARMCompiler5.05u1\bin or if you're on a 32bit system C:\Program Files\DS-5\sw\ARMCompiler5.05u1\bin to your PATH.
    • Restart CMD if you have it open.
    • Now the weird part:
    • Go to C:\Program Files\arm\licenses or create any of those folders if they don't exist(folders regardless of OS) and copy all .lic files from your ARM DS-5 License folder to the folders created earlier and rename one of them(hopefully you have only one) to license.dat (extension HAS TO BE .dat)
    • Now type in armcc in cmd to check if everything works. If you get a (license)error than try setting up from Click on help... part. Also to be sure try using omake command.
    • Now make a folder on your desktop, documents, somewhere where you will find it called compilebins(or something, doesn't matter) and COPY not MOVE, but COPY all stuff from C:\Program Files\DS-5\sw\ARMCompiler5.05u1\bin there.
    • Why? You will find out.
    • Now COPY to your clipboard all your .exe files from compilebins folder.
    • PASTE those .exe files here CTR_SDK-4_2_7-SampleDemos-20130806-en\SampleDemos\news\news_test
    • Why? You have to do this for all examples there(some are broken, watch out!) When you get en error: system doesn't know how to build armasm.exe (or something) just copy those .exe files to the place where omake doesn't find them. Now open CMD and type in
      Code:
      cd yoursdkdirectory\CTR_SDK-4_2_7-SampleDemos-20130806-en\SampleDemos\news
      and when it finishes type
      Code:
      omake
    • If it manages without errors(hopefully) you should get a CCI file(that's what we are interested in!) in yoursdkfolder\CTR_SDK\images\news_test
    • Now download 3DS to CIA converter from Maxconsole.(Only that one will work)
    • Extract it.
    • Don't forget to install Python 2.7!
    • Drag our CCI there and rename it to yourfile.csu
    • Run the converter and select CSU to CIA option.
    • Type in the name, in my case news_test.csu
    • Answer all the questions NO
    • Once it says check RSF make sure the RSF generated is correct in terms of services etc.
    • After a second you should get a CIA file.
    • Copy it over to the SD Card of your Gateway or CFW-compatible 3DS and enjoy the app you have written or just compiled.
    • Install the CIA using *Menu
    • Try to run it from the Home Menu.
    • If it runs than have fun. If it doesn't PM me. I will fix the guide if more people fail at this.
     
    fodder, TheKawaiiDesu, Voxel and 8 others like this.


  2. YoshiInAVoid

    YoshiInAVoid GBAtemp Advanced Fan

    Banned
    560
    336
    Jan 10, 2011
    Well, this goes against all of the principles of homebrew... but how can you resist just trying it?
     
    Margen67 and AlbertoSONIC like this.
  3. minexew

    minexew ayy lmao

    Member
    228
    149
    Mar 16, 2013
    Doesn't the SDK only contain binary libraries? Making it pretty much useless for any serious homobrew dev?
     
  4. JustPingo

    JustPingo GBAtemp Fan

    Member
    497
    996
    Jan 11, 2015
    France

    No. It contains library you can compile to make your homebrew work. It's like ctrulib in better (of course since it's the official Nintendo thing).
     
    Margen67 likes this.
  5. minexew

    minexew ayy lmao

    Member
    228
    149
    Mar 16, 2013
    That's what I call useless, unless I'm mistaken and it comes with the source code.
     
    Margen67 likes this.
  6. Nollog

    Nollog GBAtemp Addict

    Member
    2,703
    472
    Oct 10, 2008
    cute.

    It's an SDK, it's exactly what you need to write software for the 3ds(ctr).
    Otherwise it wouldn't be called an sdk.
    I think you might be thinking of getting nintendo's source code and using it to write your own sdk from it. That's dumb.
     
    ubergeek77 likes this.
  7. ChrisX930

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    okay, it works :D
    while trying to start news_test on 3ds stucks on 3ds-Boot Logo. Is it that what it should do?

    EDIT:
    Works :D
    It created new Notifications like this:
    [​IMG]
     
    WhoAmI? likes this.
  8. Connador

    Connador Member

    Newcomer
    16
    3
    Aug 9, 2012
    United States
    What does a VM have to do with the 30 day evaluation? Is it just so that you can start up a new VM after 30 days and redo all the steps?
     
  9. ChrisX930

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    I don't use a VM yet. But i think that's the reason, yes
     
  10. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,260
    Nov 24, 2014
    Italy
    Bologna
    It can be easily achieved with libctru...
    http://3dbrew.org/wiki/News_Services
     
  11. ChrisX930

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    didn't know. Used the news_test example from the 3DS-SDK_SampleDemos
     
  12. AtlanticBit
    OP

    AtlanticBit Yeh, fuck this

    Member
    365
    189
    Jan 15, 2015
    Poland
    DEEP IN SPACE
    yeah
     
  13. AtlanticBit
    OP

    AtlanticBit Yeh, fuck this

    Member
    365
    189
    Jan 15, 2015
    Poland
    DEEP IN SPACE
    No, the libraries ARE NOT compiled
     
  14. ghjfdtg

    ghjfdtg Advanced Member

    Newcomer
    59
    42
    Jul 13, 2014
    Seriously stop this shit before people start using the official SDK. It defeats every point of homebrew.
     
  15. mid-kid

    mid-kid GBAtemp spamBOT

    Member
    879
    961
    Aug 2, 2012
    It is illegal to redistribute homebrew made with this. This is just for personal stuff, public homebrew will always be released with ctrulib.
     
  16. WeedZ

    WeedZ Possibly an enlightened being

    Member
    GBAtemp Patron
    WeedZ is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    2,703
    5,167
    Jan 13, 2015
    United States
    Can you enlighten me on what the point of homebrew is? cause I thought it was for the purpose of expanding the usefulness of a device beyond its intended means.
     
    Margen67 likes this.
  17. cearp

    cearp the ticket master

    Member
    7,392
    4,642
    May 26, 2008
    Tuvalu
    no, not at all! the point of homebrew is to struggle with free open source tools :D (joking)

    - "it's not homebrew if you use code completion" "it's not homebrew if you don't use vim" "it's not homebrew if you didn't use asm" etc...
     
    Margen67 and WeedZ like this.
  18. piratesephiroth

    piratesephiroth I wish I could read

    Member
    2,838
    1,386
    Sep 5, 2013
    Brazil
    Again you can just use makerom to convert your CCI to CIA.
     
    Margen67 and cearp like this.
  19. piratesephiroth

    piratesephiroth I wish I could read

    Member
    2,838
    1,386
    Sep 5, 2013
    Brazil
    Actually, you can build a CIA straight away if you specify CTR_APPTYPE = SD in the OMakefile
     
    Margen67 and cearp like this.
  20. cearp

    cearp the ticket master

    Member
    7,392
    4,642
    May 26, 2008
    Tuvalu
    very useful! thanks :)
     
    Margen67 likes this.