Author Topic: Compile failed on Mac OSX 10.8.5  (Read 3193 times)

rekcah1986

  • Newbie
  • *
  • Posts: 3
    • View Profile
Compile failed on Mac OSX 10.8.5
« on: December 09, 2013, 05:32:56 am »
I was compile failed with SDL2.0, who can help me?

The error message:

RekchtekiMacBook-Pro:solarus rekcah1986$ make
[  0%] Building CXX object CMakeFiles/solarus.dir/src/Camera.cpp.o
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:120:38: error: use of undeclared identifier 'SDLK_KP_0'; did you mean 'SDLK_KP0'?
      KEY_KP0                      = SDLK_KP_0,
                                     ^~~~~~~~~
                                     SDLK_KP0
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:217:2: note: 'SDLK_KP0' declared here
        SDLK_KP0                = 256,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:121:38: error: use of undeclared identifier 'SDLK_KP_1'; did you mean 'SDLK_KP1'?
      KEY_KP1                      = SDLK_KP_1,
                                     ^~~~~~~~~
                                     SDLK_KP1
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:218:2: note: 'SDLK_KP1' declared here
        SDLK_KP1                = 257,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:122:38: error: use of undeclared identifier 'SDLK_KP_2'; did you mean 'SDLK_KP2'?
      KEY_KP2                      = SDLK_KP_2,
                                     ^~~~~~~~~
                                     SDLK_KP2
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:219:2: note: 'SDLK_KP2' declared here
        SDLK_KP2                = 258,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:123:38: error: use of undeclared identifier 'SDLK_KP_3'; did you mean 'SDLK_KP3'?
      KEY_KP3                      = SDLK_KP_3,
                                     ^~~~~~~~~
                                     SDLK_KP3
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:220:2: note: 'SDLK_KP3' declared here
        SDLK_KP3                = 259,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:124:38: error: use of undeclared identifier 'SDLK_KP_4'; did you mean 'SDLK_KP4'?
      KEY_KP4                      = SDLK_KP_4,
                                     ^~~~~~~~~
                                     SDLK_KP4
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:221:2: note: 'SDLK_KP4' declared here
        SDLK_KP4                = 260,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:125:38: error: use of undeclared identifier 'SDLK_KP_5'; did you mean 'SDLK_KP5'?
      KEY_KP5                      = SDLK_KP_5,
                                     ^~~~~~~~~
                                     SDLK_KP5
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:222:2: note: 'SDLK_KP5' declared here
        SDLK_KP5                = 261,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:126:38: error: use of undeclared identifier 'SDLK_KP_6'; did you mean 'SDLK_KP6'?
      KEY_KP6                      = SDLK_KP_6,
                                     ^~~~~~~~~
                                     SDLK_KP6
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:223:2: note: 'SDLK_KP6' declared here
        SDLK_KP6                = 262,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:127:38: error: use of undeclared identifier 'SDLK_KP_7'; did you mean 'SDLK_KP7'?
      KEY_KP7                      = SDLK_KP_7,
                                     ^~~~~~~~~
                                     SDLK_KP7
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:224:2: note: 'SDLK_KP7' declared here
        SDLK_KP7                = 263,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:128:38: error: use of undeclared identifier 'SDLK_KP_8'; did you mean 'SDLK_KP8'?
      KEY_KP8                      = SDLK_KP_8,
                                     ^~~~~~~~~
                                     SDLK_KP8
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:225:2: note: 'SDLK_KP8' declared here
        SDLK_KP8                = 264,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:129:38: error: use of undeclared identifier 'SDLK_KP_9'; did you mean 'SDLK_KP9'?
      KEY_KP9                      = SDLK_KP_9,
                                     ^~~~~~~~~
                                     SDLK_KP9
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:226:2: note: 'SDLK_KP9' declared here
        SDLK_KP9                = 265,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:164:38: error: use of undeclared identifier 'SDLK_NUMLOCKCLEAR'; did you mean
      'SDLK_NUMLOCK'?
      KEY_NUMLOCK                  = SDLK_NUMLOCKCLEAR,
                                     ^~~~~~~~~~~~~~~~~
                                     SDLK_NUMLOCK
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:270:2: note: 'SDLK_NUMLOCK' declared here
        SDLK_NUMLOCK            = 300,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:166:38: error: use of undeclared identifier 'SDLK_SCROLLLOCK'; did you mean
      'SDLK_SCROLLOCK'?
      KEY_SCROLLOCK                = SDLK_SCROLLLOCK,
                                     ^~~~~~~~~~~~~~~
                                     SDLK_SCROLLOCK
/Library/Frameworks/SDL.framework/Headers/SDL_keysym.h:272:2: note: 'SDLK_SCROLLOCK' declared here
        SDLK_SCROLLOCK          = 302,
        ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:21:
In file included from /Users/rekcah1986/solarus/include/entities/Hero.h:24:
In file included from /Users/rekcah1986/solarus/include/GameCommands.h:21:
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:173:38: error: use of undeclared identifier 'SDLK_RGUI'
      KEY_RIGHT_META               = SDLK_RGUI,
                                     ^
/Users/rekcah1986/solarus/include/lowlevel/InputEvent.h:174:38: error: use of undeclared identifier 'SDLK_LGUI'
      KEY_LEFT_META                = SDLK_LGUI
                                     ^
In file included from /Users/rekcah1986/solarus/src/Camera.cpp:24:
/Users/rekcah1986/solarus/include/lowlevel/VideoManager.h:101:5: error: unknown type name 'SDL_Window'
    SDL_Window* main_window;                /**< The window. */
    ^
/Users/rekcah1986/solarus/include/lowlevel/VideoManager.h:102:5: error: unknown type name 'SDL_Renderer'
    SDL_Renderer* main_renderer;            /**< The screen renderer. */
    ^
/Users/rekcah1986/solarus/include/lowlevel/VideoManager.h:103:5: error: unknown type name 'SDL_Texture'
    SDL_Texture* screen_texture;            /**< The screen texture. */
    ^
17 errors generated.
make[2]: *** [CMakeFiles/solarus.dir/src/Camera.cpp.o] Error 1
make[1]: *** [CMakeFiles/solarus.dir/all] Error 2
make: *** [all] Error 2

rekcah1986

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Compile failed on Mac OSX 10.8.5
« Reply #1 on: December 09, 2013, 07:33:27 am »
I have solved it by remove the SDL.framework.