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 reference to `default_font_bin' #339

Closed
Fixallmyproblems opened this issue Oct 21, 2019 · 5 comments
Closed

Undefined reference to `default_font_bin' #339

Fixallmyproblems opened this issue Oct 21, 2019 · 5 comments

Comments

@Fixallmyproblems
Copy link

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.

@fincs
Copy link
Contributor

fincs commented Oct 21, 2019

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.

@Fixallmyproblems
Copy link
Author

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

@fincs
Copy link
Contributor

fincs commented Oct 21, 2019

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

@fincs fincs closed this as completed Oct 24, 2019
@justinkb
Copy link

justinkb commented Mar 4, 2020

@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

@fincs
Copy link
Contributor

fincs commented Mar 4, 2020

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.

@switchbrew switchbrew locked as resolved and limited conversation to collaborators Mar 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants