Hello I try to compile fbzx Zx Spectrum Emulator and I need to compile it with SDL.
How Can I compile it with SDL library. I downloaded sources from SDL library and put header files to include PATH and when I try to compile I will get folllowing errors.
first I miss sdl-config binary and what about another errors.
What am I doing wrong?
Have I whong version of SDL headers .... ?
Please help someone more experienced
gcc -Wall -O2 -c -o computer.o computer.c
gcc -Wall -O2 -c -o Z80.o Z80.c
make: sdl-config: Command not found
ŔR@ŔR@gcc -Wall -O2 -c -o emulator.o emulator.c
gcc -Wall -O2 -c -o cargador.o cargador.c
gcc -Wall -O2 -c -o characters.o characters.c
gcc -Wall -O2 -c -o menus.o menus.c
gcc -Wall -O2 -c -o sound.o sound.c
gcc -Wall -O2 -c -o tape.o tape.c
gcc -Wall -O2 -c -o spk_ay.o spk_ay.c
spk_ay.c: In function `play_ay':
spk_ay.c:77: warning: comparison is always false due to limited range of data type
spk_ay.c:101: warning: comparison is always false due to limited range of data type
spk_ay.c:115: warning: comparison is always false due to limited range of data type
gcc -Wall -O2 -c -o microdrive.o microdrive.c
make: sdl-config: Command not found
ŔR@ŔR@gcc -O2 -o fbzx computer.o Z80.o emulator.o cargador.o characters.o menus.o\
sound.o tape.o spk_ay.o microdrive.o
computer.o: In function `register_screen':
computer.o(.text+0x358): undefined reference to `SDL_SetColors'
computer.o(.text+0x358): relocation truncated to fit: R_ARM_PC24 SDL_SetColors
computer.o: In function `show_screen':
computer.o(.text+0x1320): undefined reference to `SDL_UnlockSurface'
computer.o(.text+0x1320): relocation truncated to fit: R_ARM_PC24 SDL_UnlockSurface
computer.o(.text+0x1328): undefined reference to `SDL_Flip'
computer.o(.text+0x1328): relocation truncated to fit: R_ARM_PC24 SDL_Flip
computer.o(.text+0x1330): undefined reference to `SDL_LockSurface'
computer.o(.text+0x1330): relocation truncated to fit: R_ARM_PC24 SDL_LockSurface
computer.o(.text+0x1358): undefined reference to `SDL_Flip'
computer.o(.text+0x1358): relocation truncated to fit: R_ARM_PC24 SDL_Flip
computer.o: In function `read_keyboard':
computer.o(.text+0x15a8): undefined reference to `SDL_PollEvent'
computer.o(.text+0x15a8): relocation truncated to fit: R_ARM_PC24 SDL_PollEvent
computer.o(.text+0x16a4): undefined reference to `SDL_PauseAudio'
computer.o(.text+0x16a4): relocation truncated to fit: R_ARM_PC24 SDL_PauseAudio
computer.o(.text+0x16b4): undefined reference to `SDL_PauseAudio'
computer.o(.text+0x16b4): relocation truncated to fit: R_ARM_PC24 SDL_PauseAudio
computer.o(.text+0x16c4): undefined reference to `SDL_PauseAudio'
computer.o(.text+0x16c4): relocation truncated to fit: R_ARM_PC24 SDL_PauseAudio
computer.o(.text+0x16d4): undefined reference to `SDL_PauseAudio'
computer.o(.text+0x16d4): relocation truncated to fit: R_ARM_PC24 SDL_PauseAudio
computer.o(.text+0x1758): undefined reference to `SDL_PauseAudio'
computer.o(.text+0x1758): relocation truncated to fit: R_ARM_PC24 SDL_PauseAudio
computer.o(.text+0x1764): more undefined references to `SDL_PauseAudio' follow
computer.o: In function `read_keyboard':
computer.o(.text+0x1764): relocation truncated to fit: R_ARM_PC24 SDL_PauseAudio
emulator.o: In function `init_screen':
emulator.o(.text+0x168): undefined reference to `SDL_Init'
emulator.o(.text+0x168): relocation truncated to fit: R_ARM_PC24 SDL_Init
emulator.o(.text+0x194): undefined reference to `SDL_SetVideoMode'
emulator.o(.text+0x194): relocation truncated to fit: R_ARM_PC24 SDL_SetVideoMode
emulator.o(.text+0x1fc): undefined reference to `SDL_LockSurface'
emulator.o(.text+0x1fc): relocation truncated to fit: R_ARM_PC24 SDL_LockSurface
emulator.o: In function `end_system':
emulator.o(.text+0x380): undefined reference to `SDL_UnlockSurface'
emulator.o(.text+0x380): relocation truncated to fit: R_ARM_PC24 SDL_UnlockSurface
emulator.o(.text+0x39c): undefined reference to `SDL_Quit'
emulator.o(.text+0x39c): relocation truncated to fit: R_ARM_PC24 SDL_Quit
emulator.o: In function `main':
emulator.o(.text+0x4c0): undefined reference to `SDL_EventState'
emulator.o(.text+0x4c0): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x4cc): undefined reference to `SDL_EventState'
emulator.o(.text+0x4cc): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x4d8): undefined reference to `SDL_EventState'
emulator.o(.text+0x4d8): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x4e4): undefined reference to `SDL_EventState'
emulator.o(.text+0x4e4): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x4f0): undefined reference to `SDL_EventState'
emulator.o(.text+0x4f0): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x4fc): more undefined references to `SDL_EventState' follow
emulator.o: In function `main':
emulator.o(.text+0x4fc): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x508): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x514): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x520): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x52c): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x538): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x544): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x550): relocation truncated to fit: R_ARM_PC24 SDL_EventState
emulator.o(.text+0x558): undefined reference to `SDL_ShowCursor'
emulator.o(.text+0x558): relocation truncated to fit: R_ARM_PC24 SDL_ShowCursor
menus.o: In function `wait_key':
menus.o(.text+0x36e4): undefined reference to `SDL_Flip'
menus.o(.text+0x36e4): relocation truncated to fit: R_ARM_PC24 SDL_Flip
menus.o(.text+0x36ec): undefined reference to `SDL_WaitEvent'
menus.o(.text+0x36ec): relocation truncated to fit: R_ARM_PC24 SDL_WaitEvent
collect2: ld returned 1 exit status
make: *** [fbzx] Error 1