openairplay / airplay2-receiver

AirPlay 2 Receiver - Python implementation
2.17k stars 134 forks source link

Building on W11 with VSBT2022 errors #85

Closed xatitive closed 1 year ago

xatitive commented 1 year ago

The problem

Hi!

Currently experiencing an issue with W11, python 3.11.4 and, visual studio build tools 2022 ver 17.6.4 where once running the command of installing the requirements with pip the wheel building for AV errors out with

buffer.c
      src\av\buffer.c(4785): error C2037: left of 'f_lineno' specifies undefined struct/union '_frame'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

Build command ran

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Python311\Include" "-IC:\Program Files\Python311\include" -Ibuild\temp.win-amd64-cpython-311\Release\include -Iinclude -IC:\Users\chris\Downloads\airplay2-receiver-master\airplay2-receiver-master\ap2env\include -IC:\Users\chris\Downloads\airplay2-receiver-master\airplay2-receiver-master\ap2env\include "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" -Ibuild\temp.win-amd64-cpython-311\Release\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tcsrc\av\buffer.c /Fobuild\temp.win-amd64-cpython-311\Release\src\av\buffer.obj

What commit exhibits the issue?

master

Was there a last known working commit?

No response

What type of installation are you running?

virtualenv

With which python3 version do you run Receiver?

3.11.4

OS the receiver runs on

Windows

OS the sender runs

Windows 11

Which sender client was used

No response

Command invocation

pip install -r requirements.txt

Please include --debug output which helps to illustrate the problem

No response

Additional information

No response

systemcrash commented 1 year ago

Possibly something to do with PyAV. Very little we can do here - perhaps try a newer PyAV build if available?

xatitive commented 1 year ago

Using the latest PyAV does work but has some static in it sadly

xatitive commented 1 year ago

Another thing i just found is that anything after iOS 16 cant stream to it either

complains about code 501, message Unsupported method ('SETMAGICCOOKIE')

systemcrash commented 1 year ago

Perhaps you can add support for that method :)

BTW: my iOS 16.5.1 device streams fine. Is yours in some special Apple Home ecosystem?

xatitive commented 1 year ago

Not in any special home ecosystem but i am on ios 17 so i cant expect full compatibility lol