Hi all,
I'm trying to use SIPek in windows. My application runs on windows just find. However, I need to develop the same program in Linux environment too. I'm using mono develop and using the same files in windows. When I try to compile(with tons of debug points to determine the source of error) I got this: "Sipek.Sip.pjsipRegistrar.Instance System.DllNotFoundException: pjsipDll.dll "
I downloaded pjsip from the website then I did the steps that used on linux like ./configure, make dep, make clean and make. They all went just fine. But when I do this step
"Compile pjsipDll.cpp:
Create new folder for pjsipDll project. Copy pjsipDll source files into that folder and compile:
Compile pjsipDll.cpp
g++ -c -fPIC -I "../pjsip/include/" -I "../pjlib/include" -I "../pjlib-util/include" -I "../pjmedia/include" -I "../pjnath/include" -shared -o pjsipDll.o pjsipDll.cpp"
I got the error that pjsipDll.cpp not found. I found the .cpp file in sources and also found pjsipDll.h file and downloaded them. I did create a folder named 'SOURCES' and put both files inside of it. When I run the compile code(starting with the 'g++ -c -fPIC....') I got tons of error in terminal. I also created new c++ project in mono develop and used the same header and cpp file and it gives 80 error. I can't get over that step. If I just compile the code maybe I can create my libpjsipDll.so file so I can use it on mono develop and run my project.
Finally, I'm using version 0.9 and it's an old project needed to be done in linux with the same version as well. If someone can give me version 0.9 libpjsipDll.so file and tell me where should I put that file in order to run my application. I also did change
"
#region Dll declarations
#if LINUX
internal const string PJSIP_DLL = "libpjsipDll.so";
#elif MOBILE
internal const string PJSIP_DLL = "pjsipdll_mobile.dll";
#elif TLS
internal const string PJSIP_DLL = "pjsipdll_tls.dll";
#else
internal const string PJSIP_DLL = "pjsipDll.dll";
#endif"
It seems, it never goes in if LINUX. I did change the last entry as libpjsipDll.so and then it will give me the same error in the beginning for libpjsipDll.so file. However, I used 0.44 .so file and got no positive results.
I really need getting that .so file for version 0.9 or compiling code with some kind of workaround. Lastly, I did use the latest pjsip library and try to compile it as well and getting the same errors in return.
For windows I'm using Visual Studio 2010 and everything works fine and Linux I'm using Mono Develop 4.0.12. My pjsip library 0.9.
I hope someone could help me and thanks!