a multiplayer game of parenting and civilization building
You are not logged in.
Pages: 1
Hello everybody,
I try compile the game on Linux and in the process I getting information with error:
Makefile:142: recipe for target '../../minorGems/graphics/openGL/ScreenGL_SDL.o' failed
make: *** [../../minorGems/graphics/openGL/ScreenGL_SDL.o] Error 1
Did anyone have such a problem?
What can I do? I haven't idea how solve this problem,
please help.
Offline
Have you gone through any of the guides? What OS are you installing on? Are you using a virtual machine? Start with the guide stickied on the main forums.
Offline
At the moment I use with Kali Linux operating system, without virtual machine. Yea first I install the SDL library, the second step I change path on /bin/sh and paste all code with file "pullAndBuildLatest" and at the moment return the issue above.
Offline
Ok I try another way directly this tip http://onehouronelife.com/compileNotes.php?nocounter=1 and console return message below:
g++ -Wall -Wwrite-strings -Wchar-subscripts -Wparentheses -g -DLINUX -O0 -I../.. -c -o ../../minorGems/graphics/openGL/ScreenGL_SDL.o ../../minorGems/graphics/openGL/ScreenGL_SDL.cpp
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In constructor ‘ScreenGL::ScreenGL(int, int, char, char, unsigned int, char, const char*, const char*, const char*, KeyboardHandlerGL*, MouseHandlerGL*, SceneHandlerGL*)’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:487:5: error: ‘SDL_WM_SetCaption’ was not declared in this scope
SDL_WM_SetCaption( inWindowName, NULL );
^~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:487:5: note: suggested alternative: ‘SDL_eventaction’
SDL_WM_SetCaption( inWindowName, NULL );
^~~~~~~~~~~~~~~~~
SDL_eventaction
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:491:5: error: ‘SDL_EnableKeyRepeat’ was not declared in this scope
SDL_EnableKeyRepeat( 0, 0 );
^~~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:491:5: note: suggested alternative: ‘SDL_enabled_assert’
SDL_EnableKeyRepeat( 0, 0 );
^~~~~~~~~~~~~~~~~~~
SDL_enabled_assert
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:493:5: error: ‘SDL_EnableUNICODE’ was not declared in this scope
SDL_EnableUNICODE( true );
^~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In member function ‘void ScreenGL::setupSurface()’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:663:13: error: ‘SDL_OPENGL’ was not declared in this scope
flags = SDL_OPENGL;
^~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:663:13: note: suggested alternative: ‘SDLK_OPER’
flags = SDL_OPENGL;
^~~~~~~~~~
SDLK_OPER
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:680:13: error: ‘SDL_putenv’ was not declared in this scope
SDL_putenv( (char*)"SDL_VIDEO_WINDOW_POS=0,0" );
^~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:680:13: note: suggested alternative: ‘SDL_setenv’
SDL_putenv( (char*)"SDL_VIDEO_WINDOW_POS=0,0" );
^~~~~~~~~~
SDL_setenv
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:682:29: error: ‘SDL_NOFRAME’ was not declared in this scope
flags = flags | SDL_NOFRAME;
^~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:682:29: note: suggested alternative: ‘SDLK_HOME’
flags = flags | SDL_NOFRAME;
^~~~~~~~~~~
SDLK_HOME
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:686:29: error: ‘SDL_FULLSCREEN’ was not declared in this scope
flags = flags | SDL_FULLSCREEN;
^~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:686:29: note: suggested alternative: ‘SDL_USEREVENT’
flags = flags | SDL_FULLSCREEN;
^~~~~~~~~~~~~~
SDL_USEREVENT
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:690:11: error: ‘SDL_VideoInfo’ does not name a type; did you mean ‘SDL_VideoInit’?
const SDL_VideoInfo* currentScreenInfo = SDL_GetVideoInfo();
^~~~~~~~~~~~~
SDL_VideoInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:692:20: error: ‘currentScreenInfo’ was not declared in this scope
int currentW = currentScreenInfo->current_w;
^~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:692:20: note: suggested alternative: ‘currentScreenGL’
int currentW = currentScreenInfo->current_w;
^~~~~~~~~~~~~~~~~
currentScreenGL
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:710:13: error: ‘SDL_ListModes’ was not declared in this scope
modes = SDL_ListModes( NULL, flags);
^~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:710:13: note: suggested alternative: ‘SDL_Keycode’
modes = SDL_ListModes( NULL, flags);
^~~~~~~~~~~~~
SDL_Keycode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:959:26: error: ‘SDL_GL_SWAP_CONTROL’ was not declared in this scope
SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 1 );
^~~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:962:27: error: ‘SDL_SetVideoMode’ was not declared in this scope
SDL_Surface *screen = SDL_SetVideoMode( mWide, mHigh, 0, flags);
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:962:27: note: suggested alternative: ‘SDL_GetVideoDriver’
SDL_Surface *screen = SDL_SetVideoMode( mWide, mHigh, 0, flags);
^~~~~~~~~~~~~~~~
SDL_GetVideoDriver
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In member function ‘char ScreenGL::isMinimized()’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1566:22: error: ‘SDL_GetAppState’ was not declared in this scope
char isMin = ( ( SDL_GetAppState() & SDL_APPACTIVE ) == 0 );
^~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1566:22: note: suggested alternative: ‘SDL_GetModState’
char isMin = ( ( SDL_GetAppState() & SDL_APPACTIVE ) == 0 );
^~~~~~~~~~~~~~~
SDL_GetModState
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1566:42: error: ‘SDL_APPACTIVE’ was not declared in this scope
char isMin = ( ( SDL_GetAppState() & SDL_APPACTIVE ) == 0 );
^~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1566:42: note: suggested alternative: ‘SDLK_PASTE’
char isMin = ( ( SDL_GetAppState() & SDL_APPACTIVE ) == 0 );
^~~~~~~~~~~~~
SDLK_PASTE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In member function ‘void ScreenGL::start()’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1628:13: error: ‘SDLMod’ was not declared in this scope
SDLMod mods = SDL_GetModState();
^~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1628:13: note: suggested alternative: ‘SDLK_d’
SDLMod mods = SDL_GetModState();
^~~~~~
SDLK_d
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1636:21: error: ‘mods’ was not declared in this scope
( ( mods & KMOD_META ) || ( mods & KMOD_ALT ) ) ) {
^~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1636:21: note: suggested alternative: ‘modf’
( ( mods & KMOD_META ) || ( mods & KMOD_ALT ) ) ) {
^~~~
modf
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1636:28: error: ‘KMOD_META’ was not declared in this scope
( ( mods & KMOD_META ) || ( mods & KMOD_ALT ) ) ) {
^~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1636:28: note: suggested alternative: ‘KMOD_MODE’
( ( mods & KMOD_META ) || ( mods & KMOD_ALT ) ) ) {
^~~~~~~~~
KMOD_MODE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1658:39: error: ‘SDL_GRAB_QUERY’ was not declared in this scope
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1658:39: note: suggested alternative: ‘SDL_QUERY’
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~
SDL_QUERY
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1658:21: error: ‘SDL_WM_GrabInput’ was not declared in this scope
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1658:21: note: suggested alternative: ‘SDL_WasInit’
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~~~
SDL_WasInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1658:59: error: ‘SDL_GRAB_ON’ was not declared in this scope
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1658:59: note: suggested alternative: ‘SDL_HasNEON’
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~
SDL_HasNEON
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1664:35: error: ‘SDL_GRAB_OFF’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1664:35: note: suggested alternative: ‘SDL_HAT_UP’
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~
SDL_HAT_UP
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1664:17: error: ‘SDL_WM_GrabInput’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1664:17: note: suggested alternative: ‘SDL_WasInit’
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~~~~~
SDL_WasInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1700:39: error: ‘SDL_GRAB_QUERY’ was not declared in this scope
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1700:39: note: suggested alternative: ‘SDL_QUERY’
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~
SDL_QUERY
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1700:21: error: ‘SDL_WM_GrabInput’ was not declared in this scope
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1700:21: note: suggested alternative: ‘SDL_WasInit’
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~~~~~~
SDL_WasInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1700:59: error: ‘SDL_GRAB_ON’ was not declared in this scope
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1700:59: note: suggested alternative: ‘SDL_HasNEON’
if( SDL_WM_GrabInput( SDL_GRAB_QUERY ) == SDL_GRAB_ON ) {
^~~~~~~~~~~
SDL_HasNEON
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1706:35: error: ‘SDL_GRAB_OFF’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1706:35: note: suggested alternative: ‘SDL_HAT_UP’
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~
SDL_HAT_UP
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1706:17: error: ‘SDL_WM_GrabInput’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1706:17: note: suggested alternative: ‘SDL_WasInit’
SDL_WM_GrabInput( SDL_GRAB_OFF );
^~~~~~~~~~~~~~~~
SDL_WasInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1724:36: error: ‘SDL_ACTIVEEVENT’ was not declared in this scope
event.type == SDL_ACTIVEEVENT &&
^~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1724:36: note: suggested alternative: ‘SDL_GETEVENT’
event.type == SDL_ACTIVEEVENT &&
^~~~~~~~~~~~~~~
SDL_GETEVENT
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1725:28: error: ‘SDL_Event {aka union SDL_Event}’ has no member named ‘active’
event.active.gain &&
^~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1726:28: error: ‘SDL_Event {aka union SDL_Event}’ has no member named ‘active’
event.active.state == SDL_APPACTIVE ) {
^~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1726:44: error: ‘SDL_APPACTIVE’ was not declared in this scope
event.active.state == SDL_APPACTIVE ) {
^~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1726:44: note: suggested alternative: ‘SDLK_PASTE’
event.active.state == SDL_APPACTIVE ) {
^~~~~~~~~~~~~
SDLK_PASTE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1737:39: error: ‘SDL_GRAB_ON’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1737:39: note: suggested alternative: ‘SDL_HasNEON’
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~
SDL_HasNEON
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1737:21: error: ‘SDL_WM_GrabInput’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1737:21: note: suggested alternative: ‘SDL_WasInit’
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~~~~~~
SDL_WasInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1744:28: error: ‘SDL_Event {aka union SDL_Event}’ has no member named ‘active’
event.active.gain &&
^~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1745:28: error: ‘SDL_Event {aka union SDL_Event}’ has no member named ‘active’
event.active.state == SDL_APPACTIVE ) {
^~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1765:39: error: ‘SDL_GRAB_ON’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1765:39: note: suggested alternative: ‘SDL_HasNEON’
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~
SDL_HasNEON
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1765:21: error: ‘SDL_WM_GrabInput’ was not declared in this scope
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1765:21: note: suggested alternative: ‘SDL_WasInit’
SDL_WM_GrabInput( SDL_GRAB_ON );
^~~~~~~~~~~~~~~~
SDL_WasInit
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1776:45: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
( ( event.key.keysym.unicode & 0xFF ) == 17 ) ) ) {
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1817:48: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
if( ( event.key.keysym.unicode & 0xFF00 ) == 0 &&
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1818:48: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
( event.key.keysym.unicode & 0x00FF ) != 0 ) {
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1819:57: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
asciiKey = event.key.keysym.unicode & 0xFF;
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1915:17: error: ‘SDLMod’ was not declared in this scope
SDLMod mods = SDL_GetModState();
^~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1915:17: note: suggested alternative: ‘SDLK_d’
SDLMod mods = SDL_GetModState();
^~~~~~
SDLK_d
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1921:29: error: ‘mods’ was not declared in this scope
( ( mods & KMOD_META ) || ( mods & KMOD_ALT )
^~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1921:29: note: suggested alternative: ‘modf’
( ( mods & KMOD_META ) || ( mods & KMOD_ALT )
^~~~
modf
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1921:36: error: ‘KMOD_META’ was not declared in this scope
( ( mods & KMOD_META ) || ( mods & KMOD_ALT )
^~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1921:36: note: suggested alternative: ‘KMOD_MODE’
( ( mods & KMOD_META ) || ( mods & KMOD_ALT )
^~~~~~~~~
KMOD_MODE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1924:44: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
( ( event.key.keysym.unicode & 0xFF ) == 17 ) ) ) {
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1954:52: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
if( ( event.key.keysym.unicode & 0xFF00 ) == 0 &&
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1955:52: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
( event.key.keysym.unicode & 0x00FF ) != 0 ) {
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:1956:61: error: ‘SDL_Keysym {aka struct SDL_Keysym}’ has no member named ‘unicode’; did you mean ‘scancode’?
asciiKey = event.key.keysym.unicode & 0xFF;
^~~~~~~
scancode
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2025:32: error: ‘SDL_BUTTON_WHEELUP’ was not declared in this scope
callbackMouse( SDL_BUTTON_WHEELUP,
^~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2025:32: note: suggested alternative: ‘SDL_BUTTON_MIDDLE’
callbackMouse( SDL_BUTTON_WHEELUP,
^~~~~~~~~~~~~~~~~~
SDL_BUTTON_MIDDLE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2028:32: error: ‘SDL_BUTTON_WHEELDOWN’ was not declared in this scope
callbackMouse( SDL_BUTTON_WHEELDOWN,
^~~~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2028:32: note: suggested alternative: ‘SDL_BUTTON_MIDDLE’
callbackMouse( SDL_BUTTON_WHEELDOWN,
^~~~~~~~~~~~~~~~~~~~
SDL_BUTTON_MIDDLE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In function ‘void callbackMouse(int, int, int, int)’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2703:21: error: ‘SDL_BUTTON_WHEELUP’ was not declared in this scope
if( inButton == SDL_BUTTON_WHEELUP ||
^~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2703:21: note: suggested alternative: ‘SDL_BUTTON_MIDDLE’
if( inButton == SDL_BUTTON_WHEELUP ||
^~~~~~~~~~~~~~~~~~
SDL_BUTTON_MIDDLE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2704:21: error: ‘SDL_BUTTON_WHEELDOWN’ was not declared in this scope
inButton == SDL_BUTTON_WHEELDOWN ) {
^~~~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2704:21: note: suggested alternative: ‘SDL_BUTTON_MIDDLE’
inButton == SDL_BUTTON_WHEELDOWN ) {
^~~~~~~~~~~~~~~~~~~~
SDL_BUTTON_MIDDLE
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In function ‘void callbackDisplay()’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2818:2: error: ‘SDL_GL_SwapBuffers’ was not declared in this scope
SDL_GL_SwapBuffers();
^~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2818:2: note: suggested alternative: ‘SDL_GL_SwapWindow’
SDL_GL_SwapBuffers();
^~~~~~~~~~~~~~~~~~
SDL_GL_SwapWindow
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2825:9: error: ‘SDL_WM_IconifyWindow’ was not declared in this scope
SDL_WM_IconifyWindow();
^~~~~~~~~~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2825:9: note: suggested alternative: ‘SDL_DestroyWindow’
SDL_WM_IconifyWindow();
^~~~~~~~~~~~~~~~~~~~
SDL_DestroyWindow
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In function ‘int mapSDLSpecialKeyToMG(int)’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2867:14: error: ‘SDLK_RMETA’ was not declared in this scope
case SDLK_RMETA: return MG_KEY_RMETA;
^~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2867:14: note: suggested alternative: ‘SDLK_RALT’
case SDLK_RMETA: return MG_KEY_RMETA;
^~~~~~~~~~
SDLK_RALT
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2868:14: error: ‘SDLK_LMETA’ was not declared in this scope
case SDLK_LMETA: return MG_KEY_LMETA;
^~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2868:14: note: suggested alternative: ‘SDLK_LALT’
case SDLK_LMETA: return MG_KEY_LMETA;
^~~~~~~~~~
SDLK_LALT
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp: In function ‘char mapSDLKeyToASCII(int)’:
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2954:14: error: ‘SDLK_WORLD_0’ was not declared in this scope
case SDLK_WORLD_0:
^~~~~~~~~~~~
../../minorGems/graphics/openGL/ScreenGL_SDL.cpp:2954:14: note: suggested alternative: ‘SDLK_MODE’
case SDLK_WORLD_0:
^~~~~~~~~~~~
SDLK_MODE
Makefile:142: recipe for target '../../minorGems/graphics/openGL/ScreenGL_SDL.o' failed
make: *** [../../minorGems/graphics/openGL/ScreenGL_SDL.o] Error 1
Last edited by Matthew Coldwind (2018-04-08 19:52:51)
Offline
Ok, do the second way.
0) Already downloaded the Unix source code and un-tarred it (I think "tar xzf <filename>")
1) Go to the OneLife/server/ folder and first run "./pullAndBuild".
2) Then read and do instructions from Onelife/documentaion/EditorAndServerBuildNotes.txt in the Server section.
Basically, all inside the server folder, you will run "./configure" (choosing linux), and then "make". Then you will do some linking of the data files to the server folder and create dataVersionNumber.txt with the correct version number (currently 72, not 73 for whatever reason, but choosing the highest number form "git tag" should work). Then you should be able to run the server with "OneLife/server/OneLifeServer" or "./OneLifeServer" from insider OneLife/server.
Offline
Today I build the game with sources on Ubuntu without any problems executes in specific order:
0. Downloaded the Unix source code and un-tarred it ("tar xzf <filename>")
1. Changed directory on OneLife_Live4_UnixSource and launched file pullAndBuildLatest
2. Then automatically download repositories from git and built the game with file OneLifeApp
So is everything is ok on Ubuntu, but when I can try the same operations make on Kali Linux then he has problems with "make".
Powa, I have question to your first point on list I should manually download repositories "OneLife", "OneLifeData7", "minorGems" with git and then copy file "pullAndBuildLatest" to the path OneLife/server/ ?
Offline
Powa, I have question to your first point on list I should manually download repositories "OneLife", "OneLifeData7", "minorGems" with git and then copy file "pullAndBuildLatest" to the path OneLife/server/ ?
I wouldn't. It sounds like you didn't, the way you described the steps back to me. You get pullAndBuildLatest from the OneLife_Live4_UnixSource file, it's the only thing in it. That should pull all subfolders automatically.
Sounds like you did step 2) differently though. Read carefully Onelife/documentaion/EditorAndServerBuildNotes.txt . There should be a configure step and then a make step, followed by the creation of links from files into the server folder. Shouldn't need to use OneLifeApp.
But I suppose you modified the procedure to get it to work on Ubuntu, so I presume you already tried my step 2) on Kali.
I'm not familiar with Kali Linux. It could be that the required dependencies of the make or ./configure aren't present natively in Kali.
If I am misunderstanding you, could you clarify your question?
Edit:
Btw, do start over your work if you run into errors and think you made a mistake. Tip: use pullAndBuildLatest and then copy that folder to a backup so you don't have to keep redownloading.
Last edited by powa (2018-04-09 07:10:03)
Offline
This is a stab in the dark, but I'm guessing that Kali is using SDL2 and installing the headers in /usr/include/SDL (or you renamed the directory in order to try to fix the problem). The game uses SDL version 1, so you need to install that... Given that Kali is a Debian derivative you should be able to find a deb somewhere I guess... Here's a starting point: https://packages.debian.org/search?suit … ds=SDL+1.2
Offline
Offline
But I have installed SDL v.1.2 i copied the line "sudo apt-get install git g++ imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev" and installed all packages. Hmm just now I return from work so try run once again fix my problem with stubborn "make" directive
I have another question, someone use with CodeBlocks? Maybe import files from game to own project?
Offline
Pages: 1