SRBeep icon indicating copy to clipboard operation
SRBeep copied to clipboard

How to build in windows

Open bilogic opened this issue 7 years ago • 7 comments

Hi,

Would you be kind enough to explain how I can build this in Windows? Thank you.

bilogic avatar Jul 28 '18 06:07 bilogic

The dependencies are the same as for Linux/Mac (OBS, ffmpeg, SDL2). Add the necessary include PATHs for OBS, ffmpeg and SDL2 and link to the following libraries: obs-frontend-api.lib avutil.lib SDL2.lib swresample.lib avformat.lib avcodec.lib obs.lib

You should then be good to go.

adocilesloth avatar Jul 28 '18 11:07 adocilesloth

Right thanks. But what is the tool used to process the makefile?

bilogic avatar Jul 28 '18 11:07 bilogic

I don't know. I built it in Visual Studio 2015 so I've never actually used the makefile on windows.

adocilesloth avatar Jul 28 '18 11:07 adocilesloth

I see. Do you start it as MFC DLL or...? I asked as there are no project files in this repo.

bilogic avatar Jul 28 '18 11:07 bilogic

It's just a DLL, no MFC or ATL. You do not need the header files for MFC or ATL for it to work.

adocilesloth avatar Jul 28 '18 11:07 adocilesloth

I have obs-frontend-api.lib in my linker's path but still face this... any help is greatly appreciated. Thank you.

error LNK2019: unresolved external symbol _obs_frontend_add_event_callback referenced in function _obs_module_load
error LNK2019: unresolved external symbol _obs_get_module_data_path referenced in function "void __cdecl start_stream_sound(void)" (?start_stream_sound@@YAXXZ)

bilogic avatar Jul 28 '18 21:07 bilogic

I'm not sure. I'd guess it might be obs.lib missing but I don't know. Sorry.

Although if obs.lib is missing, I'd imagine there would me more missing externals...

It's been awhile since I've complied a plugin for OBS, so I can't remember.

adocilesloth avatar Aug 05 '18 10:08 adocilesloth