Today all the afternoon is tossing obs, from the official website download the source code compiled a bunch of problems, and then consider not install DirectX, download from the official website after the installation problems ... Always prompt to install, and later found that it is necessary to the original Microsoft Visual C + + x86 redistributable, Microsoft Visual C + + x64 redistributable, such as the first uninstall, Because VS2013 has been installed on my computer before installing the DirectX SDK (June 2010), over-section offload vs Install DirectX Before installing VS, and then installing the DirectShow SDK on the Microsoft website. A bunch of software installed, re-open the OBS project, compile or not, still wrong constantly ... It was a real crash, and it was really tiring to make software ... In fact, the basis of their own poor point.
Open the OBS project directly on GitHub and compile the last pop-up to find OSB.exe, the error is
Error 2 LNK1104: Unable to open file "Libsamplerate.lib" D:\Otherwork\Visual Studio 2013\obsb\obsapi\link Obsapi
Error 4 LNK1181: Could not open input file "Librtmp.lib" D:\Otherwork\Visual Studio 2013\obsb\link OBS
Ignoring the 2 warnings, how to solve the two errors, I simply rudely open libsamplerate.vcxproj and librtmp.vcxproj, and then regenerate, sure enough folder has the two lib ...
Error 1 LNK1181: Could not open input file "Libfaac.lib" D:\Otherwork\Visual Studio 2013\obsb\link OBS
Continue this simple and rude way ... How many to come, important did not appear to find OBS.exe problem, although I do not know the specific why, may be a link problem it.
Then the project inside the OBS project click Properties, in the VC + + directory for the inclusion of directories and library directories to add the installation of DirectX and DirectShow SDK related libraries, tube it has no use, first added in. For Win7 64bit system, add in the directory when the path is added to start to display is C:\Program Files%28x86%29\microsoft DirectX SDK%28june 2010%29\include for parentheses into%28 %29 What the hell is this? No way to manually modify, click on macro editing, manually changed to parentheses, became C:\Program Files (x86) \microsoft DirectX SDK (June) \include. Continue compiling already problem constantly ... Always pop-up computer lost OBSApi.dll, I find the project has this DLL ah ... Tired sleep does not love ah ... Later Baidu also did not find any relevant news, their own groping it. (This part seems to be dispensable, do not add to the eye after I tried it)
Headache out of standing in front of the window, looking at the school opposite the mountain, a long time to stay, back to God or honest back to the lab to continue to see a while, thought not to come out, or read the literature. Compile still computer lost OBSApi.dll I drop a god ... The eye glanced at the mistake, SysWOW64 no dll ... This is a what ghost, I do not know why, and then put OBSApi.dll copy paste into this folder inside go, again compile actually don't appear this problem, then that tears excited ah (OK, I said I too food). But continue to pop missing Libx264-146.dll, I follow the gourd painting scoop copy to SysWOW64 inside, compile finally no error ... Finally can compile, click to run after the OBS has triggered a breakpoint (what is this another ghost?) OK, I'll just ignore it and see if I can use it.
As for triggering a breakpoint, I looked at the back, tears Ah, then how did not think so simple rough method ... Sure enough, come on, little rookie needs to be advanced ~
Obs could not find OBSApi.dll libx264-146.dll ...