[SOLVED] AvP does not compile on Mac OS X

Hi

I decided to use SDL 2 on Mac OS X, and in this case, I can not compile this game:

cmake …
– No build type specified, defaulting to Release
– The C compiler identification is AppleClang 6.0.0.6000056
– The CXX compiler identification is AppleClang 6.0.0.6000056
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Found SDL2: /Library/Frameworks/SDL2.framework;-framework Cocoa
– Found SDL: /opt/local/lib/libSDL.dylib;-framework Cocoa (found version “2.0.3”)
– Found OpenGL: /System/Library/Frameworks/OpenGL.framework
– Found OpenAL: /System/Library/Frameworks/OpenAL.framework
– SDL 1.2 found; using that.
– Configuring done
– Generating done
– Build files have been written to: /Users/gbudny/Downloads/avp-20141225 2/build

  • AVP hasn’t been fully upgraded for SDL 2 yet
  • You can use pastebin or another similar site to copy and paste large amounts of text instead of sketchy download sites. I have removed the link to the pdf on said sketchy download site because wow that doesn’t look safe at all.

I think I see what’s wrong in the CMake output. I’ll look into fixing the cmake support to not detect SDL2 as SDL1.

In the meantime, try using cmake like this to force SDL2 support:
cmake … -DSDL_TYPE=SDL2

I have both SDL and SDL2 installed as frameworks in ~/Library/Frameworks, so I didn’t encounter this case.

I am sorry for that weird link. I decided to use pastebin:

http://pastebin.com/61QHVv8w

Thanks.

This problem was solved in the last version of AvP.