SDL_mousewheel not delcared

SDL_mousewheel not delcared

Discuss everything related to compiling and running Spring on Mac OS X.

Moderator: Moderators

Post Reply
darklord42
Posts: 96
Joined: 26 Jul 2014, 07:11

SDL_mousewheel not delcared

Post by darklord42 »

Hi all,

I have been following the directions to build a osx binnary. I hope to try to make an app bundle using the dylibbundler utiltiy. Anyway early on I got this after typing in 'make spring'
[ 0%] Building CXX object rts/aGui/CMakeFiles/engineaGui.dir/List.cpp.o
/Users/herecomethej/spring/rts/aGui/List.cpp: In member function 'virtual bool agui::List::HandleEventSelf(const SDL_Event&)':
/Users/herecomethej/spring/rts/aGui/List.cpp:323:8: error: 'SDL_MOUSEWHEEL' was not declared in this scope
case SDL_MOUSEWHEEL: {
^
/Users/herecomethej/spring/rts/aGui/List.cpp:327:12: error: 'const SDL_Event' has no member named 'wheel'
if (ev.wheel.y > 0) {
^
make[3]: *** [rts/aGui/CMakeFiles/engineaGui.dir/List.cpp.o] Error 1
make[2]: *** [rts/aGui/CMakeFiles/engineaGui.dir/all] Error 2
make[1]: *** [rts/builds/CMakeFiles/spring.dir/rule] Error 2
make: *** [spring] Error 2
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: SDL_mousewheel not delcared

Post by abma »

i only can guess: SDL1 uses while SDL2 should be used? (SDL1 has no SDL_MOUSEWHEEL, while SDL2 has)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: SDL_mousewheel not delcared

Post by abma »

current development version checks the SDL version:
https://github.com/spring/spring/commit ... bd1fb4040e
darklord42
Posts: 96
Joined: 26 Jul 2014, 07:11

Re: SDL_mousewheel not delcared

Post by darklord42 »

Ah you're right. Inexplicably I had SDL installed in my /usr/local/lib folder which was seen before the macports install with SDL2. I have no idea why It was there. Must have been something I did a long time ago on my previous mac that got carried over... Oh well it's fixed now. Thanks!
Post Reply

Return to “Mac OS X”