sipdotnet icon indicating copy to clipboard operation
sipdotnet copied to clipboard

Unable to find 'liblinphone.dll'

Open gscantor opened this issue 6 years ago • 7 comments

Hi! So I'm trying to call Phone.Connect(), and the error 'unable to find Liblinphone.DLL' occurs. If I remove this line it doesn't happen, but also this line is essential to connect my created phones. I've tried the solutions previously suggested (checking how it is compiled, redownloading the SDK and libraries, etc.), but have not had any success. Any help would be appreciated!

gscantor avatar Jun 27 '19 03:06 gscantor

Hi! What operation system and .NET framework do you run program on? What branch do you use? And where do you get linphone SDK?

I'm little confused about 'Liblinphone.DLL' in error message. Do you run it on Linux?

In common case you simply should make sure, that all necessary dlls are in the same directory with your program EXE file (or inside system libraries folder).

bedefaced avatar Jun 27 '19 10:06 bedefaced

I'm running on a Windows 10 machine using .NET Framework 4.7.2. I've tried (and have had the same error) with getting the SDK from this GitHub (downloading the full zip file), and by downloading it directly from the Linphone website. I'm not running on Linux, which is why the Liblinphone error seems so weird to me as well. I've confirmed that my dlls are in the correct location, and have made the project multiple times in different places (VS17, VS15, and directly on the command line).

gscantor avatar Jun 27 '19 12:06 gscantor

Please try binaries from dev-branch: linphone dlls, sipdotnet.

If you build sipdotnet from sources, please make sure that you set WINDOWS conditional compilation symbol, and x86 as target platform:

image

bedefaced avatar Jun 27 '19 15:06 bedefaced

I tried making those changes and downloading the binaries from those sources, but am still getting the same error. The error is stemming from Linphone_core_set_log_level(OrtpLogLevel, loglevel). For some reason I am unable to attach a picture of my command prompt to show the error in full. I'm open to trying any other ideas you (or others) may have.

gscantor avatar Jun 27 '19 16:06 gscantor

I have the same problem as the other guy.

IvyMasterDiego avatar Jul 02 '19 16:07 IvyMasterDiego

I faced the same issue... You have to make sure the DLLs are also copied to the bin folder after building your app. So i wrote a post-build script in my app settings that copies the DLLs to the bin/debug or bin/release folder

0atn0 avatar Jul 05 '19 17:07 0atn0

okey thanks but, but I still have problems with the program not even the example wants to compile me well and throws me the same error

IvyMasterDiego avatar Jul 05 '19 17:07 IvyMasterDiego