SpriteOvO / AirPodsDesktop

☄️ AirPods desktop user experience enhancement program, for Windows and Linux (WIP)
GNU General Public License v3.0
1.49k stars 87 forks source link

[Bug Report] Unable to build project #48

Closed vakesz closed 1 year ago

vakesz commented 1 year ago

:bug: Describe the bug

I downloaded the project followed the Build guide how to build it, only difference in my case is that I was using VS 2022, and got the following build errors.

:scroll: To Reproduce

Inapplicable

:rocket: Expected behavior

The project to build :)

:framed_picture: Screenshots

image

:gear: Environments:

:star2: Logs

PowerShell.txt

I'd like to dig around the project since it's quite interesting for me and see if i'm able to help out with something.

SpriteOvO commented 1 year ago

It looks like the new version of MSVC broke some non-standard behaviors, and winrt seems to broke some API as well. I'll probably investigate this tomorrow and make it able to compile in VS 2022, it should compile successfully in VS 2019 for now.

Thanks for reporting.

vakesz commented 1 year ago

I'll try to downgrade VS then to 2019. Thanks for the quick response for now.

vakesz commented 1 year ago

I think I found the root cause of this issue, although couldn't confirm it yet. I downgraded to version 2019, but the same issue persists. But spent a bit more time on this topic, and found your previous issue with WinRT and maybe it's not up to date for me either(or have to downgrade) and have to do some magic with it.

See here: https://github.com/SpriteOvO/AirPodsDesktop/blob/main/CMakeLists.txt#L114

MiracleSven commented 1 year ago

you can also just download the installer. here u have the link: https://github.com/SpriteOvO/AirPodsDesktop/releases/download/0.3.2/AirPodsDesktop-0.3.2-win32.exe

MrBeanCpp commented 11 months ago

Update Windows SDK to 10.0.22000.0(with Visual Studio Installer) works good. See this It can solve the problem: 'wait_for': is not a member of 'winrt::impl'