Question What is required to write hello world on Switch console?

Discussion in 'Switch - Hacking & Homebrew' started by edepot, Nov 12, 2017.

  1. edepot
    OP

    edepot Member

    Newcomer
    21
    1
    Oct 12, 2017
    United States
    Just a simple question from a newbie. What are the basic requirements to get "hello world" text running on the Switch console?

    Here are the known requirements:
    1) Switch console (3.00 firmware or below)
    2) Pokken game (to update to firmware 3.00)

    What are the other requirments? I hope the developers are not forcing us to get a new computer and install Linux.
    Is it possible to do it on a recent Mac computer or Windows 10? I also hope it is not required to install a dual-boot (Linux) on them or install whole operating systems running virtually on the machine.

    On a Mac, for example, if you type cc (c compiler) on the Terminal for the first time, it will ask you to install the free XCode, allowing you to start writing code. Is that all is needed? Will the released SDK be compatible (source) for compiling on the Mac just by downloading and putting it somewhere on the Mac?
     
    CuriousTommy likes this.
  2. 98otiss

    98otiss YANDERE DEV! YANDERE DEV!

    Member
    248
    82
    Aug 22, 2015
    Canada
    in a folder, you skrub?
    -A brain
    -Screenshot
    -Ability to spell the phrase "Hello World"
    -Switch
     
  3. Digital_0xFF

    Digital_0xFF Advanced Member

    Newcomer
    66
    28
    Oct 7, 2017
    Austria
    At first 3.0.0 NOT below since you need ROhan for that
     
  4. BlastedGuy9905

    BlastedGuy9905 Ace Bricker

    Member
    1,378
    881
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
     
  5. Digital_0xFF

    Digital_0xFF Advanced Member

    Newcomer
    66
    28
    Oct 7, 2017
    Austria
    :rolleyes: Brainfart i guess
     
  6. DSpider

    DSpider GBAtemp Fan

    Member
    362
    190
    Mar 14, 2015
    Romania
    You could get a copy of Ubuntu and run it inside VirtualBox, or you could run the jailbreak through Cygwin on Windows.

    But I'm not sure there's any guide for the end-user out right now.
     
  7. Nezztor

    Nezztor GBAtemp Regular

    Member
    106
    79
    Nov 8, 2016
    Mexico
    That is some of the set up instructions provided by iaqua
     
    operador7 likes this.
  8. nmkd

    nmkd GBAtemp Regular

    Member
    176
    89
    Oct 25, 2016
    Germany
    Windows 10 has a Linux subsystem duh
     
  9. operador7

    operador7 Newbie

    Newcomer
    5
    0
    Nov 1, 2017
    Spain
    If I was you I would wait a bit more to see how everything it's going, a couple of days, and also I recommend to make a dual bot with Linux/w10.
     
  10. sarkwalvein

    sarkwalvein More coffee, please!

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

    Our Patreon
    5,425
    5,846
    Jun 29, 2007
    Germany
    Niedersachsen
    The main requirements are:
    1. Handwriting skills
    2. A permanent marker
     
    Nah3DS, smileyhead, wormdood and 2 others like this.
  11. edepot
    OP

    edepot Member

    Newcomer
    21
    1
    Oct 12, 2017
    United States
    Looks like Windows 10 and Mac OSX Sierra (and OSX High Sierra) have built-in Linux/BSD support.
    Did a look around and found these two links (all fairly recent and working):

    Mac OS X: https://solarianprogrammer.com/2017/05/21/compiling-gcc-macos/
    Windows 10: https://msdn.microsoft.com/en-us/commandline/wsl/install-win10

    First one will get modern GCC compiler working on latest Macs (which already supports BSD).
    The other one will enable Linux on Windows 10 (does that come with modern GCC compiler?)

    That means you can natively compile without installing Cygwin or a virtual machine (VirtualBox, etc). Will the switch homebrew devs support these native unix/Linux environments if they release the SDK?

    Also, anyone know if it is considered legal (currently) to:
    1) Jailbreak Switch
    2) Releasing homebrew software for Switch

    I think software was released for 1) already. So for certain countries (US only?) running the software is not legal but source code is ok? Also, is it legal to jailbreak mobile phones currently? These laws seem to change by the year. Mostly interested in the laws concerning 2) for binary or source, and what countries it applies to. It is sad that personal creativity is now so complicated by being controlled via paywalls or legal barriers
     
  12. urherenow

    urherenow GBAtemp Psycho!

    Member
    3,058
    917
    Mar 8, 2009
    United States
    Japan
    What about "Windows has a Linux subsystem" don't you understand? I run Ubuntu bash natively now. No need dual boot OR a VM.

    I HIGHLY recommend getting the Fall Creators (Creator's?) update first, and start with the app store install. Too many bugs with the (now older) command line installation method.
     
  13. albion

    albion Newbie

    Newcomer
    5
    2
    Oct 31, 2017
    Switzerland
    Does this work for the initial 1.0.0 version?
     
    Last edited by albion, Nov 12, 2017
  14. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,512
    5,473
    Mar 17, 2010
    Norway
    Alola
    A web server and rudimentary HTML skills :P
     
    Shadowfied likes this.
  15. dAVID_

    dAVID_ GBAtemp's Official Onion Cricket

    Member
    711
    654
    Oct 23, 2016
    Mexico
    Your basement
    Oh perfect, another one of these threads.
    Can't people understand that they will not be seeing homebrew in a lot of time? They announce one possibility of
    a kernel exploit, and everybody's swarming in, asking if they can run games even though we don't know how
    that works, because I'm just a regular user, who has no clue about anything tech related. BUT I still want devs
    to work very hard and satisfy all of my needs, because they CLEARLY have all the time in the world to provide to
    this community, and DON'T have a life outside of here.
     
  16. BlastedGuy9905

    BlastedGuy9905 Ace Bricker

    Member
    1,378
    881
    Apr 13, 2017
    United States
    Outside your windows ᕙ(◔ᗜ◔)ᕗ
    Code execution is a thing ;-;
     
  17. ShadowOne333

    ShadowOne333 GBAtemp Guru

    Member
    7,366
    4,791
    Jan 17, 2013
    Mexico
    Dude get with the times, people can now do code execution on the system thanks to Daeken.
    It's all userland and works on 3.0.0 only using Rohan.

    Why do you think he is asking for the requirements on how to write and run a "Hello world"?
    Because the tools are already there, simply not as straight-forward of a process right now.
     
    Last edited by ShadowOne333, Nov 12, 2017
    iAqua, BlastedGuy9905 and dAVID_ like this.
  18. machinoman

    machinoman GBAtemp Regular

    Member
    109
    83
    Feb 12, 2011
    United States
    to get it running all you technically need is an IP address to a test server with an nro 'hello world' app.

    to develop such an app, and i don't think all the kinks are worked out yet, it would be easiest to set up a virtual linux system. setting up linux incredibly simple to do:

     
    Last edited by machinoman, Nov 12, 2017
  19. seanp2500

    seanp2500 Advanced Member

    Newcomer
    99
    31
    Jun 2, 2010
    United States
    but machinoman as has been said many times why would one do this when win 10 with linux subsystem is option.
     
  20. machinoman

    machinoman GBAtemp Regular

    Member
    109
    83
    Feb 12, 2011
    United States
    Because while the Node.JS setup is straight forward on the Linux subsystem, creating and compiling NRO files may not be as simple. I created a 3ds app and had a lot of trouble setting things up to work in a windows environment. It is probably possible though, but people have a fear of setting up virtual machines and I wanted to outline that it is not as scary as they think.
     
    snoofly likes this.