Include YouTube integration in build from source

Sean Trace

New Member
Can someone give any guidance on how to get a Windows build correctly configured so that it includes the new YouTube stream setup integration?
I tried setting YOUTUBE_CLIENTID. YOUTUBE_SECRET and YOUTUBE_ENABLED as variables in CMake, but the build then fails with:

Severity Code Description Project File Line Suppression State
Error (active) E1696 cannot open source file "ui_OBSYoutubeActions.h" obs C:\Users\sean.trace\Documents\GitHub\obs-studio\UI\window-youtube-actions.hpp 7
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You want to set YOUTUBE_CLIENTID to your client ID, then set YOUTUBE_SECRET to your client secret, and then set YOUTUBE_CLIENTID_HASH and YOUTUBE_SECRET_HASH to 0. Then it should work. Those two latter ones need to be set for it to fully work.

I assume you've already created a desktop app to get those in your youtube API credentials (we can't provide ours). It sucks but we don't really have a choice there.
 

Sean Trace

New Member
Thanks for the help. It was the setting of the hash step I had missed. I have already created my own Google App in the developer console to get the Client ID and secret.
 
Top