Page 1 of 1

Linking problem while trying to port existing project to switch

Posted: Tue Apr 23, 2019 11:03 pm
by tyum
I'm trying to import Godot into the switch. This is a large project with a different building environment (SCons) so I had to adapt that to use the devkitpro toolchain. To make things worse, I don't know much C++, so I may be asking something obvious. That said, I'm fairly technical and I can probably find my way out with some nudge in the right direction. I think I've got most things right, whole project builds fine after tweaking the build rules and pointing to the right devkitpro libraries, but I have a linking problem when using libnx. (without linking libnx I get a problem find the _start symbol, which makes sense since it's in the libnx, but no linking problems other than that)

What I actually need to understand is how to correlate the errors with what appears to be missing. I'm pretty sure I'm linking the right libraries (I even passed every single library). I tried to replicate as much as possible the actual commands ran by the devkitPro supplied examples (which build with no problems)
Am I in the right track? anything obvious I'm missing?


Actual output: https://pastebin.com/Ss5xcHWF

map (part1): https://pastebin.com/JFqXEqjH
map (part2): https://pastebin.com/fCkyi6Cv

Dev environment: OSX with latest devkitA64
Using a copy of switch.specs due to a problem with the DEVKITPRO variable not being passed by the dev environment, but otherwise the same file as the devkitpro one.

Re: Linking problem while trying to port existing project to switch

Posted: Sat Apr 27, 2019 9:36 pm
by WinterMute
A lot of work has already been done on Godot, afaik it's working reasonably well.

See https://github.com/Stary2001/godot/tree/switch