jtothebell / fake-08

A Pico-8 player/emulator for console homebrew
Other
563 stars 49 forks source link

Fatal error: fix32.h: no such file or directory when trying to build the 3DS version #128

Closed Awheelbarrow closed 2 years ago

Awheelbarrow commented 2 years ago

I've been trying to get Fake-08 on my homebrewed 3DS and I managed to get real far as to building it from source. I installed pacman on my Pop!_OS machine and managed to set my devkitpro and devkitARM paths but make 3ds halts with the error:

Git_clones/fake-08/platform/3ds/../../source/graphics.h:7:10: fatal error: fix32.h: No such file or directory

7 | #include <fix32.h>

| ^~~~~~~~~

How can I go about fixing this? Where can I get this file and how can I configure it to have this library be included?

jtothebell commented 2 years ago

You need to clone the submodules as well: https://stackoverflow.com/a/4438292

DPS2004 commented 2 years ago

If you are building it yourself for 3ds, make sure use citro2d 1.5 instead of latest to avoid a screen tearing bug

Awheelbarrow commented 2 years ago

If you are building it yourself for 3ds, make sure use citro2d 1.5 instead of latest to avoid a https://github.com/jtothebell/fake-08/issues/106#issuecomment-1082465258

I installed citro2d 1.6 through pacman. I'm new to GitHub and building from source in general and I'm asking because I don't want to screw up. Which is the more convenient way to downgrade my citro2d installation? Found some — from what I can tell — citro related files in /opt/devkitpro/libctru/lib and /opt/devkitpro/libctru/include. Do I have to remove them and get the 1.5 version from citro2d's GitHub repo or is there a simpler way to do it? Thank you for your patience.

Edit: After intensive searching, I managed to find a mirror to the citro2d 1.5 version here: https://ddl.homebrew.cloud/devkitPro%20Mirror/other-stuff/citro3d-1.5.0-1-any.pkg.tar.xz I simply replace the files in my opt folder with these. The code managed to get compiled.