Closed ImanCol closed 2 years ago
@ImanCol Hi mate.
I don't mind helping you out with how to compile, however if you're just getting into Switch development I would recommend you learn to compile the examples that come with the devkitPRO installation.
Also, this is not something to open an issue for. You should have gone to the forums and looked at tutorial basics on how to compile the Switch examples, including the SDL and OpenGL examples.
Now, the compiler issues you're getting are due to missing libraries. The default installation of devkitPRO won't install extra libraries like GLFW, SDL, or LIBAV.
So you'll need to use pacman to get the missing libraries. To do this:
pacman -Syu
to make sure it's up to datepacman -S switch-portlibs
make -j
to allow multi-threaded compilation)For future reference, if you want to see if a library exists, you can search in pacman for libraries. So for example, the above was saying 'SDL' is a missing dependency. So you can try to find the library by doing pacman -Ss sdl
and it will list all packages that contain the keyword 'sdl'. To find switch related packages, you can do pacman -Ss switch
.
Hope that helps.
I am learning how to compile on Switch. I can't find detailed instructions on how to compile the .nro
Just install devkitpro here I opened MSys2 installed by DevKitPRO, I went to the folder "switch-remote-play\switch-project\" and run Make -i.
These are the results: