How to build almost ANY switch CFW or Homebrew app

Discussion in 'Switch - Tutorials' started by Daigan, Sep 3, 2018.

  1. Daigan
    OP

    Daigan Member

    Newcomer
    2
    Jun 15, 2018
    United States
    Guide was designed for Windows 10 but should work on eariler Windows versions as well.
    Download this: https://github.com/devkitPro/installer/releases
    select "Download and install" and "remove downloaded files". select everything when it asks what you want installed. Default install location is recommended. This can take a while.
    download this: https://cygwin.com/
    make sure you get the one for your system architype. Choose "Download from Internet". Choose "all users". Use system proxy. Use the first mirror. Leave default packages. Uncheck Start Menu and Desktop Icon.
    Search "edit the system enivorment variables" in the windows search
    click enivorment variables
    Under system variables look for "Path"
    click edit then new and paste in C:\devkitPro\devkitA64\bin (or where you installed DevKitPro)
    click Edit Text and put a ; then the same C:\devkitPro\devkitA64\bin (or where you installed DevKitPro) and then another ; at the end
    go to https://github.com/switchbrew/libnx and download the source to the desktop and unzip (libnx-master folder should be on desktop now)
    open CMD and CD to the directory of libnx-master folder (Should be on desktop)
    now do "make install"
    once it is done (may take a while) close that CMD
    Open a new CMD window and do:
    (these should be executed one at a time and if it asks for confirmation Type "Y")
    pacman -S switch-sdl2_mixer
    pacman -S switch-sdl2_image
    pacman -S switch-sdl2_gfx
    pacman -S switch-sdl2_ttf
    download the source code of a switch CFW or NRO (for example FreeShopNX). Unzip and put the folder on the desktop. Open CMD and CD to the folder location. then do "Make". All the extracted files will be in the master folder or out folder in the master folder.
    This will not work for everything but should work for most.
    Guide by Daigan#9999 on Discord and Daigan on GBATemp
     
  2. eyeliner

    eyeliner Has an itch needing to be scratched.

    Member
    3
    Feb 17, 2006
    United States
    Tell Daigan I send much praise his way. I shall chant his name while holding my beer up high.
    And I shall also chant footnotes in thy name.
     
  3. SupImBirDy

    SupImBirDy Newbie

    Newcomer
    1
    Aug 24, 2018
    United States
    thank you sir
     
  4. KsAmJ

    KsAmJ GBAtemp Regular

    Member
    4
    Oct 1, 2015
    fatal error: curl/curl.h: No such file or directory
    #include <curl/curl.h>
    ^~~~~~~~~~~~~
     
    Last edited by KsAmJ, Sep 6, 2018
    DubaiKid83 likes this.
  5. shchmue

    shchmue GBAtemp Fan

    Member
    4
    Dec 23, 2013
    United States
    you and OP should just do the list from tumGER's SD files:
    Code:
    pacman -S devkitA64 switch-tools switch-curl switch-bzip2 switch-freetype switch-libjpeg-turbo switch-sdl2 switch-sdl2_gfx switch-sdl2_image switch-sdl2_ttf switch-zlib switch-libpng
     
    DubaiKid83 likes this.
  6. JiveTheTurkey

    JiveTheTurkey GBAtemp Regular

    Member
    3
    Nov 6, 2017
    United States
    I hope some genius can use this to make a Nintendo 64 emulator for the switch.
     
  7. shchmue

    shchmue GBAtemp Fan

    Member
    4
    Dec 23, 2013
    United States
    there is an N64 emulator, it just doesn't run full speed. patience, it'll happen.
     
    JiveTheTurkey likes this.
  8. RetroDarioGaming

    RetroDarioGaming Advanced Member

    Newcomer
    1
    Feb 18, 2018
    Germany
    will this hurt or destroy my pc in any way?
     
  9. shchmue

    shchmue GBAtemp Fan

    Member
    4
    Dec 23, 2013
    United States
    no it doesn't change any file associations and doesn't add anything to your PATH that would interfere with other stuff really even if you already code
     
  10. RetroDarioGaming

    RetroDarioGaming Advanced Member

    Newcomer
    1
    Feb 18, 2018
    Germany
    it says :

    C:\Users\Admin\Desktop>make install
    make: *** No rule to make target 'install'. Stop.
     
  11. shchmue

    shchmue GBAtemp Fan

    Member
    4
    Dec 23, 2013
    United States
    need to be in a folder containing a makefile
     
  12. RetroDarioGaming

    RetroDarioGaming Advanced Member

    Newcomer
    1
    Feb 18, 2018
    Germany
    how do i make a makefile?
     
  13. radicalwookie

    radicalwookie GBAtemp Regular

    Member
    1
    Sep 15, 2018
    United States
    Makes me wish I took programming in school l..
     
  14. shchmue

    shchmue GBAtemp Fan

    Member
    4
    Dec 23, 2013
    United States
    do you have something specific you're trying to compile? like you made something and you want to turn it into homebrew? or you downloaded something and want to build it
     
  15. RetroDarioGaming

    RetroDarioGaming Advanced Member

    Newcomer
    1
    Feb 18, 2018
    Germany
    i wanna turn the project 64 emulator or mupen64 emulator into homebrew for switch
     
  16. Ericthegreat

    Ericthegreat Not New Member

    Member
    7
    Nov 8, 2008
    United States
    Vana'diel
    You know, it don't work that way.... Good idea tho, start learning a programming language :)
     
Loading...