Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined references error when building the 3ds version #229

Open
glu8716 opened this issue Oct 28, 2022 · 4 comments
Open

undefined references error when building the 3ds version #229

glu8716 opened this issue Oct 28, 2022 · 4 comments

Comments

@glu8716
Copy link

glu8716 commented Oct 28, 2022

I'm getting the following error when trying to build the 3ds version of the game.

linking sdlpal.elf
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: pal_utils.o: in function `init_filter':
/home/lorenzo/sdlpal/3ds/./pal_utils.c:26: undefined reference to `SDL_N3DSKeyBind'
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: /home/lorenzo/sdlpal/3ds/./pal_utils.c:27: undefined reference to `SDL_N3DSKeyBind'
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: /home/lorenzo/sdlpal/3ds/./pal_utils.c:28: undefined reference to `SDL_N3DSKeyBind'
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: /home/lorenzo/sdlpal/3ds/./pal_utils.c:29: undefined reference to `SDL_N3DSKeyBind'
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: /home/lorenzo/sdlpal/3ds/./pal_utils.c:30: undefined reference to `SDL_N3DSKeyBind'
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: pal_utils.o:/home/lorenzo/sdlpal/3ds/./pal_utils.c:31: more undefined references to `SDL_N3DSKeyBind' follow
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/devkitARM/3ds_rules:42: /home/lorenzo/sdlpal/3ds/sdlpal.elf] Error 1
make: *** [Makefile:140: build] Error 2

I'm using the latest packages from devkitPro pacman.

@OPL3ChipFan
Copy link
Contributor

@zephray

@glu8716
Copy link
Author

glu8716 commented Mar 25, 2023

Thanks! Now the building process works fine. However the game is freezing on the main menu by default. I tried by using the configuration file from here and it fixes the freeze problem, but the game is running pretty slow with it. I've also followed the guide here where it's said to activate the L2+Clock option in Luma if you're using a N3DS, which is what I'm using, but nothing changed for me.

EDIT: seems like that enabling L2+Clock from the Rosalina menu instead of setting it at boot does the trick. I don't know why...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@glu8716 @OPL3ChipFan and others