neuromancer / avp

Aliens vs Predator Linux enhanced with cutscene support and new screen resolutions
Other
42 stars 7 forks source link

MacOS support? #10

Open palmerj opened 3 years ago

palmerj commented 3 years ago

I got this compiled under MacOS Big Sur but couldn't get it to run. Build process was

brew install sdl
brew install sdl2
brew install ffmpeg
brew install cmake
mkdir build
cd build
cmake ..
make

but then got the following when trying to run avp:

Unable to obtain graphics context for NSWindow (Mojave behavior)

I then tried to build with SDL2:

cmake -DSDL_TYPE=SDL2 ..
make

But when running it's very clean the SDL2 port is not close to be finished as the game window doesn't start and only debug output is produced:

glViewport(0, 0, 640, 480)
DEBUG:16384,16384,16384
DEBUG2:1280,960
DEBUG3:1280,960
SetWindowSize(640,480,640,480); 1
0: Color LCD
    bounds:    0,   0, 640, 480
    desktop: 16362004,1920,1200,60
    current: 16362004, 640, 480,60
     0: 16362004,3360,2100,60
     1: 16362004,2880,1800,60
     2: 16362004,2560,1600,60
     3: 16362004,2048,1280,60
     4: 16362004,1920,1200,60
     5: 16362004,1680,1050,60
     6: 16362004,1650,1050,60
     7: 16362004,1440, 900,60
     8: 16362004,1280, 800,60
     9: 16362004,1152, 720,60
    10: 16362004,1024, 768,60
    11: 16362004,1024, 640,60
    12: 16362004, 840, 524,60
    13: 16362004, 825, 525,60
    14: 16362004, 800, 600,60
    15: 16362004, 720, 450,60
    16: 16362004, 640, 480,60
Window display index: 0
Window display mode: 16362004, 640, 480,60
Window size:  640, 480
Window drawable size:  640, 480
Program Link Log:
WARNING: Could not find vertex shader attribute 'aColor1' to match BindAttributeLocation request.

Program Link Log:
WARNING: Could not find vertex shader attribute 'aTexCoord' to match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'aColor1' to match BindAttributeLocation request.

Program Link Log:
WARNING: Could not find vertex shader attribute 'aColor1' to match BindAttributeLocation request.

Program Link Log:
WARNING: Could not find vertex shader attribute 'aColor1' to match BindAttributeLocation request.
WARNING: Could not find vertex shader attribute 'aColor0' to match BindAttributeLocation request.

SetWindowSize(640,480,640,480); 1
0: Color LCD
    bounds:    0,   0, 640, 480
    desktop: 16362004,1920,1200,60
    current: 16362004, 640, 480,60
     0: 16362004,3360,2100,60
     1: 16362004,2880,1800,60
     2: 16362004,2560,1600,60
     3: 16362004,2048,1280,60
     4: 16362004,1920,1200,60
     5: 16362004,1680,1050,60
     6: 16362004,1650,1050,60
     7: 16362004,1440, 900,60
     8: 16362004,1280, 800,60
     9: 16362004,1152, 720,60
    10: 16362004,1024, 768,60
    11: 16362004,1024, 640,60
    12: 16362004, 840, 524,60
    13: 16362004, 825, 525,60
    14: 16362004, 800, 600,60
    15: 16362004, 720, 450,60
    16: 16362004, 640, 480,60
Window display index: 0
Window display mode: 16362004, 640, 480,60
Window size:  640, 480
Window drawable size:  640, 480

Is anyone still working on the SDL2 port or know any other way to get the game going on newer MacOS versions?