switchbrew / libnx

Library for Switch Homebrew

Home Page:https://switchbrew.github.io/libnx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined reference to `default_font_bin'

Fixallmyproblems opened this issue · comments

So when I try to build anything with libnx, for example switch-examples I get an error in the latest devkitA64 which says there's an undefined reference to default_font_bin which is in nx/source/runtime/devices/console.c:10 when I open it in vi it's the first thing in line 14, I'm inclined to think maybe there's something I'm missing like the #include "default_font_bin.h" file. I'm trying to setup a development toolchain for my Switch on Linux which is what I primarily use, I'm not all that fond of using pacman, it's easy and all but official releases can't build some git master repos of some things like the nx-hbloader or hekate.

commented

You should use the official releases from pacman, which is the only installation method we officially support. Please report back if you continue having this issue with a fresh toolchain+library installation from pacman.

Installed the devkitA64 and devkitARM through pacman and I still get the same undefined reference to `default_font_bin' which I think has something to do with #include "default_font_bin.h" which I don't think exists but don't know how to get

commented

Please use the stable libnx package from pacman, if you're not doing so already.

@Fixallmyproblems this was probably related to a missing bin2s tool (converts binary file into gcc asm file)

part of devkitpro's general-tools: see here https://github.com/devkitPro/general-tools/blob/master/bin2s.c

commented

Once again, people usually have no need to build libnx from source and those who attempt anyway tend to end up making a mess. Please stick to using the stable libnx package from pacman.