OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Compile With Sdl
merli
post Nov 30 2005, 04:51 AM
Post #1





Group: Members
Posts: 227
Joined: 27-April 05
Member No.: 7,008



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
Go to the top of the page
 
+Quote Post
merli
post Nov 30 2005, 06:35 AM
Post #2





Group: Members
Posts: 227
Joined: 27-April 05
Member No.: 7,008



I finally managed to compile ZX Spectrum emulator fbzx on c1000 with zgcc but when I try to run it, emulator does not display correctly but it runs meshed in left 1/5th of c1000 screen. I think that there will be problem with settings of SDL library. I used sdl library dev package from this web http://www.gnurou.org/Code/SharpZaurus. I'd like to have it double sized (because Spectrum sceen is 255x192). What should I do in sources or settings SDL? Please help. I am totally newbie to compiling and porting appz for Z.
Go to the top of the page
 
+Quote Post
merli
post Dec 1 2005, 07:37 AM
Post #3





Group: Members
Posts: 227
Joined: 27-April 05
Member No.: 7,008



Hello

Problem is that Spectrum emulator fbzx sees Zaurus screen as 480x640. And it mess whole display. When I edit source and change Set sreen from 640x480 to 480x640 all screen is used correctly but emulator is meessed as if it would in portrait mode (but still messed because geometry does not work ok). I tried to tell emulator by set variable SDL_QT_INVERT_ROTATION to 1 but it wont work. Emulator ignores this variable. After compile ldd fbvx prints no libsdl. Can it be issue?
Help if you have more experience how to set up SDL to rotated mode.

Than You
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd December 2014 - 10:28 AM