Linking problem while trying to port existing project to switch

support for the ARM toolchain
Post Reply
tyum
Posts: 1
Joined: Tue Apr 23, 2019 10:28 pm

Linking problem while trying to port existing project to switch

Post by tyum » Tue Apr 23, 2019 11:03 pm

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.

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Sat Apr 27, 2019 9:36 pm

A lot of work has already been done on Godot, afaik it's working reasonably well.

See https://github.com/Stary2001/godot/tree/switch
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests