I'm trying to use PJSIP 2.9 in an (android) Xamarin setup. Unfortunately I'm getting 4 errors. 3 are missing things in the swig cs file, and one is because of a missing dll. For the first I have no idea what is causing this. The second one is according to https://trac.pjsip.org/repos/ticket/2086 an issue with my .so files. Even though I think I have added them correctly.
Anyone got the PJSIP Xamarin swig working?
1>------ Build started: Project: pjsua2xamarin, Configuration: Debug Any CPU ------
1>pjsua2\pjsua_snd_dev_id.cs(14,35,14,66): error CS0103: The name 'PJMEDIA_AUD_DEFAULT_CAPTURE_DEV' does not exist in the current context
1>pjsua2\pjsua_snd_dev_id.cs(15,36,15,68): error CS0103: The name 'PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV' does not exist in the current context
1>pjsua2\pjsua_snd_dev_id.cs(16,22,16,45): error CS0103: The name 'PJMEDIA_AUD_INVALID_DEV' does not exist in the current context
1>Done building project "pjsua2xamarin.csproj" -- FAILED.
2>------ Build started: Project: pjsua2xamarin.Android, Configuration: Debug Any CPU ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: The "FilterAssemblies" task failed unexpectedly.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: System.IO.FileNotFoundException: Could not find file 'C:\Users\user\source\repos\pjsua2xamarin\pjsua2xamarin\pjsua2xamarin\bin\Debug\netstandard2.0\pjsua2xamarin.dll'.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: File name: 'C:\Users\user\source\repos\pjsua2xamarin\pjsua2xamarin\pjsua2xamarin\bin\Debug\netstandard2.0\pjsua2xamarin.dll'
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at Xamarin.Android.Tasks.FilterAssemblies.Execute()
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
1>pjsua2\pjsua_snd_dev_id.cs(14,35,14,66): error CS0103: The name 'PJMEDIA_AUD_DEFAULT_CAPTURE_DEV' does not exist in the current context
1>pjsua2\pjsua_snd_dev_id.cs(15,36,15,68): error CS0103: The name 'PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV' does not exist in the current context
1>pjsua2\pjsua_snd_dev_id.cs(16,22,16,45): error CS0103: The name 'PJMEDIA_AUD_INVALID_DEV' does not exist in the current context
1>Done building project "pjsua2xamarin.csproj" -- FAILED.
2>------ Build started: Project: pjsua2xamarin.Android, Configuration: Debug Any CPU ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: The "FilterAssemblies" task failed unexpectedly.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: System.IO.FileNotFoundException: Could not find file 'C:\Users\user\source\repos\pjsua2xamarin\pjsua2xamarin\pjsua2xamarin\bin\Debug\netstandard2.0\pjsua2xamarin.dll'.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: File name: 'C:\Users\user\source\repos\pjsua2xamarin\pjsua2xamarin\pjsua2xamarin\bin\Debug\netstandard2.0\pjsua2xamarin.dll'
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at Xamarin.Android.Tasks.FilterAssemblies.Execute()
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(520,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org