Kirjoittaja Aihe: Blocko Fighter  (Luettu 3532 kertaa)

Tomin

  • Palvelimen ylläpitäjä
  • Käyttäjä / moderaattori+
  • Viestejä: 11443
    • Profiili
    • Tomin kotisivut
Blocko Fighter
« : 23.06.08 - klo:12.48 »
Yritin kääntää Blocko Fighteria, mutta:
Koodia: [Valitse]
tomppeliserver@tomppeli-server:~/bf$ make
c++ -I. -O3 `sdl-config --cflags` -DUSEFMOD=1 -s -c -o src/3dutils.o src/3dutils.cpp
/bin/sh: sdl-config: not found
In file included from src/3dutils.cpp:1:
src/main.h:61:17: error: SDL.h: No such file or directory
In file included from src/3dutils.h:82,
                 from src/3dutils.cpp:3:
src/texture.h:33:23: error: SDL_image.h: No such file or directory
In file included from src/3dutils.cpp:12:
src/glapi.h:34:24: error: SDL_opengl.h: No such file or directory
In file included from src/3dutils.cpp:1:
src/main.h:64: error: ‘SDLK_LAST’ was not declared in this scope
In file included from src/3dutils.h:82,
                 from src/3dutils.cpp:3:
src/texture.h:62: error: ISO C++ forbids declaration of ‘SDL_Surface’ with no type
src/texture.h:62: error: expected ‘;’ before ‘*’ token
src/3dutils.cpp: In function ‘void createLathedSurface(point2d*, point2d*, int, int, int)’:
src/3dutils.cpp:107: error: ‘GL_QUAD_STRIP’ was not declared in this scope
src/3dutils.cpp:107: error: ‘glBegin’ was not declared in this scope
src/3dutils.cpp:114: error: ‘glNormal3f’ was not declared in this scope
src/3dutils.cpp:118: error: ‘glTexCoord2f’ was not declared in this scope
src/3dutils.cpp:119: error: ‘glVertex3f’ was not declared in this scope
src/3dutils.cpp:131: error: ‘glEnd’ was not declared in this scope
src/3dutils.cpp: At global scope:
src/3dutils.cpp:140: error: expected constructor, destructor, or type conversion before ‘*’ token
src/3dutils.cpp: In function ‘void createSphere(float, int, int)’:
src/3dutils.cpp:149: error: ‘spherequadric’ was not declared in this scope
src/3dutils.cpp:149: error: ‘gluSphere’ was not declared in this scope
src/3dutils.cpp: In function ‘void createSkyBox(float, float, float, float, float, float)’:
src/3dutils.cpp:206: error: ‘GL_TEXTURE_2D’ was not declared in this scope
src/3dutils.cpp:206: error: ‘glEnable’ was not declared in this scope
src/3dutils.cpp:207: error: ‘GL_DEPTH_BUFFER_BIT’ was not declared in this scope
src/3dutils.cpp:207: error: ‘glClear’ was not declared in this scope
src/3dutils.cpp:208: error: ‘GL_DEPTH_TEST’ was not declared in this scope
src/3dutils.cpp:208: error: ‘glDisable’ was not declared in this scope
src/3dutils.cpp:209: error: ‘GL_BLEND’ was not declared in this scope
src/3dutils.cpp:210: error: ‘GL_CULL_FACE’ was not declared in this scope
src/3dutils.cpp:211: error: ‘GL_ALPHA_TEST’ was not declared in this scope
src/3dutils.cpp:212: error: ‘GL_LIGHTING’ was not declared in this scope
src/3dutils.cpp:213: error: ‘GL_FLAT’ was not declared in this scope
src/3dutils.cpp:213: error: ‘glShadeModel’ was not declared in this scope
src/3dutils.cpp:217: error: ‘GL_MODELVIEW_MATRIX’ was not declared in this scope
src/3dutils.cpp:217: error: ‘glGetFloatv’ was not declared in this scope
src/3dutils.cpp:219: error: ‘glPushMatrix’ was not declared in this scope
src/3dutils.cpp:220: error: ‘glLoadMatrixf’ was not declared in this scope
src/3dutils.cpp:223: error: ‘glCallList’ was not declared in this scope
src/3dutils.cpp:227: error: ‘glGenLists’ was not declared in this scope
src/3dutils.cpp:233: error: ‘GL_COMPILE_AND_EXECUTE’ was not declared in this scope
src/3dutils.cpp:233: error: ‘glNewList’ was not declared in this scope
src/3dutils.cpp:240: error: ‘GL_QUADS’ was not declared in this scope
src/3dutils.cpp:240: error: ‘glBegin’ was not declared in this scope
src/3dutils.cpp:241: error: ‘glColor4f’ was not declared in this scope
src/3dutils.cpp:243: error: ‘glTexCoord2f’ was not declared in this scope
src/3dutils.cpp:243: error: ‘glVertex3f’ was not declared in this scope
src/3dutils.cpp:248: error: ‘glEnd’ was not declared in this scope
src/3dutils.cpp:328: error: ‘glEndList’ was not declared in this scope
src/3dutils.cpp:331: error: ‘glPopMatrix’ was not declared in this scope
src/3dutils.cpp:336: error: ‘GL_SMOOTH’ was not declared in this scope
src/3dutils.cpp: In function ‘void enable2D()’:
src/3dutils.cpp:340: error: ‘GL_LIGHTING’ was not declared in this scope
src/3dutils.cpp:340: error: ‘glDisable’ was not declared in this scope
src/3dutils.cpp:341: error: ‘GL_CULL_FACE’ was not declared in this scope
src/3dutils.cpp:342: error: ‘GL_DEPTH_TEST’ was not declared in this scope
src/3dutils.cpp:343: error: ‘GL_PROJECTION’ was not declared in this scope
src/3dutils.cpp:343: error: ‘glMatrixMode’ was not declared in this scope
src/3dutils.cpp:344: error: ‘glPushMatrix’ was not declared in this scope
src/3dutils.cpp:345: error: ‘glLoadIdentity’ was not declared in this scope
src/3dutils.cpp:346: error: ‘gluOrtho2D’ was not declared in this scope
src/3dutils.cpp:347: error: ‘GL_MODELVIEW’ was not declared in this scope
src/3dutils.cpp: In function ‘void disable2D()’:
src/3dutils.cpp:353: error: ‘glPopMatrix’ was not declared in this scope
src/3dutils.cpp:354: error: ‘GL_PROJECTION’ was not declared in this scope
src/3dutils.cpp:354: error: ‘glMatrixMode’ was not declared in this scope
src/3dutils.cpp:356: error: ‘GL_MODELVIEW’ was not declared in this scope
src/3dutils.cpp:357: error: ‘GL_DEPTH_TEST’ was not declared in this scope
src/3dutils.cpp:357: error: ‘glEnable’ was not declared in this scope
src/3dutils.cpp:358: error: ‘GL_CULL_FACE’ was not declared in this scope
src/3dutils.cpp:359: error: ‘GL_LIGHTING’ was not declared in this scope
make: *** [src/3dutils.o] Virhe 1
tomppeliserver@tomppeli-server:~/bf$
Missähän vika?
3D on (ja tehosteet toimii):
Koodia: [Valitse]
tomppeliserver@tomppeli-server:~/bf$ glxinfo |grep direct
direct rendering: Yes
tomppeliserver@tomppeli-server:~/bf$

Tuo peli ei sitten ole varsinaista opensourcea, koska tuota koodia ei saa käyttää muuhun kuin pelin kääntämiseen (kuten Racerissa). Sen saa pelin mukana jonka voit ladata vaikkapa täältä: http://www.jonneweb.net/pelit/file/1402/blockofighter/
Automaattinen allekirjoitus:
Lisäisitkö [RATKAISTU] ketjun ensimmäisen viestin aiheeseen ongelman ratkettua, kiitos.

Tomin

  • Palvelimen ylläpitäjä
  • Käyttäjä / moderaattori+
  • Viestejä: 11443
    • Profiili
    • Tomin kotisivut
Vs: Blocko Fighter
« Vastaus #1 : 23.06.08 - klo:12.54 »
Readmen lukemisesta oli hyötyä... Piti asentaa libsdl1.2-dev ja libsdl-image1.2-dev paketit. Tosin viellä pitäisi hommata jostain FMOD...
EDIT: Lataan...
« Viimeksi muokattu: 23.06.08 - klo:12.57 kirjoittanut Tomppeli »
Automaattinen allekirjoitus:
Lisäisitkö [RATKAISTU] ketjun ensimmäisen viestin aiheeseen ongelman ratkettua, kiitos.

Tomin

  • Palvelimen ylläpitäjä
  • Käyttäjä / moderaattori+
  • Viestejä: 11443
    • Profiili
    • Tomin kotisivut
Vs: Blocko Fighter
« Vastaus #2 : 23.06.08 - klo:13.00 »
Hmm... asensin (ainakin olevinaan FMODin), mutta:
Koodia: [Valitse]
tomppeliserver@tomppeli-server:~/bf$ make
c++ -I. -O3 `sdl-config --cflags` -DUSEFMOD=1 -s -c -o src/audio.o src/audio.cpp
In file included from src/audio.cpp:45:
src/audio.h:64:18: error: fmod.h: No such file or directory
src/audio.cpp:309:2: warning: no newline at end of file
In file included from src/audio.cpp:45:
src/audio.h:83: error: ISO C++ forbids declaration of ‘FMUSIC_MODULE’ with no type
src/audio.h:83: error: expected ‘;’ before ‘*’ token
src/audio.h:84: error: ISO C++ forbids declaration of ‘FSOUND_STREAM’ with no type
src/audio.h:84: error: expected ‘;’ before ‘*’ token
src/audio.h:85: error: ISO C++ forbids declaration of ‘FSOUND_SAMPLE’ with no type
src/audio.h:85: error: expected ‘;’ before ‘*’ token
src/audio.cpp: In member function ‘void Sound::load(char*, int, bool)’:
src/audio.cpp:100: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:101: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:102: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:104: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:105: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:107: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:108: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:109: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:110: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:111: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:112: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:113: warning: deprecated conversion from string constant to ‘char*’
src/audio.cpp:116: error: ‘sample’ was not declared in this scope
src/audio.cpp:117: error: ‘module’ was not declared in this scope
src/audio.cpp:118: error: ‘stream’ was not declared in this scope
src/audio.cpp:121: error: ‘FMUSIC_LoadSong’ was not declared in this scope
src/audio.cpp:125: error: ‘FSOUND_FREE’ was not declared in this scope
src/audio.cpp:125: error: ‘FSOUND_LOOP_NORMAL’ was not declared in this scope
src/audio.cpp:125: error: ‘FSOUND_Sample_Load’ was not declared in this scope
src/audio.cpp:126: error: ‘FSOUND_Sample_SetLoopMode’ was not declared in this scope
src/audio.cpp:128: error: ‘FSOUND_FREE’ was not declared in this scope
src/audio.cpp:128: error: ‘FSOUND_LOOP_OFF’ was not declared in this scope
src/audio.cpp:128: error: ‘FSOUND_Sample_Load’ was not declared in this scope
src/audio.cpp:129: error: ‘FSOUND_Sample_SetLoopMode’ was not declared in this scope
src/audio.cpp:134: error: ‘FSOUND_LOOP_NORMAL’ was not declared in this scope
src/audio.cpp:134: error: ‘FSOUND_Stream_OpenFile’ was not declared in this scope
src/audio.cpp:136: error: ‘FSOUND_LOOP_OFF’ was not declared in this scope
src/audio.cpp:136: error: ‘FSOUND_Stream_OpenFile’ was not declared in this scope
src/audio.cpp: In member function ‘bool Sound::play()’:
src/audio.cpp:160: error: ‘module’ was not declared in this scope
src/audio.cpp:160: error: ‘FMUSIC_PlaySong’ was not declared in this scope
src/audio.cpp:161: error: ‘FMUSIC_SetMasterVolume’ was not declared in this scope
src/audio.cpp:163: error: ‘FSOUND_FREE’ was not declared in this scope
src/audio.cpp:163: error: ‘sample’ was not declared in this scope
src/audio.cpp:163: error: ‘FSOUND_PlaySound’ was not declared in this scope
src/audio.cpp:164: error: ‘FSOUND_SetVolume’ was not declared in this scope
src/audio.cpp:170: error: ‘FSOUND_FREE’ was not declared in this scope
src/audio.cpp:170: error: ‘stream’ was not declared in this scope
src/audio.cpp:170: error: ‘FSOUND_Stream_Play’ was not declared in this scope
src/audio.cpp:171: error: ‘FSOUND_SetVolume’ was not declared in this scope
src/audio.cpp: In member function ‘void Sound::stop()’:
src/audio.cpp:185: error: ‘module’ was not declared in this scope
src/audio.cpp:185: error: ‘FMUSIC_StopSong’ was not declared in this scope
src/audio.cpp:187: error: ‘FSOUND_StopSound’ was not declared in this scope
src/audio.cpp:189: error: ‘stream’ was not declared in this scope
src/audio.cpp:189: error: ‘FSOUND_Stream_Stop’ was not declared in this scope
src/audio.cpp: In member function ‘void Sound::setVolume(float)’:
src/audio.cpp:198: error: ‘module’ was not declared in this scope
src/audio.cpp:198: error: ‘FMUSIC_SetMasterVolume’ was not declared in this scope
src/audio.cpp:200: error: ‘FSOUND_SetVolume’ was not declared in this scope
src/audio.cpp:202: error: ‘FSOUND_SetVolume’ was not declared in this scope
src/audio.cpp: At global scope:
src/audio.cpp:209: error: ‘FSOUND_STREAM’ was not declared in this scope
src/audio.cpp:209: error: ‘stream’ was not declared in this scope
src/audio.cpp:209: error: expected primary-expression before ‘void’
src/audio.cpp:209: error: expected primary-expression before ‘int’
src/audio.cpp:209: error: expected primary-expression before ‘int’
src/audio.cpp:209: error: initializer expression list treated as compound expression
src/audio.cpp:209: error: expected ‘,’ or ‘;’ before ‘{’ token
src/audio.cpp: In member function ‘void Sound::setStopCallback(void (*)(Sound*))’:
src/audio.cpp:223: error: ‘stream’ was not declared in this scope
src/audio.cpp:223: error: ‘FSOUND_Stream_SetEndCallback’ was not declared in this scope
src/audio.cpp: In member function ‘bool Sound::isFinished()’:
src/audio.cpp:237: error: ‘module’ was not declared in this scope
src/audio.cpp:237: error: ‘FMUSIC_IsFinished’ was not declared in this scope
src/audio.cpp: In function ‘void initAudio()’:
src/audio.cpp:292: error: ‘FSOUND_Init’ was not declared in this scope
src/audio.cpp: In function ‘void uninitAudio()’:
src/audio.cpp:298: error: ‘FSOUND_Close’ was not declared in this scope
make: *** [src/audio.o] Virhe 1
tomppeliserver@tomppeli-server:~/bf$
Nyt olen aika neuvoton... Mitähän minun kannattaisi tehdä? Asensin tuon FMODin komentamalla sen kansiossa (jonka olin juuri purkanut) sudo make install
« Viimeksi muokattu: 23.06.08 - klo:13.07 kirjoittanut Tomppeli »
Automaattinen allekirjoitus:
Lisäisitkö [RATKAISTU] ketjun ensimmäisen viestin aiheeseen ongelman ratkettua, kiitos.