[Beta] Super Mario World Port

GatoFiestero

Well-Known Member
Member
Joined
Jan 21, 2020
Messages
361
Trophies
0
Age
36
XP
1,659
Country
Costa Rica
I try to test this using my patched rom for Spanish Language and it actually works.

So, if you get this works in widescreen will be amazing.

Because right now I can run widescreen using this: https://github.com/VitorVilela7/wide-snes

And I got the patch for spanish language using this: https://tradusquare.es/proyectos/super-mario-world/

But I can't merge both implementations.

So, this is an excellent oportunity to get Super Mario World Widescreen in spanish.
 

The_Chaotician

Hoist the Colours!
Member
Joined
Feb 9, 2017
Messages
205
Trophies
0
XP
1,466
Country
United Kingdom
On my Windows PC, on the MSYS environment with DevKitPro installed I do use the next commands:

Bash:
pacman -Syu --needed --noconfirm git make pkg-config switch-dev switch-sdl2 switch-tools
cd ~
git clone --recursive https://github.com/snesrev/smw
cd ~/smw
cp "C:\ROMS\smw.sfc" ~/smw/
git fetch origin pull/3/head
git checkout -b pr3 FETCH_HEAD
cd ~/smw/src/platform/switch
make -j$(nproc)

I have the ROM on my PC on the folder C:\ROMS\ you need the original ROM to run the build.

and note the git fetch and git checkout commands, they commit the PR #3 which in this case is the Switch support pending to be approved on the repo.
Keep getting the error below, any ideas?

make[1]: *** [/opt/devkitpro/libnx/switch_rules:81: /home/user/smw/src/platform/switch/smw.elf] Error 1
make: *** [Makefile:179: bin] Error 2
 
Last edited by The_Chaotician,

The_Chaotician

Hoist the Colours!
Member
Joined
Feb 9, 2017
Messages
205
Trophies
0
XP
1,466
Country
United Kingdom
Can you please share all the log? Thanks
Sure, please see below:

Code:
user@DESKTOP-TME9DB7 MINGW64 ~/smw/src/platform/switch
$ make -j4
  config.o glsl_shader.o main.o opengl.o smw_00.o smw_01.o smw_02.o smw_03.o smw_04.o smw_05.o smw_07.o smw_0c.o smw_0d.o smw_cpu_infra.o smw_rtl.o spc_player.o tracing.o util.o apu.o cart.o cpu.o dma.o dsp.o input.o ppu.o ppu_old.o snes.o snes_other.o spc.o animated.o background.o stars.o types.o switch_impl.o gl_core_3_1.o
../..//config.c ../..//glsl_shader.c ../..//main.c ../..//opengl.c ../..//smw_00.c ../..//smw_01.c ../..//smw_02.c ../..//smw_03.c ../..//smw_04.c ../..//smw_05.c ../..//smw_07.c ../..//smw_0c.c ../..//smw_0d.c ../..//smw_cpu_infra.c ../..//smw_rtl.c ../..//spc_player.c ../..//tracing.c ../..//util.c ../..//snes/apu.c ../..//snes/cart.c ../..//snes/cpu.c ../..//snes/dma.c ../..//snes/dsp.c ../..//snes/input.c ../..//snes/ppu.c ../..//snes/ppu_old.c ../..//snes/snes.c ../..//snes/snes_other.c ../..//snes/spc.c ../..//enhancements/animated.c ../..//enhancements/background.c ../..//enhancements/stars.c ../..//enhancements/types.c ../..//platform/switch/src/switch_impl.c ../..//../third_party/gl_core/gl_core_3_1.c ...
linking smw.elf
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.o: in function `Frame_DecodeGIF':
types.c:(.text.Frame_DecodeGIF+0x3c): undefined reference to `gd_open_gif'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0xcc): undefined reference to `gd_get_frame'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0x124): undefined reference to `gd_render_frame'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0x188): undefined reference to `gd_is_bgcolor'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0x228): undefined reference to `gd_close_gif'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.o: in function `Frame_DecodeJSON':
types.c:(.text.Frame_DecodeJSON+0x40): undefined reference to `cJSON_Parse'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeJSON+0x68): undefined reference to `cJSON_GetObjectItem'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeJSON+0xa8): undefined reference to `cJSON_GetObjectItem'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeJSON+0xbc): undefined reference to `cJSON_GetObjectItem'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:81: /home/rossc/smw/src/platform/switch/smw.elf] Error 1
make: *** [Makefile:179: bin] Error 2
 

Lywx

Member
OP
Newcomer
Joined
Apr 4, 2023
Messages
12
Trophies
0
Age
22
Location
Mexico
XP
271
Country
Mexico
Sure, please see below:

Code:
user@DESKTOP-TME9DB7 MINGW64 ~/smw/src/platform/switch
$ make -j4
  config.o glsl_shader.o main.o opengl.o smw_00.o smw_01.o smw_02.o smw_03.o smw_04.o smw_05.o smw_07.o smw_0c.o smw_0d.o smw_cpu_infra.o smw_rtl.o spc_player.o tracing.o util.o apu.o cart.o cpu.o dma.o dsp.o input.o ppu.o ppu_old.o snes.o snes_other.o spc.o animated.o background.o stars.o types.o switch_impl.o gl_core_3_1.o
../..//config.c ../..//glsl_shader.c ../..//main.c ../..//opengl.c ../..//smw_00.c ../..//smw_01.c ../..//smw_02.c ../..//smw_03.c ../..//smw_04.c ../..//smw_05.c ../..//smw_07.c ../..//smw_0c.c ../..//smw_0d.c ../..//smw_cpu_infra.c ../..//smw_rtl.c ../..//spc_player.c ../..//tracing.c ../..//util.c ../..//snes/apu.c ../..//snes/cart.c ../..//snes/cpu.c ../..//snes/dma.c ../..//snes/dsp.c ../..//snes/input.c ../..//snes/ppu.c ../..//snes/ppu_old.c ../..//snes/snes.c ../..//snes/snes_other.c ../..//snes/spc.c ../..//enhancements/animated.c ../..//enhancements/background.c ../..//enhancements/stars.c ../..//enhancements/types.c ../..//platform/switch/src/switch_impl.c ../..//../third_party/gl_core/gl_core_3_1.c ...
linking smw.elf
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.o: in function `Frame_DecodeGIF':
types.c:(.text.Frame_DecodeGIF+0x3c): undefined reference to `gd_open_gif'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0xcc): undefined reference to `gd_get_frame'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0x124): undefined reference to `gd_render_frame'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0x188): undefined reference to `gd_is_bgcolor'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeGIF+0x228): undefined reference to `gd_close_gif'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.o: in function `Frame_DecodeJSON':
types.c:(.text.Frame_DecodeJSON+0x40): undefined reference to `cJSON_Parse'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeJSON+0x68): undefined reference to `cJSON_GetObjectItem'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeJSON+0xa8): undefined reference to `cJSON_GetObjectItem'
C:/msys64/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/13.1.0/../../../../aarch64-none-elf/bin/ld.exe: types.c:(.text.Frame_DecodeJSON+0xbc): undefined reference to `cJSON_GetObjectItem'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/libnx/switch_rules:81: /home/rossc/smw/src/platform/switch/smw.elf] Error 1
make: *** [Makefile:179: bin] Error 2

Sorry that was my fault, you need to pull the latest changes and rebuild, make sure to make clean first
 

Thorhax

Well-Known Member
Member
Joined
Apr 15, 2020
Messages
484
Trophies
0
Age
43
XP
2,169
Country
Canada
I try to test this using my patched rom for Spanish Language and it actually works.

So, if you get this works in widescreen will be amazing.

Because right now I can run widescreen using this: https://github.com/VitorVilela7/wide-snes

And I got the patch for spanish language using this: https://tradusquare.es/proyectos/super-mario-world/

But I can't merge both implementations.

So, this is an excellent oportunity to get Super Mario World Widescreen in spanish.
The widescreen mod is cool and all, but it doesn't run well on switch.
At least in my experience it's glitchy in RetroArch and runs at a low FPS
 

AlanLC

Well-Known Member
Member
Joined
Aug 18, 2014
Messages
414
Trophies
0
Age
45
XP
2,634
Country
Brazil
On discord they are talking and posting screenshots of SMB 1 from Super Mario Bros. All Stars ported to PC, did anyone manage to compile for Switch?
 

The_Chaotician

Hoist the Colours!
Member
Joined
Feb 9, 2017
Messages
205
Trophies
0
XP
1,466
Country
United Kingdom
I try to test this using my patched rom for Spanish Language and it actually works.

So, if you get this works in widescreen will be amazing.

Because right now I can run widescreen using this: https://github.com/VitorVilela7/wide-snes

And I got the patch for spanish language using this: https://tradusquare.es/proyectos/super-mario-world/

But I can't merge both implementations.

So, this is an excellent oportunity to get Super Mario World Widescreen in spanish.
Did you get this Widescreen mod to work on the Switch? If so, how?

I’m getting build errors for the latest commit too. The only repo that builds successfully for me is the pr request that @impeeza submitted on page 2 of this thread. I can’t get his fork to work either!
 

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
6,561
Trophies
3
Age
46
Location
At my chair.
XP
19,541
Country
Colombia
I just tested this steps and works fine:


Bash:
cd ~
rm -rf ./smw
pacman -Syuu --needed --noconfirm git make pkg-config switch-dev switch-sdl2 switch-tools switch-pkg-config mingw-w64-x86_64-python
cd ~
git clone --recursive https://github.com/snesrev/smw

YOU NEED TO COPY THE ORIGINAL Super Mario World (1991)(Nintendo)(US).sfc to ~/smw/smw.sfc

Bash:
cd ~/smw
git fetch origin pull/31/head
git checkout -b pr31 FETCH_HEAD -f
cd ~/smw/src/platform/switch
make -j$(nproc)
 
  • Like
Reactions: lordelan

The_Chaotician

Hoist the Colours!
Member
Joined
Feb 9, 2017
Messages
205
Trophies
0
XP
1,466
Country
United Kingdom
I just tested this steps and works fine:


Bash:
cd ~
rm -rf ./smw
pacman -Syuu --needed --noconfirm git make pkg-config switch-dev switch-sdl2 switch-tools switch-pkg-config mingw-w64-x86_64-python
cd ~
git clone --recursive https://github.com/snesrev/smw

YOU NEED TO COPY THE ORIGINAL Super Mario World (1991)(Nintendo)(US).sfc to ~/smw/smw.sfc

Bash:
cd ~/smw
git fetch origin pull/31/head
git checkout -b pr31 FETCH_HEAD -f
cd ~/smw/src/platform/switch
make -j$(nproc)
Thanks! I’ll check it out!

Edit: yep, works fine. Thanks again, @impeeza!
 
Last edited by The_Chaotician,
  • Love
Reactions: impeeza

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Towelie runs my farm, he's awesome.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Polly is still around from what I've heard.
  • K3Nv2 @ K3Nv2:
    @SylverReZ, is Pollys alt I knew it
  • BigOnYa @ BigOnYa:
    Yea I see him every once whi!e , incognito
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +1
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    AncientBoi @ AncientBoi: lol