Compile errors on Debian

Discuss about Blockout II from Jean-Luc, post your feature requests etc.

Compile errors on Debian

Postby notoriousxl » Tue Sep 25, 2007 11:02 pm

Hi
I\'m using Debian Lenny (Testing) with a Powerpc, so, if I want to play this wonderful game, I have to compile it.
I\'ve installed these packages:
libgl1-mesa-dev
libsdl1.2-dev
libsdl-mixer1.2-dev

I\'ve succesfully compiled ImageLib under contrib/ImageLib/src; but when I try to compile Blockout2_GL, I get these errors (sorry for the LONG list):
Code: Select all
GLApp/GLApp.h:5:17: error: SDL.h: No such file or directory
GLApp/GLApp.h:6:24: error: SDL_opengl.h: No such file or directory
In file included from Game.h:26,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
SoundManager.h:18:23: error: SDL_mixer.h: No such file or directory
In file included from Game.h:19,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
GLApp/GLApp.h:79: error: ‘SDL_Event’ has not been declared
In file included from Game.h:20,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
GLApp/GLSprite.h:33: error: ‘GLuint’ does not name a type
GLApp/GLSprite.h:44: error: ‘GLfloat’ does not name a type
In file included from Game.h:21,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
GLApp/GLMatrix.h:30: error: ISO C++ forbids declaration of ‘GLfloat’ with no type
GLApp/GLMatrix.h:30: error: expected ‘;’ before ‘*’ token
GLApp/GLMatrix.h:31: error: ‘GLfloat’ has not been declared
In file included from Game.h:22,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
GLApp/GLFont.h:28: error: ‘GLuint’ does not name a type
GLApp/GLFont.h:31: error: ‘GLfloat’ does not name a type
In file included from PolyCube.h:18,
                 from Pit.h:18,
                 from Game.h:23,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
Types.h:146: error: ‘GLuint’ has not been declared
In file included from Pit.h:18,
                 from Game.h:23,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
PolyCube.h:85: error: ‘GLuint’ does not name a type
PolyCube.h:86: error: ‘GLuint’ does not name a type
In file included from Game.h:23,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
Pit.h:82: error: ‘GLuint’ does not name a type
Pit.h:98: error: ‘GLuint’ does not name a type
Pit.h:99: error: ‘GLuint’ does not name a type
Pit.h:100: error: ‘GLuint’ does not name a type
Pit.h:101: error: ‘GLuint’ does not name a type
Pit.h:102: error: ‘GLuint’ does not name a type
Pit.h:103: error: ‘GLuint’ does not name a type
Pit.h:104: error: ‘GLuint’ does not name a type
Pit.h:109: error: ISO C++ forbids declaration of ‘GLfloat’ with no type
Pit.h:109: error: expected ‘;’ before ‘*’ token
Pit.h:129: error: ‘GLuint’ does not name a type
Pit.h:130: error: ‘GLuint’ does not name a type
In file included from Game.h:26,
                 from BlockOut.h:18,
                 from BlockOut.cpp:18:
SoundManager.h:58: error: ‘Mix_Chunk’ has not been declared
SoundManager.h:63: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:63: error: expected ‘;’ before ‘*’ token
SoundManager.h:64: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:64: error: expected ‘;’ before ‘*’ token
SoundManager.h:65: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:65: error: expected ‘;’ before ‘*’ token
SoundManager.h:66: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:66: error: expected ‘;’ before ‘*’ token
SoundManager.h:67: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:67: error: expected ‘;’ before ‘*’ token
SoundManager.h:68: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:68: error: expected ‘;’ before ‘*’ token
SoundManager.h:69: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:69: error: expected ‘;’ before ‘*’ token
SoundManager.h:70: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:70: error: expected ‘;’ before ‘*’ token
SoundManager.h:71: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:71: error: expected ‘;’ before ‘*’ token
SoundManager.h:72: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:72: error: expected ‘;’ before ‘*’ token
SoundManager.h:73: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:73: error: expected ‘;’ before ‘*’ token
SoundManager.h:74: error: ISO C++ forbids declaration of ‘Mix_Chunk’ with no type
SoundManager.h:74: error: expected ‘;’ before ‘*’ token
SoundManager.h:76: error: ISO C++ forbids declaration of ‘Mix_Music’ with no type
SoundManager.h:76: error: expected ‘;’ before ‘*’ token
In file included from BlockOut.h:18,
                 from BlockOut.cpp:18:
Game.h:59: error: ‘GLfloat’ has not been declared
Game.h:90: error: ‘GLfloat’ does not name a type
Game.h:140: error: ‘GLfloat’ does not name a type
Game.h:141: error: ‘GLfloat’ does not name a type
Game.h:142: error: ‘GLfloat’ does not name a type
In file included from Menu.h:18,
                 from BlockOut.h:19,
                 from BlockOut.cpp:18:
MenuPage.h: In member function ‘void MenuPage::«»ProcessDefault(BYTE*, float)’:
MenuPage.h:56: error: ‘SDLK_DOWN’ was not declared in this scope
MenuPage.h:62: error: ‘SDLK_UP’ was not declared in this scope
MenuPage.h: At global scope:
MenuPage.h:115: error: ‘GLfloat’ does not name a type
MenuPage.h:115: error: ‘GLfloat’ does not name a type
MenuPage.h:115: error: ‘GLfloat’ has not been declared
MenuPage.h:160: error: ‘GLfloat’ does not name a type
MenuPage.h:160: error: ‘GLfloat’ does not name a type
In file included from Menu.h:20,
                 from BlockOut.h:19,
                 from BlockOut.cpp:18:
MenuGrid.h:61: error: ‘GLuint’ does not name a type
MenuGrid.h:64: error: ‘GLuint’ does not name a type
MenuGrid.h:67: error: ‘GLuint’ does not name a type
MenuGrid.h:70: error: ‘GLuint’ does not name a type
MenuGrid.h:72: error: ‘GLuint’ does not name a type
MenuGrid.h:73: error: ‘GLuint’ does not name a type
MenuGrid.h:74: error: ‘GLuint’ does not name a type
MenuGrid.h:75: error: ‘GLuint’ does not name a type
MenuGrid.h:77: error: ‘GLuint’ does not name a type
MenuGrid.h:78: error: ‘GLuint’ does not name a type
MenuGrid.h:79: error: ‘GLuint’ does not name a type
MenuGrid.h:80: error: ‘GLuint’ does not name a type
In file included from BlockOut.h:19,
                 from BlockOut.cpp:18:
Menu.h:37: error: ‘GLfloat’ has not been declared
Menu.h:38: error: ISO C++ forbids declaration of ‘GLfloat’ with no type
Menu.h:38: error: expected ‘;’ before ‘*’ token
Menu.h:105: error: ‘GLfloat’ does not name a type
Menu.h:106: error: ‘GLfloat’ does not name a type
In file included from BlockOut.cpp:18:
BlockOut.h:36: error: ‘SDLK_LAST’ was not declared in this scope
BlockOut.h:48: error: ‘SDL_Event’ has not been declared
BlockOut.cpp: In constructor ‘BlockOut::BlockOut()’:
BlockOut.cpp:55: warning: deprecated conversion from string constant to ‘char*’
BlockOut.cpp:56: error: ‘m_bKey’ was not declared in this scope
BlockOut.cpp: In member function ‘virtual int BlockOut::FrameMove()’:
BlockOut.cpp:97: error: ‘m_bKey’ was not declared in this scope
BlockOut.cpp:97: error: ‘SDLK_F1’ was not declared in this scope
BlockOut.cpp:108: error: ‘m_bKey’ was not declared in this scope
BlockOut.cpp: In member function ‘virtual int BlockOut::OneTimeSceneInit()’:
BlockOut.cpp:194: error: ‘printf’ was not declared in this scope
BlockOut.cpp: In member function ‘virtual int BlockOut::RestoreDeviceObjects()’:
BlockOut.cpp:219: error: ‘GLfloat’ was not declared in this scope
BlockOut.cpp:219: error: expected `;\' before ‘matView’
BlockOut.cpp:226: error: ‘glClearColor’ was not declared in this scope
BlockOut.cpp:229: error: ‘glViewport’ was not declared in this scope
BlockOut.cpp:232: error: ‘GL_MODELVIEW’ was not declared in this scope
BlockOut.cpp:232: error: ‘glMatrixMode’ was not declared in this scope
BlockOut.cpp:233: error: ‘glLoadIdentity’ was not declared in this scope
BlockOut.cpp:234: error: ‘gluLookAt’ was not declared in this scope
BlockOut.cpp:235: error: ‘GL_MODELVIEW_MATRIX’ was not declared in this scope
BlockOut.cpp:235: error: ‘matView’ was not declared in this scope
BlockOut.cpp:235: error: ‘glGetFloatv’ was not declared in this scope
BlockOut.cpp:238: error: ‘GL_SMOOTH’ was not declared in this scope
BlockOut.cpp:238: error: ‘glShadeModel’ was not declared in this scope
BlockOut.cpp:240: error: expected `;\' before ‘global_ambient’
BlockOut.cpp:241: error: ‘GL_LIGHT_MODEL_AMBIENT’ was not declared in this scope
BlockOut.cpp:241: error: ‘global_ambient’ was not declared in this scope
BlockOut.cpp:241: error: ‘glLightModelfv’ was not declared in this scope
BlockOut.cpp:243: error: expected `;\' before ‘ambientLight’
BlockOut.cpp:244: error: expected `;\' before ‘diffuseLight’
BlockOut.cpp:245: error: expected `;\' before ‘specularLight’
BlockOut.cpp:246: error: expected `;\' before ‘position’
BlockOut.cpp:248: error: ‘GL_LIGHT0’ was not declared in this scope
BlockOut.cpp:248: error: ‘GL_AMBIENT’ was not declared in this scope
BlockOut.cpp:248: error: ‘ambientLight’ was not declared in this scope
BlockOut.cpp:248: error: ‘glLightfv’ was not declared in this scope
BlockOut.cpp:249: error: ‘GL_DIFFUSE’ was not declared in this scope
BlockOut.cpp:249: error: ‘diffuseLight’ was not declared in this scope
BlockOut.cpp:250: error: ‘GL_SPECULAR’ was not declared in this scope
BlockOut.cpp:250: error: ‘specularLight’ was not declared in this scope
BlockOut.cpp:251: error: ‘GL_POSITION’ was not declared in this scope
BlockOut.cpp:251: error: ‘position’ was not declared in this scope
BlockOut.cpp:252: error: ‘glEnable’ was not declared in this scope
BlockOut.cpp:255: error: ‘GL_PERSPECTIVE_CORRECTION_HINT’ was not declared in this scope
BlockOut.cpp:255: error: ‘GL_NICEST’ was not declared in this scope
BlockOut.cpp:255: error: ‘glHint’ was not declared in this scope
BlockOut.cpp:258: error: ‘GL_BLEND’ was not declared in this scope
BlockOut.cpp:258: error: ‘glDisable’ was not declared in this scope
BlockOut.cpp:259: error: ‘GL_DEPTH_TEST’ was not declared in this scope
BlockOut.cpp:262: error: ‘glGetError’ was not declared in this scope
BlockOut.cpp:262: error: ‘GL_NO_ERROR’ was not declared in this scope
BlockOut.cpp: At global scope:
BlockOut.cpp:301: error: ‘int BlockOut::EventProc’ is not a static member of ‘class BlockOut’
BlockOut.cpp:301: error: ‘SDL_Event’ was not declared in this scope
BlockOut.cpp:301: error: ‘event’ was not declared in this scope
BlockOut.cpp:302: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [BlockOut.o] Error 1
notoriousxl
 
Posts: 3
Joined: Mon Sep 24, 2007 4:28 pm

Re:Compile errors on Debian

Postby Herc » Thu Sep 27, 2007 8:42 pm

thats easy:
you must install libSDL ! check your package manager and find some dev-pack named \"SDL\" AND \"SDLmixer\" SDLmixer is for audiooutput. SDL is a crossplatform library for handling windows and opengl and low level stuff.
User avatar
Herc
 
Posts: 165
Joined: Sun May 20, 2007 12:54 pm

Re:Compile errors on Debian

Postby notoriousxl » Thu Sep 27, 2007 10:43 pm

I\'ve already got those packages, since I usually compile the development version of Wesnoth (another SDL game): :(
libsdl1.2debian
libsdl1.2debian-alsa
libsdl1.2-dev
libsdl-image1.2
libsdl-image1.2-dev
libsdl-mixer1.2
libsdl-mixer1.2-dev
libsdl-net1.2
libsdl-net1.2-dev
notoriousxl
 
Posts: 3
Joined: Mon Sep 24, 2007 4:28 pm

Re:Compile errors on Debian

Postby Herc » Fri Sep 28, 2007 11:55 pm

i think you somehow must try to add the include path for libSDL.
normally, the package manager should do that for you, but it is obvious that the compiler cannot find SDL.h:

GLApp/GLApp.h:5:17: error: SDL.h: No such file or directory

so you must do something about this. sorry, i am not an linux expert. maybe Jean-Luc, the author of blockout2, will help you soon here.
User avatar
Herc
 
Posts: 165
Joined: Sun May 20, 2007 12:54 pm

Re:Compile errors on Debian

Postby notoriousxl » Sat Sep 29, 2007 1:01 am

Herc wrote:maybe Jean-Luc, the author of blockout2, will help you soon here.

Ok, I\'ll wait for him... I really NEED this game! :laugh:
notoriousxl
 
Posts: 3
Joined: Mon Sep 24, 2007 4:28 pm

Re:Compile errors on Debian

Postby ryuu » Fri Feb 18, 2011 9:05 am

I\'m using Ubuntu Maverick and had linking errors, although I already had SDL installed. I had to edit the Makefile, and replace the following lines:
Code: Select all
SDL_ROOT   = /users/pons/test/opengl/SDL
IMGLIB_ROOT   = ../ImageLib/

to these:

Code: Select all
SDL_ROOT   = /usr
IMGLIB_ROOT   = ../ImageLib/src


After that it built and run fine. I attached the file for those who don\'t like typing...

By the way, thanks for the game, this is my all-time favorite. [file name=Makefile.zip size=867]http://www.blockout.net/components/com_fireboard/uploaded/files/Makefile.zip[/file]<br><br>Post edited by: ryuu, at: 2011/02/18 10:07
ryuu
 
Posts: 1
Joined: Fri Feb 18, 2011 8:36 am

Re:Compile errors on Debian

Postby MaryBrown » Thu Oct 18, 2012 2:57 pm

\"Ms. Fat Booty\", and \"Mathematics\", as well as \"Rock N Roll\", which shows his broader musical perspective by name-checking Coltrane, Coltrane, Cheap Beats By Dre Coltrane, Presley, Hendrix and John Lee Hooker.#1 J Dilla - Donuts - 2006An additional dominating figure all through the 2000s
Detroit\'s J Dilla (aka Jay Dee), albeit largely within the background as a producer for acts like ATCQ, Slum Village Village Beats By Dr.Dre Solo Village (which he helped found), Common, Talib Kweli, and others.Through this work he became recognized for his jaw-dropping, fathoms-deep bass
swirling, cosmic sound. Of his three solo albums, his diversity was probably greatest expressed on this album, produced all the the beats by dre studio headphones the much more poignant by the reality he was terminally ill during its recording and died three days right after
was released at the age of 32.The HTC Sensation recently took over the HTC Desire HD as the manufacturer\'s flagship flagship Cheap Beats By Dre flagship Android smartphone. This has just seen two upgraded versions, the Sensation XE and the Sensation XL. In this article
will take a closer look at the Sensation XE and how it differs to the standard Sensation.Styling The handset appears appears beats by dre sale appears very similar to the standard Sensation at first, but on closer inspection you will notice a few subtle differences.
MaryBrown
 
Posts: 1
Joined: Thu Oct 18, 2012 2:41 pm


Return to Blockout II

Who is online

Users browsing this forum: No registered users and 1 guest

cron