1. Parxal

    Parxal Newbie
    Newcomer

    Joined:
    Nov 25, 2018
    Messages:
    4
    Country:
    Portugal
    @WerWolv any news on debugging? do you think it will be possible to debug in real time with breakpoints, etc?
     
    ELY_M likes this.
  2. Manurocker95

    Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    Any 2D graphic library different than sdl?
     
  3. Milenko

    Milenko GBAtemp Advanced Maniac
    Member

    Joined:
    Oct 16, 2017
    Messages:
    1,987
    Country:
    Australia
    Anyone got a basic hello world handy to see? Just to see how to write on the screen

    And what's the basics if you're trying to port an open source game?
     
  4. Idontknowwhattoputhere

    Member

    Joined:
    Jan 19, 2019
    Messages:
    759
    Country:
    United Kingdom
    this might be what your looking for
    https://github.com/vgmoose/sdl-hello-world
     
  5. Manurocker95

    Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    If you need to setup the environment too, check out my tutorial with Visual studio. If not, this tutorial shows you a simple hello world. The basis are coding knowledge and devkitpro setup.
     
  6. Milenko

    Milenko GBAtemp Advanced Maniac
    Member

    Joined:
    Oct 16, 2017
    Messages:
    1,987
    Country:
    Australia
    My experience so far is writing hello world (which I couldn't see, it would just exit straight away) and then making it loop which I assumed worked because it stayed on the black screen lol

    Just linking to other files is what I need to tackle next
     
  7. Manurocker95

    Manurocker95 Game Developer & Pokémon Master
    Member

    Joined:
    May 29, 2016
    Messages:
    1,302
    Country:
    Spain
    Then you did not follow the steps because this tutorial shows a hello world by console print xF btw, check my setup tutorial after retrying this one again :)
     
  8. Milenko

    Milenko GBAtemp Advanced Maniac
    Member

    Joined:
    Oct 16, 2017
    Messages:
    1,987
    Country:
    Australia
    Oh no I mean when I tried a week ago, I haven't tried yours yet
     
  9. Tonydaexpert

    Tonydaexpert C++ Pleb, but with a Monado
    Member

    Joined:
    Jul 5, 2016
    Messages:
    193
    Country:
    United States
    This is cool! I was just learning about SDL some time ago. I only have focused on C++ so I hope that is enough lol (I know C++ can do stuff from C) can't wait to make things on Switch.
     
  10. Rempa

    Rempa Newbie
    Newcomer

    Joined:
    Apr 27, 2018
    Messages:
    5
    Country:
    France
    When trying to compile the example, i get those errors, and i don't understant why. Are these functions dependent on something else than libnx ?

    D:\Documents\Prog\Switch\Dev>make
    main.cpp
    aarch64-none-elf-g++ -MMD -MP -MF /d/Documents/Prog/Switch/Dev/build/main.d -g -Wall -O3 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -DVERSION_MAJOR=1 -DVERSION_MINOR=0 -DVERSION_MICRO=0 -I/d/Documents/Prog/Switch/Dev/include -I/D\devkitPro/portlibs/switch/include -ID:\devkitPro/libnx/include -I/d/Documents/Prog/Switch/Dev/build -D__SWITCH__ -fno-rtti -fno-exceptions -std=gnu++17 -c /d/Documents/Prog/Switch/Dev/source/main.cpp -o main.o
    D:/Documents/Prog/Switch/Dev/source/main.cpp: In function 'int main(int, char**)':
    D:/Documents/Prog/Switch/Dev/source/main.cpp:10:3: error: 'gfxInitDefault' was not declared in this scope
    gfxInitDefault();
    ^~~~~~~~~~~~~~
    D:/Documents/Prog/Switch/Dev/source/main.cpp:26:3: error: 'gfxExit' was not declared in this scope
    gfxExit();
    ^~~~~~~
    D:/Documents/Prog/Switch/Dev/source/main.cpp:26:3: note: suggested alternative: 'fsExit'
    gfxExit();
    ^~~~~~~
    fsExit
    make[1]: *** [D:\devkitPro/devkitA64/base_rules:14: main.o] Error 1
    make: *** [Makefile:160: build] Error 2
     
  11. Adran_Marit

    Adran_Marit Walküre's Hacker
    Member

    Joined:
    Oct 3, 2015
    Messages:
    2,526
    Country:
    Australia
    the gfx functions that are erroring were present in a previous version of libnx, and were removed in 1.5 if i remember correctly
     
    CosmoCortney likes this.
  12. CosmoCortney

    CosmoCortney Chemtrail Pilot
    Member

    Joined:
    Apr 18, 2013
    Messages:
    1,700
    Country:
    Germany
    Shall we just comment out them?
     
  13. Adran_Marit

    Adran_Marit Walküre's Hacker
    Member

    Joined:
    Oct 3, 2015
    Messages:
    2,526
    Country:
    Australia
    Not a clue sadly, I don't know enough about libnx and homebrew about what to do
     
  14. Muxi

    Muxi GBAtemp Fan
    Member

    Joined:
    Jun 1, 2016
    Messages:
    476
    Country:
    Germany
    I'm having problems setting up devkitPro on Windows 10 and at the point where the devkitPro environment variables need to be corrected I can't get any further. DEVKITARM and DEVKITPPC are included in my list of system variables, but none of these folders are in my devkitPro folder. Also, I could not make a devkitA64 selection when installing devkitpro as described in the manual. I could only select the components. I only selected Switch Development there. Does anyone have a clue what I did wrong? Thanks in advance.
     
    Last edited: Feb 4, 2020
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - development, [Tutorial], Homebrew