Search code examples
c++buildervclrad-studio

Winapi.Perception.hpp is missing for Rad Studio 12


I'm trying to compile a part of the firefox source code using C++ builder. Specifically the SMTC integration. This requires WinAPI.Media.hpp. But almost all WindowsRT units require Winapi.Perception.hpp. Which cannot be found.

This file should theoretically be found in C:\Program Files (x86)\Embarcadero\Studio\23.0\include\windows\rtl, but I double checked and It's nowhere to be found.

I also tried creating a blank project with the following line in the header:

#include <WinAPI.Media.hpp>

But same issue. Something must have gone wrong with my installation.

What can I do to fix this issue? Does anyone else have this file?


Solution

  • I reached out to Embarcadero and they have confirmed that this is a bug in the installer as it does not include this file. I have opened a ticket:

    RSS-2106: Winapi.Perception.hpp is missing

    They say that they will make a copy of Winapi.Perception.hpp available for download soon.


    UPDATE: Embarcadero has posted a temporary download until a more formal fix is released:

    https://etsfftp01.embarcadero.com/?u=uRvF&p=33CV&path=/Winapi.Perception.hpp.zip