GoaLitiuM / libobs-sharp

[not maintained] C# wrapper for libobs 0.15.4 (part of obs-studio, multiplatform rewrite of Open Broadcaster Software)
GNU General Public License v2.0
52 stars 33 forks source link

Unable to load obs.dll error #17

Closed Raj123456788 closed 8 years ago

Raj123456788 commented 8 years ago

Hi There, when i run the Testform.cs it gives me this error? Unable to load DLL 'obs.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Can you please let me know what am I missing?

GoaLitiuM commented 8 years ago

You need to build obs-studio and have all the built files (from "rundir/32bit/" or "rundir/64bit/") in the project's output directory ("test/bin/Debug").

...Or just change the project's output directory to the obs-studio's output directory for now till there's a better solution for this.

Raj123456788 commented 8 years ago

I am sorry have never worked on C++ before after setting output library to obs-studios's it is throwing me below error for running the Test-form? Loading module: win-wasapi.dll source 'test scene (1)' (scene) created Source ID 'random' not found Failed to create source 'some random source'! source 'some random source' (random) created 'test.vshost.exe' (CLR v4.0.30319: test.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file. Exception thrown: 'System.EntryPointNotFoundException' in libobs-sharp.dll The program '[29032] test.vshost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

Additional information: Unable to find an entry point named 'obs_get_solid_effect' in DLL 'obs.dll'.

I have tries building it up using cmake it still gives AutoGen and other errors. Thanks!

Raj123456788 commented 8 years ago

Hello There, I am still waiting for reply. Can you please respond ASAP?

GoaLitiuM commented 8 years ago

Run CMake again for obs-studio and enable BUILD_TESTS variable before generating the project files again.

Raj123456788 commented 8 years ago

I tried that but getting Cannot find libdshowcapture/source/capture-filter.cpp Error in Cmake. Is there another way to get the dll's? Waiting for your reply.

Raj123456788 commented 8 years ago

Use GSEffect solid = Obs.GetBaseEffect(ObsBaseEffect.Solid) for Unable to find an entry point named 'obs_get_solid_effect' in DLL 'obs.dll'.

Thank you for the help!