Newsgroup: it.comp.software.emulatori
Titolo: daphne e linux (un po' lungo)

Salve a tutti i membri del newsgroup
Sto tentando di usare il daphne su linux, ma sono molto niubbo e non riesco
a compilare i sorgenti.. Uso suse 9.0 e questo e' l'output dell'errore:
linux:/home/mbar/sdq/daphne/src # make
Makefile:39: daphne.d: No such file or directory
set -e; g++ -MM -O3 -march=i686 -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer
-fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX
-DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline daphne.cpp \
                | sed 's^\(daphne\)\.o[ :]*^\1.o daphne.d : ^g' > daphne.d;
\
                [ -s daphne.d ] || rm -f daphne.d
/bin/sh: line 1: sdl-config: command not found
In file included from daphne.cpp:53:
io/input.h:24:17: SDL.h: No such file or directory
In file included from daphne.cpp:62:
video/video.h:29:17: SDL.h: No such file or directory
g++ -O3 -march=i686 -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer
-fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX
-DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline -c daphne.cpp -o
daphne.o
/bin/sh: line 1: sdl-config: command not found
daphne.cpp:44:22: SDL_main.h: No such file or directory
In file included from daphne.cpp:53:
io/input.h:24:17: SDL.h: No such file or directory
In file included from daphne.cpp:53:
io/input.h:30: error: `SDL_Event' was not declared in this scope
io/input.h:30: error: `event' was not declared in this scope
io/input.h:30: error: variable or field `process_event' declared void
io/input.h:31: error: `SDLKey' was not declared in this scope
io/input.h:31: error: parse error before `)' token
io/input.h:32: error: `SDLKey' was not declared in this scope
io/input.h:32: error: parse error before `)' token
io/input.h:33: error: `SDL_Event' was not declared in this scope
io/input.h:33: error: `event' was not declared in this scope
io/input.h:33: error: variable or field `process_joystick_motion' declared
void
io/input.h:37: error: `Uint8' was not declared in this scope
io/input.h:37: error: variable or field `input_enable' declared void
io/input.h:38: error: `Uint8' was not declared in this scope
io/input.h:38: error: variable or field `input_disable' declared void
In file included from daphne.cpp:57:
sound/sound.h:26:17: SDL.h: No such file or directory
In file included from daphne.cpp:57:
sound/sound.h:33: error: `Uint16' was not declared in this scope
sound/sound.h:33: error: parse error before `)' token
sound/sound.h:36: error: `Uint32' was not declared in this scope
sound/sound.h:36: error: parse error before `)' token
sound/sound.h:38: error: `Uint8' was not declared in this scope
sound/sound.h:38: error: `Uint8' was not declared in this scope
sound/sound.h:38: error: variable or field `sound_volume' declared void
sound/sound.h:38: error: initializer list being treated as compound
expression
In file included from daphne.cpp:62:
video/video.h:29:17: SDL.h: No such file or directory
In file included from daphne.cpp:62:
video/video.h:39: error: type specifier omitted for parameter `SDL_Surface'
video/video.h:39: error: parse error before `*' token
video/video.h:43: error: syntax error before `*' token
video/video.h:44: error: `SDL_Surface' was not declared in this scope
video/video.h:44: error: parse error before `)' token
video/video.h:46: error: syntax error before `*' token
video/video.h:49: error: parse error before `)' token
video/video.h:50: error: `Uint16' was not declared in this scope
video/video.h:50: error: variable or field `set_video_width' declared void
video/video.h:51: error: parse error before `)' token
video/video.h:52: error: `Uint16' was not declared in this scope
video/video.h:52: error: variable or field `set_video_height' declared void
video/video.h:53: error: `SDL_Overlay' was not declared in this scope
video/video.h:53: error: `yuvimage' was not declared in this scope
video/video.h:53: error: variable or field `take_screenshot' declared void
video/video.h:54: error: `SDL_Surface' was not declared in this scope
video/video.h:54: error: `shot' was not declared in this scope
video/video.h:54: error: variable or field `save_screenshot' declared void
video/video.h:55: error: parse error before `char'
video/video.h:56: error: type specifier omitted for parameter `SDL_Surface'
video/video.h:56: error: parse error before `*' token
In file included from daphne.cpp:64:
ldp-out/ldp.h:33:48: SDL.h: No such file or directory
In file included from daphne.cpp:64:
ldp-out/ldp.h:48: error: `Uint16' was not declared in this scope
ldp-out/ldp.h:48: error: invalid data member initialization
ldp-out/ldp.h:48: error: (use `=' to initialize static data members)
ldp-out/ldp.h:49: error: `Uint16' was not declared in this scope
ldp-out/ldp.h:49: error: invalid data member initialization
ldp-out/ldp.h:51: error: `Uint16' was not declared in this scope
ldp-out/ldp.h:51: error: parse error before `,' token
ldp-out/ldp.h:55: error: `Uint16' was not declared in this scope
ldp-out/ldp.h:55: error: parse error before `,' token
ldp-out/ldp.h:61: error: `Uint8' was not declared in this scope
ldp-out/ldp.h:61: error: invalid data member initialization
ldp-out/ldp.h:61: error: variable or field `set_play_speed' declared void
ldp-out/ldp.h:61: error: `set_play_speed' declared as a `virtual' field
ldp-out/ldp.h:66: error: ISO C++ forbids declaration of `Uint16' with no
type
ldp-out/ldp.h:66: error: `Uint16' declared as a `virtual' field
ldp-out/ldp.h:66: error: parse error before `(' token
ldp-out/ldp.h:78: error: invalid use of member `ldp::Uint16'
ldp-out/ldp.h:78: error: parse error before `*' token
ldp-out/ldp.h:79: error: parse error before `)' token
ldp-out/ldp.h:80: error: `Uint32' was not declared in this scope
ldp-out/ldp.h:80: error: invalid data member initialization
ldp-out/ldp.h:80: error: variable or field `set_search_latency' declared
void
ldp-out/ldp.h:83: error: parse error before `)' token
ldp-out/ldp.h:84: error: parse error before `)' token
ldp-out/ldp.h:85: error: `Uint32' was not declared in this scope
ldp-out/ldp.h:85: error: invalid data member initialization
ldp-out/ldp.h:85: error: `lock_overlay' declared as a `virtual' field
ldp-out/ldp.h:86: error: `Uint32' was not declared in this scope
ldp-out/ldp.h:86: error: invalid data member initialization
ldp-out/ldp.h:86: error: `unlock_overlay' declared as a `virtual' field
ldp-out/ldp.h:95: error: 'Uint16' is used as a type, but is not defined as a
   type.
ldp-out/ldp.h:96: error: 'Uint16' is used as a type, but is not defined as a
   type.
ldp-out/ldp.h:97: error: 'Uint64' is used as a type, but is not defined as a
   type.
ldp-out/ldp.h:98: error: 'Uint32' is used as a type, but is not defined as a
   type.
ldp-out/ldp.h:100: error: 'Uint32' is used as a type, but is not defined as
a
   type.
ldp-out/ldp.h:102: error: 'Uint32' is used as a type, but is not defined as
a
   type.
ldp-out/ldp.h:103: error: 'Uint32' is used as a type, but is not defined as
a
   type.
In file included from daphne.cpp:65:
video/SDL_Console.h:14: error: `SDL_Event' was not declared in this scope
video/SDL_Console.h:14: error: `event' was not declared in this scope
video/SDL_Console.h:14: error: variable or field `ConsoleEvents' declared
void
video/SDL_Console.h:17: error: type specifier omitted for parameter `
   SDL_Surface'
video/SDL_Console.h:17: error: parse error before `*' token
In file included from daphne.cpp:66:
video/scoreboard.h:28: error: `SDL_Surface' was not declared in this scope
video/scoreboard.h:28: error: `overlay' was not declared in this scope
video/scoreboard.h:28: error: parse error before `)' token
In file included from daphne.cpp:69:
cpu/cpu.h:26:48: SDL.h: No such file or directory
In file included from daphne.cpp:69:
cpu/cpu.h:39: error: 'Uint32' is used as a type, but is not defined as a
type.
cpu/cpu.h:40: error: 'Uint16' is used as a type, but is not defined as a
type.
cpu/cpu.h:44: error: syntax error before `*' token
cpu/cpu.h:47: error: 'Uint8' is used as a type, but is not defined as a
type.
cpu/cpu.h:50: error: `Uint8' was not declared in this scope
cpu/cpu.h:50: error: parse error before `)' token
cpu/cpu.h:51: error: `execute_callback' was not declared in this scope
cpu/cpu.h:51: error: `Uint32' was not declared in this scope
cpu/cpu.h:51: error: variable declaration is not allowed here
cpu/cpu.h:52: error: `getcontext_callback' was not declared in this scope
cpu/cpu.h:52: error: variable declaration is not allowed here
cpu/cpu.h:54: error: `Uint32' was not declared in this scope
cpu/cpu.h:54: error: variable declaration is not allowed here
cpu/cpu.h:55: error: `elapsedcycles_callback' was not declared in this scope
cpu/cpu.h:55: error: variable declaration is not allowed here
cpu/cpu.h:63: error: 'Uint64' is used as a type, but is not defined as a
type.
cpu/cpu.h:64: error: parse error before `[' token
cpu/cpu.h:75: error: parse error before `)' token
cpu/cpu.h:76: error: `Uint8' was not declared in this scope
cpu/cpu.h:76: error: parse error before `)' token
cpu/cpu.h:77: error: `Uint8' was not declared in this scope
cpu/cpu.h:77: error: parse error before `)' token
cpu/cpu.h:79: error: syntax error before `*' token
cpu/cpu.h:80: error: `Uint8' was not declared in this scope
cpu/cpu.h:80: error: parse error before `)' token
cpu/cpu.h:81: error: `Uint8' was not declared in this scope
cpu/cpu.h:81: error: parse error before `)' token
cpu/cpu.h:82: error: `Uint8' was not declared in this scope
cpu/cpu.h:82: error: parse error before `,' token
cpu/cpu.h:83: error: `Uint8' was not declared in this scope
cpu/cpu.h:83: error: parse error before `,' token
cpu/cpu.h:87: error: `Uint8' was not declared in this scope
cpu/cpu.h:87: error: `buf' was not declared in this scope
cpu/cpu.h:87: error: variable or field `generic_6502_setmemory' declared
void
cpu/cpu.h:88: error: parse error before `*' token
cpu/cpu.h:90: error: parse error before `)' token
In file included from daphne.cpp:70:
game/game.h:40:17: SDL.h: No such file or directory
In file included from daphne.cpp:70:
game/game.h:50: error: 'Uint16' is used as a type, but is not defined as a
   type.
game/game.h:60: error: syntax error before `*' token
game/game.h:77: error: ISO C++ forbids declaration of `Uint8' with no type
game/game.h:77: error: `Uint8' declared as a `virtual' field
game/game.h:77: error: parse error before `(' token
game/game.h:78: error: `Uint16' was not declared in this scope
game/game.h:78: error: parse error before `,' token
game/game.h:79: error: ISO C++ forbids declaration of `Uint8' with no type
game/game.h:79: error: `Uint8' declared as a `virtual' field
game/game.h:79: error: declaration of `int game::Uint8'
game/game.h:77: error: conflicts with previous declaration `int game::Uint8'
game/game.h:79: error: parse error before `(' token
game/game.h:80: error: `Uint16' was not declared in this scope
game/game.h:80: error: parse error before `,' token
game/game.h:81: error: `Uint32' was not declared in this scope
game/game.h:81: error: parse error before `)' token
game/game.h:82: error: invalid use of member `game::Uint8'
game/game.h:82: error: invalid data member initialization
game/game.h:82: error: variable or field `input_enable' declared void
game/game.h:82: error: `input_enable' declared as a `virtual' field
game/game.h:83: error: invalid use of member `game::Uint8'
game/game.h:83: error: invalid data member initialization
game/game.h:83: error: variable or field `input_disable' declared void
game/game.h:83: error: `input_disable' declared as a `virtual' field
game/game.h:118: error: type specifier omitted for parameter `Uint32'
game/game.h:118: error: parse error before `)' token
game/game.h:122: error: syntax error before `*' token
game/game.h:123: error: syntax error before `*' token
game/game.h:124: error: syntax error before `*' token
game/game.h:130: error: parse error before `)' token
game/game.h:131: error: parse error before `)' token
game/game.h:143: error: parse error before `[' token
game/game.h:146: error: 'Uint8' is used as a type, but is not defined as a
   type.
game/game.h:147: error: 'Uint32' is used as a type, but is not defined as a
   type.
game/game.h:152: error: syntax error before `*' token
game/game.h:153: error: 'Uint32' is used as a type, but is not defined as a
   type.
game/game.h:158: error: syntax error before `*' token
game/game.h:165: error: 'Uint32' is used as a type, but is not defined as a
   type.
game/game.h:166: error: 'Uint32' is used as a type, but is not defined as a
   type.
game/game.h:177: error: type specifier omitted for parameter `Uint8'
game/game.h:177: error: parse error before `*' token
game/game.h:178: error: type specifier omitted for parameter `Uint8'
game/game.h:178: error: parse error before `*' token
game/game.h:178: error: `bool game::load_rom(...)' and `bool
   game::load_rom(...)' cannot be overloaded
game/game.h:179: error: type specifier omitted for parameter `Uint8'
game/game.h:179: error: parse error before `*' token
In file included from daphne.cpp:72:
globals.h:29: error: parse error before `=' token
globals.h:31: error: parse error before `=' token
globals.h:37: error: parse error before `=' token
globals.h:41: error: parse error before `=' token
globals.h:43: error: parse error before `=' token
globals.h:44: error: parse error before `=' token
daphne.cpp: In function `void set_quitflag()':
daphne.cpp:106: error: `quitflag' undeclared (first use this function)
daphne.cpp:106: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
daphne.cpp: In function `int main(int, char**)':
daphne.cpp:131: error: `SDL_INIT_NOPARACHUTE' undeclared (first use this
   function)
daphne.cpp:131: error: `SDL_Init' undeclared (first use this function)
daphne.cpp:167: error: `SDL_Delay' undeclared (first use this function)
daphne.cpp:248: error: `SDL_Quit' undeclared (first use this function)
daphne.cpp: In function `void set_serial_port(unsigned char)':
daphne.cpp:257: error: `serial_port' undeclared (first use this function)
daphne.cpp: In function `unsigned char get_frame_modifier()':
daphne.cpp:288: error: `frame_modifier' undeclared (first use this function)
daphne.cpp: In function `void set_scoreboard(unsigned char)':
daphne.cpp:298: error: `realscoreboard' undeclared (first use this function)
daphne.cpp: In function `void set_scoreboard_port(unsigned char)':
daphne.cpp:308: error: `rsb_port' undeclared (first use this function)
make: *** [daphne.o] Error 1
Grazie a chi mi sapra' aiutare.
--
ciao Mbar
togli le xxx dall'indirizzo per rispondermi

 Grazie a chi mi sapra' aiutare.
Mah, a prima vista si direbbe che ti mancano gli header delle librerie 
SDL, o che le librerie siano linkate e/o installate male, o che proprio 
non ci siano. Senza di esse non usi la maggior parte dei giochi su 
Linux, se sono installate e configurate male non puoi compirlare nulla 
che ne faccia uso. Cheers,
p.bes

> ...non puoi compirlare nulla :o)
              ^^^^^^^^^^
-- 
ZaXxon

 che ne faccia uso. Cheers,
Le sdl per essere installate sono installate, ma headers e link ad esse non
so' proprio come farli :-(( C'e' un how-to o una faqs che mi aiuti? 
Sul sito ufficiale del daphne non ho trovato nulla, e sono ancora molto
niubbo. :-(
Grazie cmq per le info


 Grazie cmq per le info
Devi installare il pacchetto dev delle sdl! All'interno trovi gli header
che ti servono :)
PS Questa comunque era più una domanda da icoli ;)

 PS Questa comunque era più una domanda da icoli ;)
ho installato tutte le librerie richieste, ma niente c'e' sempre un mex
d'errore (che cmq ho postato anche su icoli).
ho letto le istruzioni fornite con i sorgenti, ma sono troppo striminzite
per me che sono niubbo :-(( Conoscete un sito che possa illuminarmi?
Oppure esiste una versione del daphne gia' compilata per la suse 9.0?
Grazie ancora per la vs pazienza.
