zelda3 icon indicating copy to clipboard operation
zelda3 copied to clipboard

Errors when building on steamdeck

Open thejacer87 opened this issue 3 years ago • 0 comments

just trying to get the game running on the deck.

Getting this error when trying to compile:

$ clang++ -I/usr/include/SDL2 -lSDL2 -O2 -ozelda3 *.cpp snes/*.cpp
In file included from ancilla.cpp:1:
In file included from ./ancilla.h:2:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from attract.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from dungeon.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from ending.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
hud.cpp:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from load_gfx.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
main.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from messaging.cpp:1:
In file included from ./messaging.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from misc.cpp:1:
In file included from ./misc.h:1:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from nmi.cpp:1:
In file included from ./nmi.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from other_modules.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from overlord.cpp:1:
In file included from ./overlord.h:2:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from overworld.cpp:1:
In file included from ./overworld.h:2:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from player.cpp:1:
In file included from ./player.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from player_oam.cpp:1:
In file included from ./player_oam.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from poly.cpp:1:
In file included from ./poly.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from select_file.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
spc_player.cpp:2:10: fatal error: 'string.h' file not found
#include <string.h>
         ^~~~~~~~~~
1 error generated.
In file included from sprite.cpp:1:
In file included from ./sprite.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from sprite_main.cpp:1:
In file included from ./sprite_main.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from tagalong.cpp:1:
In file included from ./tagalong.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from tile_detect.cpp:1:
In file included from ./tile_detect.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
tracing.cpp:4:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
In file included from zelda_cpu_infra.cpp:3:
In file included from ./zelda_cpu_infra.h:2:
./types.h:2:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
         ^~~~~~~~~~
1 error generated.
In file included from zelda_rtl.cpp:1:
./zelda_rtl.h:3:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/apu.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/cart.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/cpu.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/dma.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/dsp.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/input.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/ppu.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/snes.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/snes_other.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
snes/spc.cpp:2:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
         ```

thejacer87 avatar Aug 22 '22 02:08 thejacer87