BelledonneCommunications / linphone-windows10

Linphone.org mirror for linphone-windows10 (git://git.linphone.org/linphone-windows10.git)
GNU General Public License v2.0
15 stars 27 forks source link

Unable to build SDK.sln #2

Open deceivingrakesh opened 6 years ago

deceivingrakesh commented 6 years ago

Hi ,

I downloaded Linphone-windows-10 , and ran command "prepare.py x64" , I wanted SDK for 64 bit , this command generated "SDK.sln" , but when I opened it Visual Studio 2017 and tried to build it , it fails with the following error

1.Error CS2001 Source file 'D:\linphone-windows10\CsWrapper\LinphoneWrapper.cs' could not be found. CsWrapper D:\linphone-windows10\CsWrapper\CSC 1

2.Could not load cache .

3."cmd.exe" exited with code 2. NugetLinphoneTesterSDK C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171

The generated SDK.sln , doesn't have the file LinphoneWrapper.cs under mentioned folder .

How to fix this issue .

Thank you .

ivanvs commented 6 years ago

Same error here on 64 bits.

LinphoneWrapper.cs is also missing on 32 bits also.

DatBewar commented 6 years ago

I have work on it the last week. Can you check if it's good now?

erossetto commented 6 years ago

Not building for me either

"C:\linphone-windows10\SDK.sln" (default target) (1) -> "C:\linphone-windows10\WORK\win10-x86\SDK_x86.vcxproj" (default target) (3) -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.tar gets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\linphone-windows10\WORK\win10-x86\cmake\EP_bctoolb ox.vcxproj] [C:\linphone-windows10\WORK\win10-x86\SDK_x86.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.tar gets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\linphone-windows10\WORK\win10-x86\cmake\EP_bctoolb ox.vcxproj] [C:\linphone-windows10\WORK\win10-x86\SDK_x86.vcxproj]

DatBewar commented 6 years ago

Can you paste the console output?

erossetto commented 6 years ago

That is part of the console output, the entire log is huge, issue appears to be when compiling EP_bctoolb

S0U1SB4N3 commented 6 years ago

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\linphone-windows10\WORK\win10-x64\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\linphone-windows10\WORK\win10-x64\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] 1> 1> 324 Warning(s) 1> 2 Error(s) 1> 1>Time Elapsed 00:23:06.27 1>Done building project "SDK_x64.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@Wescoeur

S0U1SB4N3 commented 6 years ago

Stability report 30Nov2017.txt

I have included all steps i took to build the SDK please advise of correction it appears to be with Severity Code Description Project File Line Suppression State Error MSB6006 "cmd.exe" exited with code 1. [C:\linphone-windows10\WORK\win10-x64\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171

@Wescoeur

S0U1SB4N3 commented 6 years ago

im consistently getting this error as well Severity Code Description Project File Line Suppression State Error CS2001 Source file 'C:\linphone-windows10\CsWrapper\LinphoneWrapper.cs' could not be found. CsWrapper C:\linphone-windows10\CsWrapper\CSC 1 Active @Wescoeur

S0U1SB4N3 commented 6 years ago

im still getting this error please assist.

S0U1SB4N3 commented 6 years ago

I get a successful build however there are no exe files

zahraesm commented 6 years ago

@S0U1SB4N3 @DatBewar after doing "python prepare.py -f x64" and trying to build SDK.sln i'm still getting the errors :

Severity Code Description Project File Line Suppression State ***Error CS2001 Source file '...\LinphoneWrapper.cs' could not be found.
Severity Code Description Project File Line Suppression State

***Error MSB6006 "cmd.exe" exited with code 1. [...\Desktop\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 171

can you help me with the solution???

turquisegalaxy commented 3 years ago

i got following error while building linphone windows 10 sdk and linphone desktop sdk: error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-windows10\WORK\win10-x64\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\COML\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj

Please reply.. how to resolve this problem thanks

RCLuciano commented 3 years ago

I could compile the SDK_x64 in windows 10 x64 with Visual Studio 2019, the file LinphoneWrapper.cs is autogenerated and included in the folder when compiling. Please see the compilation steps in: https://gitlab.linphone.org/BC/public/linphone-windows10

Let me know if you continue with the issue.

turquisegalaxy commented 3 years ago

Thanks for help. While building the project, i got enclosed error. Please comment.

On Wed, 2 Dec 2020 at 02:54, RCLuciano notifications@github.com wrote:

I could compile the SDK_x64 in windows 10 x64 with Visual Studio 2019, the file LinphoneWrapper.cs is autogenerated and included in the folder when compiling. Please see the compilation steps in: https://gitlab.linphone.org/BC/public/linphone-windows10

Let me know if you continue with the issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-736844201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMBGLKYGYW6OMA7ZJ6LSSVQYHANCNFSM4D4KBJMQ .

Microsoft Windows [Version 10.0.16299.1087] (c) 2017 Microsoft Corporation. All rights reserved.

C:\windows\system32>cd C:\Users\COML\linphone-windows10

C:\Users\COML\linphone-windows10>python prepare.py File "prepare.py", line 395 """.format(target=target, project_guid=guid, project_dependencies=project_dependencies) SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 76-77: malformed \N character escape

C:\Users\COML\linphone-windows10>

RCLuciano commented 3 years ago

That prepare.py file contains some issues related to the python version.

The issue you are mention is caused by path that contains only one ' \' instead of ' \\'

Look for 'WORK\Nuget' and please change to 'WORK\\Nuget'

Let me know if the issue is solved.

turquisegalaxy commented 3 years ago

ok , i'll work on i There is another issue as mentioned below . please comment While building linphone desktop project on windows 10, i get enclosed cmake errors:

On Mon, 7 Dec 2020 at 14:59, RCLuciano notifications@github.com wrote:

That prepare.py file contains some issues related to the python version.

The issue you are mention is caused by path that contains only one \ instead of \

Look for WORK\Nuget and please change to WORK\Nuget

Let me know if the issue is solved.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-739810322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMHUSZSFSBMXBM6DGXLSTSRRXANCNFSM4D4KBJMQ .

Microsoft Windows [Version 10.0.16299.1087] (c) 2017 Microsoft Corporation. All rights reserved.

C:\windows\system32>cd C:\Users\COML\linphone-desktop

C:\Users\COML\linphone-desktop>mkdir build

C:\Users\COML\linphone-desktop>cmake .. -DCMAKE_BUILD_PARALLEL_LEVEL=10 -DCMAKE_BUILD_TYPE=RelWithDebInfo CMake Error: The source directory "C:/Users/COML" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

C:\Users\COML\linphone-desktop>cd build

C:\Users\COML\linphone-desktop\build>cmake .. -DCMAKE_BUILD_PARALLEL_LEVEL=10 -DCMAKE_BUILD_TYPE=RelWithDebInfo -- Building for: Visual Studio 15 2017 -- Setting Platform to Win32 -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.16299. -- The C compiler identification is MSVC 19.16.27044.0 -- The CXX compiler identification is MSVC 19.16.27044.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config.bat (found version "0.26") Projects are set as External projects. You can start building them by using for example : cmake --build . --target install -- Configuring done -- Generating done -- Build files have been written to: C:/Users/COML/linphone-desktop/build

C:\Users\COML\linphone-desktop\build>cmake --build . --target install --parallel 10 --config RelWithDebInfo Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

Checking Build System Creating directories for 'sdk' Building Custom Rule C:/Users/COML/linphone-desktop/CMakeLists.txt No download step for 'sdk' No update step for 'sdk' No patch step for 'sdk' Performing configure step for 'sdk' -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.16299. CMake Error at CMakeLists.txt:56 (include): include could not find load file:

  cmake-builder/cmake/LinphoneOptions.cmake

CMake Error at CMakeLists.txt:57 (include): include could not find load file:

  cmake-builder/configs/options-desktop.cmake

CMake Error at CMakeLists.txt:58 (include): include could not find load file:

  cmake-builder/options/common.cmake

CMake Error at CMakeLists.txt:59 (include): include could not find load file:

  cmake-builder/options/bctoolbox.cmake

CMake Error at CMakeLists.txt:60 (include): include could not find load file:

  cmake-builder/options/bellesip.cmake

CMake Error at CMakeLists.txt:61 (include): include could not find load file:

  cmake-builder/options/ms2.cmake

CMake Error at CMakeLists.txt:62 (include): include could not find load file:

  cmake-builder/options/linphone.cmake

-- Enabled features:

-- Disabled features:

-- Found PythonInterp: C:/Program Files/Python37/python.exe (found version "3.7")

***************************************************************************
***************************************************************************
***** Linphone SDK without third party GPL software                   *****
***** If you acquired a proprietary license from Belledonne           *****
***** Communications, this SDK can be used to create                  *****
***** a proprietary Linphone-based application.                       *****
***************************************************************************
***************************************************************************

-- Configuring incomplete, errors occurred! See also "C:/Users/COML/linphone-desktop/build/WORK/CMakeFiles/CMakeOutput.log". C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209 ,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-desktop\build\sdk.vcxproj]

C:\Users\COML\linphone-desktop\build>

turquisegalaxy commented 3 years ago

now i get these error while building linphone desktop on windows 10. please comment

On Tue, 8 Dec 2020 at 08:47, gala xy turquisegalaxy@gmail.com wrote:

ok , i'll work on i There is another issue as mentioned below . please comment While building linphone desktop project on windows 10, i get enclosed cmake errors:

On Mon, 7 Dec 2020 at 14:59, RCLuciano notifications@github.com wrote:

That prepare.py file contains some issues related to the python version.

The issue you are mention is caused by path that contains only one \ instead of \

Look for WORK\Nuget and please change to WORK\Nuget

Let me know if the issue is solved.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-739810322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMHUSZSFSBMXBM6DGXLSTSRRXANCNFSM4D4KBJMQ .

No download step for 'EP_ffmpeg' No update step for 'EP_ffmpeg' No patch step for 'EP_ffmpeg' Performing configure step for 'EP_ffmpeg' Forcing build for 'EP_ffmpeg' Performing build step for 'EP_ffmpeg' C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 2. [C:\Users\COML\linphone- desktop\build\WORK\desktop\EP_ffmpeg.vcxproj] [C:\Users\COML\linphone-desktop\build\WORK\sdk.vcxproj] [C:\Users\COML\linphone-desktop\build\sdk.vcxproj]

No download step for 'EP_vpx' No update step for 'EP_vpx' No patch step for 'EP_vpx' Performing configure step for 'EP_vpx' Forcing build for 'EP_vpx' Performing build step for 'EP_vpx' C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 2. [C:\Users\COML\linphone- desktop\build\WORK\desktop\EP_vpx.vcxproj] [C:\Users\COML\linphone-desktop\build\WORK\sdk.vcxproj] [C:\Users\COML\linphone-desktop\build\sdk.vcxproj]

RCLuciano commented 3 years ago

It seems the modules were not downloaded in order to get the missing files requested.

Are you trying to compile the SDK without internet connection?

RCLuciano commented 3 years ago

Try this instead 1.~ download the linphone-desktop using the git process: git clone https://gitlab.linphone.org/BC/public/linphone-desktop.git 2.~ Updates the submodules. Inside the linphone-desktop path run: git submodule update - - init - - recursive

The first one will get all the files missing for build and the second one will download the linphone-sdk and other stuff.

Try again and let me know.

turquisegalaxy commented 3 years ago

i have followed all steps in Readme file. and built linphone desktop got following error at the end: [C:\Users\COML\linphone-desktop\build\linphone-qt.vcxproj] C:\Users\COML\linphone-desktop\build\linphone-app\linphone.exe : fatal error LNK1120: 1082 unresolved externals [C:\Users\COML\linphone-desktop\build\linphone-app\linphone-qt.vcxproj] [C:\Users \COML\linphone-desktop\build\linphone-qt.vcxproj]

please comment.

turquisegalaxy commented 3 years ago

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

RCLuciano commented 3 years ago

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

prepare.py.txt Please review the prepare.py file fixed, it was tested for version 3.9 and works in my environment.

I used the following cmd: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -f Modify the -G "with version you have installed"

Let me know

turquisegalaxy commented 3 years ago

thanks. it worked and SDK has been generated, But when i built it in VS 15 2017, got error :

F ileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Users/COML/linphone-windows10/WORK/win10-ARM/Build/linphone/coreapi/help/doc/doxygen/xml'1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-windows10\WORK\win10-ARM\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\COML\linphone-windows10\WORK\win10-ARM\cmake\EP_linphone.vcxproj]

i just ran prepare.py -c then prepare.py gave no option like x64 or x86 i have windows 10 pro, 64 bit OS

please reply

On Sat, 12 Dec 2020 at 21:54, RCLuciano notifications@github.com wrote:

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

prepare.py.txt https://github.com/BelledonneCommunications/linphone-windows10/files/5683456/prepare.py.txt Please review the prepare.py file fixed, it was tested for version 3.9 and works in my environment.

I used the following cmd: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -f Modify the -G "with version you have installed"

Let me know

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-743783327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAPU4TKMFDO7FNTXOTSUON3RANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

sdk built no but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 09:18, gala xy turquisegalaxy@gmail.com wrote:

thanks. it worked and SDK has been generated, But when i built it in VS 15 2017, got error :

F ileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Users/COML/linphone-windows10/WORK/win10-ARM/Build/linphone/coreapi/help/doc/doxygen/xml'1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-windows10\WORK\win10-ARM\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\COML\linphone-windows10\WORK\win10-ARM\cmake\EP_linphone.vcxproj]

i just ran prepare.py -c then prepare.py gave no option like x64 or x86 i have windows 10 pro, 64 bit OS

please reply

On Sat, 12 Dec 2020 at 21:54, RCLuciano notifications@github.com wrote:

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

prepare.py.txt https://github.com/BelledonneCommunications/linphone-windows10/files/5683456/prepare.py.txt Please review the prepare.py file fixed, it was tested for version 3.9 and works in my environment.

I used the following cmd: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -f Modify the -G "with version you have installed"

Let me know

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-743783327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAPU4TKMFDO7FNTXOTSUON3RANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

SDK built now. but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 11:28, gala xy turquisegalaxy@gmail.com wrote:

sdk built no but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 09:18, gala xy turquisegalaxy@gmail.com wrote:

thanks. it worked and SDK has been generated, But when i built it in VS 15 2017, got error :

F ileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Users/COML/linphone-windows10/WORK/win10-ARM/Build/linphone/coreapi/help/doc/doxygen/xml'1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-windows10\WORK\win10-ARM\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\COML\linphone-windows10\WORK\win10-ARM\cmake\EP_linphone.vcxproj]

i just ran prepare.py -c then prepare.py gave no option like x64 or x86 i have windows 10 pro, 64 bit OS

please reply

On Sat, 12 Dec 2020 at 21:54, RCLuciano notifications@github.com wrote:

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

prepare.py.txt https://github.com/BelledonneCommunications/linphone-windows10/files/5683456/prepare.py.txt Please review the prepare.py file fixed, it was tested for version 3.9 and works in my environment.

I used the following cmd: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -f Modify the -G "with version you have installed"

Let me know

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-743783327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAPU4TKMFDO7FNTXOTSUON3RANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

did u use preraper.py x64?

On Mon, 14 Dec 2020 at 11:29, gala xy turquisegalaxy@gmail.com wrote:

SDK built now. but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 11:28, gala xy turquisegalaxy@gmail.com wrote:

sdk built no but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 09:18, gala xy turquisegalaxy@gmail.com wrote:

thanks. it worked and SDK has been generated, But when i built it in VS 15 2017, got error :

F ileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Users/COML/linphone-windows10/WORK/win10-ARM/Build/linphone/coreapi/help/doc/doxygen/xml'1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-windows10\WORK\win10-ARM\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\COML\linphone-windows10\WORK\win10-ARM\cmake\EP_linphone.vcxproj]

i just ran prepare.py -c then prepare.py gave no option like x64 or x86 i have windows 10 pro, 64 bit OS

please reply

On Sat, 12 Dec 2020 at 21:54, RCLuciano notifications@github.com wrote:

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

prepare.py.txt https://github.com/BelledonneCommunications/linphone-windows10/files/5683456/prepare.py.txt Please review the prepare.py file fixed, it was tested for version 3.9 and works in my environment.

I used the following cmd: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -f Modify the -G "with version you have installed"

Let me know

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-743783327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAPU4TKMFDO7FNTXOTSUON3RANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

i built sdk again. i m getting 27 errors in LinphoneWrapper.cs like: cs1003- syntax error , ',' expected line 2501 cs1001 Identifier expected- line 2501

LinphoneWrapper.cs is enclosed,

i just use prepare.py -c then prepare.py it generated sdk then i built sdk in vs 15 2017

On Mon, 14 Dec 2020 at 12:15, gala xy turquisegalaxy@gmail.com wrote:

did u use preraper.py x64?

On Mon, 14 Dec 2020 at 11:29, gala xy turquisegalaxy@gmail.com wrote:

SDK built now. but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 11:28, gala xy turquisegalaxy@gmail.com wrote:

sdk built no but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment

On Mon, 14 Dec 2020 at 09:18, gala xy turquisegalaxy@gmail.com wrote:

thanks. it worked and SDK has been generated, But when i built it in VS 15 2017, got error :

F ileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Users/COML/linphone-windows10/WORK/win10-ARM/Build/linphone/coreapi/help/doc/doxygen/xml'1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\COML\linphone-windows10\WORK\win10-ARM\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\COML\linphone-windows10\WORK\win10-ARM\cmake\EP_linphone.vcxproj]

i just ran prepare.py -c then prepare.py gave no option like x64 or x86 i have windows 10 pro, 64 bit OS

please reply

On Sat, 12 Dec 2020 at 21:54, RCLuciano notifications@github.com wrote:

and for linphone windows 10 , i replaced the slashes but error is same. i have python 3.7 . is this the issue with version? please reply.

prepare.py.txt https://github.com/BelledonneCommunications/linphone-windows10/files/5683456/prepare.py.txt Please review the prepare.py file fixed, it was tested for version 3.9 and works in my environment.

I used the following cmd: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -f Modify the -G "with version you have installed"

Let me know

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-743783327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAPU4TKMFDO7FNTXOTSUON3RANCNFSM4D4KBJMQ .

/*

LinphoneWrapper.cs

Copyright (C) 2017 Belledonne Communications SARL

This program is free software; you can redistribute it and/or

modify it under the terms of the GNU General Public License

as published by the Free Software Foundation; either version 2

of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

*/

using System;

using System.Runtime.InteropServices;

using System.Collections.Generic;

if IOS

using ObjCRuntime;

endif

namespace Linphone

{

region Wrapper specifics

/// <summary>

/// Only contains the LIB_NAME value that represents the library in which all DllImport are made

/// </summary>

public class LinphoneWrapper

{

if IOS

    public const string LIB_NAME = "linphone.framework/linphone";

else

    public const string LIB_NAME = "linphone"; // With this, it automatically finds liblinphone.so

endif

if WINDOWS_UWP

    public const string BELLE_SIP_LIB_NAME = "bellesip";

            public const string BCTOOLBOX_LIB_NAME = "bctoolbox";

else

    public const string BELLE_SIP_LIB_NAME = "linphone";

            public const string BCTOOLBOX_LIB_NAME = "linphone";

endif

if ANDROID

    [DllImport(LinphoneWrapper.LIB_NAME)]

    static extern void setAndroidLogHandler();

endif

if IOS

    [DllImport(LinphoneWrapper.LIB_NAME)]

    static extern void linphone_iphone_enable_logs();

endif

    /// <summary>

    /// Registers the native log handler in Linphone.

    /// </summary>

    public static void setNativeLogHandler()

    {

if ANDROID

        setAndroidLogHandler();

elif IOS

        linphone_iphone_enable_logs();

endif

    }

}

/// <summary>

/// All methods that returns a LinphoneStatus with a value != 0 as an error code in C are translated in C# by throwing a LinphoneException

/// </summary>

if WINDOWS_UWP

public class LinphoneException : System.Exception

{

    public LinphoneException() : base() { }

    public LinphoneException(string message) : base(message) { }

    public LinphoneException(string message, System.Exception inner) : base(message, inner) { }

}

else

[Serializable()]

public class LinphoneException : System.Exception

{

    public LinphoneException() : base() { }

    public LinphoneException(string message) : base(message) { }

    public LinphoneException(string message, System.Exception inner) : base(message, inner) { }

    protected LinphoneException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }

}

endif

[StructLayout(LayoutKind.Sequential)]

/// <summary>

/// Parent class for a Linphone public objects

/// </summary>

public class LinphoneObject

{

    internal IntPtr nativePtr;

    internal GCHandle handle;

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnLinphoneObjectDataDestroyed(IntPtr data);

    [DllImport(LinphoneWrapper.BELLE_SIP_LIB_NAME)]

if WINDOWS_UWP

    static extern int belle_sip_object_data_set(IntPtr ptr, string name, IntPtr data, IntPtr cb);

else

    static extern int belle_sip_object_data_set(IntPtr ptr, string name, IntPtr data, OnLinphoneObjectDataDestroyed cb);

endif

    [DllImport(LinphoneWrapper.BELLE_SIP_LIB_NAME)]

    static extern IntPtr belle_sip_object_data_get(IntPtr ptr, string name);

    [DllImport(LinphoneWrapper.BELLE_SIP_LIB_NAME)]

    static extern IntPtr belle_sip_object_ref(IntPtr ptr);

    [DllImport(LinphoneWrapper.BELLE_SIP_LIB_NAME)]

    static extern void belle_sip_object_unref(IntPtr ptr);

    [DllImport(LinphoneWrapper.BELLE_SIP_LIB_NAME)]

    static extern void belle_sip_object_data_remove(IntPtr ptr, string data);

    [DllImport(LinphoneWrapper.BCTOOLBOX_LIB_NAME)]

    static extern IntPtr bctbx_list_next(IntPtr ptr);

    [DllImport(LinphoneWrapper.BCTOOLBOX_LIB_NAME)]

    static extern IntPtr bctbx_list_get_data(IntPtr ptr);

    [DllImport(LinphoneWrapper.BCTOOLBOX_LIB_NAME)]

    static extern IntPtr bctbx_list_append(IntPtr elem, string data);

    [DllImport(LinphoneWrapper.BCTOOLBOX_LIB_NAME)]

    static extern IntPtr bctbx_list_append(IntPtr elem, IntPtr data);

if IOS

    [MonoPInvokeCallback(typeof(OnLinphoneObjectDataDestroyed))]

endif

    ~LinphoneObject()

    {

        //Console.WriteLine("Destroying " + this.ToString());

        if (nativePtr != IntPtr.Zero) {

            //Console.WriteLine("Unreffing " + this.ToString());

            belle_sip_object_data_remove(nativePtr, "cs_obj");

            belle_sip_object_unref(nativePtr);

            handle.Free();

        }

    }

    internal static T fromNativePtr<T>(IntPtr ptr, bool takeRef=true) where T : LinphoneObject, new()

    {

        if (ptr == IntPtr.Zero) return null;

        IntPtr objPtr = belle_sip_object_data_get(ptr, "cs_obj");

        if (objPtr != IntPtr.Zero)

        {

            T obj = null;

            GCHandle handle = GCHandle.FromIntPtr(objPtr);

            if (handle.IsAllocated)

            {

                obj = (T)handle.Target;

            }

            if (obj == null)

            {

                //Console.WriteLine("Handle target is null " + handle.Target);

                objPtr = IntPtr.Zero;

            }

            else

            {

                //Console.WriteLine("Using existing " + obj.ToString());

                return obj;

            }

        }

        if (objPtr == IntPtr.Zero)

        {

            T obj = new T();

            //Console.WriteLine("Creating " + obj.ToString());

            if (takeRef)

            {

                ptr = belle_sip_object_ref(ptr);

                //Console.WriteLine("Reffing " + obj.ToString());

            }

            obj.nativePtr = ptr;

            obj.handle = GCHandle.Alloc(obj, GCHandleType.WeakTrackResurrection);

            objPtr = GCHandle.ToIntPtr(obj.handle);

            belle_sip_object_data_set(ptr, "cs_obj", objPtr, IntPtr.Zero);

            return obj;

        }

        return null;

    }

    internal static IEnumerable<string> MarshalStringArray(IntPtr arrayPtr)

    {

        if (arrayPtr != IntPtr.Zero)

        {

            IntPtr ptr = Marshal.ReadIntPtr(arrayPtr);

            while (ptr != IntPtr.Zero)

            {

                string key = Marshal.PtrToStringAnsi(ptr);

                yield return key;

                arrayPtr = new IntPtr(arrayPtr.ToInt64() + IntPtr.Size);

                ptr = Marshal.ReadIntPtr(arrayPtr);

            }

        }

    }

    internal static IEnumerable<T> MarshalBctbxList<T>(IntPtr listPtr) where T : LinphoneObject, new()

    {

        if (listPtr != IntPtr.Zero)

        {

            IntPtr ptr = listPtr;

            while (ptr != IntPtr.Zero)

            {

                IntPtr dataPtr = bctbx_list_get_data(ptr);

                if (dataPtr == IntPtr.Zero)

                {

                    break;

                }

                T obj = fromNativePtr<T>(dataPtr);

                yield return obj;

                ptr = bctbx_list_next(ptr);

            }

        }

    }

    internal static IntPtr StringArrayToBctbxList(IEnumerable<string> stringlist)

    {

        IntPtr bctbx_list = IntPtr.Zero;

        foreach (string s in stringlist)

        {

            bctbx_list = bctbx_list_append(bctbx_list, s);

        }

        return bctbx_list;

    }

    internal static IntPtr ObjectArrayToBctbxList<T>(IEnumerable<T> objlist) where T : LinphoneObject, new()

    {

        IntPtr bctbx_list = IntPtr.Zero;

        foreach (T ptr in objlist)

        {

            bctbx_list = bctbx_list_append(bctbx_list, ptr.nativePtr);

        }

        return bctbx_list;

    }

}

if ANDROID

/// <summary>

/// Methods that are only found in Android version of Linphone libraries and related to JNI

/// </summary>

public class LinphoneAndroid

{

    [DllImport(LinphoneWrapper.LIB_NAME)]

    static extern void ms_set_jvm_from_env(IntPtr jnienv);

    [DllImport(LinphoneWrapper.LIB_NAME)]

    static extern void setMediastreamerAndroidContext(IntPtr jnienv, IntPtr context);

    /// <summary>

    /// Sets the JVM and JNI pointers in Linphone, required to be able to make JAVA upcalls.

    /// Calling this method is mandatory and must be done as soon as possible !

    /// </summary>

    public static void setAndroidContext(IntPtr jnienv, IntPtr context)

    {

        ms_set_jvm_from_env(jnienv);

        setMediastreamerAndroidContext(jnienv, context);

    }

}

endif

endregion

region Enums

/// <summary>

/// Enum describing Phone number checking. 

/// </summary>

public enum AccountCreatorPhoneNumberStatus

{

    /// <summary>

    /// Phone number ok. 

    /// </summary>

    Ok = 1,

    /// <summary>

    /// Phone number too short. 

    /// </summary>

    TooShort = 2,

    /// <summary>

    /// Phone number too long. 

    /// </summary>

    TooLong = 4,

    /// <summary>

    /// Country code invalid. 

    /// </summary>

    InvalidCountryCode = 8,

    /// <summary>

    /// Phone number invalid. 

    /// </summary>

    Invalid = 16,

}

/// <summary>

/// Enum describing Username checking. 

/// </summary>

public enum AccountCreatorUsernameStatus

{

    /// <summary>

    /// Username ok. 

    /// </summary>

    Ok = 0,

    /// <summary>

    /// Username too short. 

    /// </summary>

    TooShort = 1,

    /// <summary>

    /// Username too long. 

    /// </summary>

    TooLong = 2,

    /// <summary>

    /// Contain invalid characters. 

    /// </summary>

    InvalidCharacters = 3,

    /// <summary>

    /// Invalid username. 

    /// </summary>

    Invalid = 4,

}

/// <summary>

/// Enum describing Email checking. 

/// </summary>

public enum AccountCreatorEmailStatus

{

    /// <summary>

    /// Email ok. 

    /// </summary>

    Ok = 0,

    /// <summary>

    /// Email malformed. 

    /// </summary>

    Malformed = 1,

    /// <summary>

    /// Contain invalid characters. 

    /// </summary>

    InvalidCharacters = 2,

}

/// <summary>

/// Enum describing Password checking. 

/// </summary>

public enum AccountCreatorPasswordStatus

{

    /// <summary>

    /// Password ok. 

    /// </summary>

    Ok = 0,

    /// <summary>

    /// Password too short. 

    /// </summary>

    TooShort = 1,

    /// <summary>

    /// Password too long. 

    /// </summary>

    TooLong = 2,

    /// <summary>

    /// Contain invalid characters. 

    /// </summary>

    InvalidCharacters = 3,

    /// <summary>

    /// Missing specific characters. 

    /// </summary>

    MissingCharacters = 4,

}

/// <summary>

/// Enum describing language checking. 

/// </summary>

public enum AccountCreatorLanguageStatus

{

    /// <summary>

    /// Language ok. 

    /// </summary>

    Ok = 0,

}

/// <summary>

/// Enum describing Activation code checking. 

/// </summary>

public enum AccountCreatorActivationCodeStatus

{

    /// <summary>

    /// Activation code ok. 

    /// </summary>

    Ok = 0,

    /// <summary>

    /// Activation code too short. 

    /// </summary>

    TooShort = 1,

    /// <summary>

    /// Activation code too long. 

    /// </summary>

    TooLong = 2,

    /// <summary>

    /// Contain invalid characters. 

    /// </summary>

    InvalidCharacters = 3,

}

/// <summary>

/// Enum describing Domain checking. 

/// </summary>

public enum AccountCreatorDomainStatus

{

    /// <summary>

    /// Domain ok. 

    /// </summary>

    Ok = 0,

    /// <summary>

    /// Domain invalid. 

    /// </summary>

    Invalid = 1,

}

/// <summary>

/// Enum describing Transport checking. 

/// </summary>

public enum AccountCreatorTransportStatus

{

    /// <summary>

    /// Transport ok. 

    /// </summary>

    Ok = 0,

    /// <summary>

    /// Transport invalid. 

    /// </summary>

    Unsupported = 1,

}

/// <summary>

/// Enum describing the status of server request. 

/// </summary>

public enum AccountCreatorStatus

{

    /// <summary>

    /// Request status. 

    /// </summary>

    RequestOk = 0,

    /// <summary>

    /// Request failed. 

    /// </summary>

    RequestFailed = 1,

    /// <summary>

    /// Request failed due to missing argument(s) 

    /// </summary>

    MissingArguments = 2,

    /// <summary>

    /// Request failed due to missing callback(s) 

    /// </summary>

    MissingCallbacks = 3,

    /// <summary>

    /// Account status. 

    /// </summary>

    AccountCreated = 4,

    /// <summary>

    /// Account not created. 

    /// </summary>

    AccountNotCreated = 5,

    /// <summary>

    /// Account exist. 

    /// </summary>

    AccountExist = 6,

    /// <summary>

    /// Account exist with alias. 

    /// </summary>

    AccountExistWithAlias = 7,

    /// <summary>

    /// Account not exist. 

    /// </summary>

    AccountNotExist = 8,

    /// <summary>

    /// Account was created with Alias. 

    /// </summary>

    AliasIsAccount = 9,

    /// <summary>

    /// Alias exist. 

    /// </summary>

    AliasExist = 10,

    /// <summary>

    /// Alias not exist. 

    /// </summary>

    AliasNotExist = 11,

    /// <summary>

    /// Account activated. 

    /// </summary>

    AccountActivated = 12,

    /// <summary>

    /// Account already activated. 

    /// </summary>

    AccountAlreadyActivated = 13,

    /// <summary>

    /// Account not activated. 

    /// </summary>

    AccountNotActivated = 14,

    /// <summary>

    /// Account linked. 

    /// </summary>

    AccountLinked = 15,

    /// <summary>

    /// Account not linked. 

    /// </summary>

    AccountNotLinked = 16,

    /// <summary>

    /// Server. 

    /// </summary>

    ServerError = 17,

}

/// <summary>

/// Consolidated presence information: 'online' means the user is open for

/// communication, 'busy' means the user is open for communication but involved in

/// an other activity, 'do not disturb' means the user is not open for

/// communication, and 'offline' means that no presence information is available. 

/// </summary>

public enum ConsolidatedPresence

{

    Online = 0,

    Busy = 1,

    DoNotDisturb = 2,

    Offline = 3,

}

/// <summary>

/// Enum describing the status of a LinphoneFriendList operation. 

/// </summary>

public enum FriendListStatus

{

    OK = 0,

    NonExistentFriend = 1,

    InvalidFriend = 2,

}

/// <summary>

/// Enum describing the status of a CardDAV synchronization. 

/// </summary>

public enum FriendListSyncStatus

{

    Started = 0,

    Successful = 1,

    Failure = 2,

}

/// <summary>

/// Activities as defined in section 3.2 of RFC 4480. 

/// </summary>

public enum PresenceActivityType

{

    /// <summary>

    /// The person has a calendar appointment, without specifying exactly of what type. 

    /// </summary>

    Appointment = 0,

    /// <summary>

    /// The person is physically away from all interactive communication devices. 

    /// </summary>

    Away = 1,

    /// <summary>

    /// The person is eating the first meal of the day, usually eaten in the morning. 

    /// </summary>

    Breakfast = 2,

    /// <summary>

    /// The person is busy, without further details. 

    /// </summary>

    Busy = 3,

    /// <summary>

    /// The person is having his or her main meal of the day, eaten in the evening or

    /// at midday. 

    /// </summary>

    Dinner = 4,

    /// <summary>

    /// This is a scheduled national or local holiday. 

    /// </summary>

    Holiday = 5,

    /// <summary>

    /// The person is riding in a vehicle, such as a car, but not steering. 

    /// </summary>

    InTransit = 6,

    /// <summary>

    /// The person is looking for (paid) work. 

    /// </summary>

    LookingForWork = 7,

    /// <summary>

    /// The person is eating his or her midday meal. 

    /// </summary>

    Lunch = 8,

    /// <summary>

    /// The person is scheduled for a meal, without specifying whether it is breakfast,

    /// lunch, or dinner, or some other meal. 

    /// </summary>

    Meal = 9,

    /// <summary>

    /// The person is in an assembly or gathering of people, as for a business, social,

    /// or religious purpose. 

    /// </summary>

    Meeting = 10,

    /// <summary>

    /// The person is talking on the telephone. 

    /// </summary>

    OnThePhone = 11,

    /// <summary>

    /// The person is engaged in an activity with no defined representation. 

    /// </summary>

    Other = 12,

    /// <summary>

    /// A performance is a sub-class of an appointment and includes musical,

    /// theatrical, and cinematic performances as well as lectures. 

    /// </summary>

    Performance = 13,

    /// <summary>

    /// The person will not return for the foreseeable future, e.g., because it is no

    /// longer working for the company. 

    /// </summary>

    PermanentAbsence = 14,

    /// <summary>

    /// The person is occupying himself or herself in amusement, sport, or other

    /// recreation. 

    /// </summary>

    Playing = 15,

    /// <summary>

    /// The person is giving a presentation, lecture, or participating in a formal

    /// round-table discussion. 

    /// </summary>

    Presentation = 16,

    /// <summary>

    /// The person is visiting stores in search of goods or services. 

    /// </summary>

    Shopping = 17,

    /// <summary>

    /// The person is sleeping. 

    /// </summary>

    Sleeping = 18,

    /// <summary>

    /// The person is observing an event, such as a sports event. 

    /// </summary>

    Spectator = 19,

    /// <summary>

    /// The person is controlling a vehicle, watercraft, or plane. 

    /// </summary>

    Steering = 20,

    /// <summary>

    /// The person is on a business or personal trip, but not necessarily in-transit. 

    /// </summary>

    Travel = 21,

    /// <summary>

    /// The person is watching television. 

    /// </summary>

    TV = 22,

    /// <summary>

    /// The activity of the person is unknown. 

    /// </summary>

    Unknown = 23,

    /// <summary>

    /// A period of time devoted to pleasure, rest, or relaxation. 

    /// </summary>

    Vacation = 24,

    /// <summary>

    /// The person is engaged in, typically paid, labor, as part of a profession or

    /// job. 

    /// </summary>

    Working = 25,

    /// <summary>

    /// The person is participating in religious rites. 

    /// </summary>

    Worship = 26,

}

/// <summary>

/// Basic status as defined in section 4.1.4 of RFC 3863. 

/// </summary>

public enum PresenceBasicStatus

{

    /// <summary>

    /// This value means that the associated contact element, if any, is ready to

    /// accept communication. 

    /// </summary>

    Open = 0,

    /// <summary>

    /// This value means that the associated contact element, if any, is unable to

    /// accept communication. 

    /// </summary>

    Closed = 1,

}

/// <summary>

/// Enum controlling behavior for incoming subscription request. 

/// </summary>

public enum SubscribePolicy

{

    /// <summary>

    /// Does not automatically accept an incoming subscription request. 

    /// </summary>

    SPWait = 0,

    /// <summary>

    /// Rejects incoming subscription request. 

    /// </summary>

    SPDeny = 1,

    /// <summary>

    /// Automatically accepts a subscription request. 

    /// </summary>

    SPAccept = 2,

}

/// <summary>

/// Enum describing type of audio route. 

/// </summary>

public enum AudioRoute

{

    Earpiece = 0,

    Speaker = 1,

}

/// <summary>

/// LinphoneCallState enum represents the different state a call can reach into. 

/// </summary>

public enum CallState

{

    /// <summary>

    /// Initial call state. 

    /// </summary>

    Idle = 0,

    /// <summary>

    /// This is a new incoming call. 

    /// </summary>

    IncomingReceived = 1,

    /// <summary>

    /// An outgoing call is started. 

    /// </summary>

    OutgoingInit = 2,

    /// <summary>

    /// An outgoing call is in progress. 

    /// </summary>

    OutgoingProgress = 3,

    /// <summary>

    /// An outgoing call is ringing at remote end. 

    /// </summary>

    OutgoingRinging = 4,

    /// <summary>

    /// An outgoing call is proposed early media. 

    /// </summary>

    OutgoingEarlyMedia = 5,

    /// <summary>

    /// Connected, the call is answered. 

    /// </summary>

    Connected = 6,

    /// <summary>

    /// The media streams are established and running. 

    /// </summary>

    StreamsRunning = 7,

    /// <summary>

    /// The call is pausing at the initiative of local end. 

    /// </summary>

    Pausing = 8,

    /// <summary>

    /// The call is paused, remote end has accepted the pause. 

    /// </summary>

    Paused = 9,

    /// <summary>

    /// The call is being resumed by local end. 

    /// </summary>

    Resuming = 10,

    /// <summary>

    /// The call is being transfered to another party, resulting in a new outgoing call

    /// to follow immediately. 

    /// </summary>

    Refered = 11,

    /// <summary>

    /// The call encountered an error. 

    /// </summary>

    Error = 12,

    /// <summary>

    /// The call ended normally. 

    /// </summary>

    End = 13,

    /// <summary>

    /// The call is paused by remote end. 

    /// </summary>

    PausedByRemote = 14,

    /// <summary>

    /// The call's parameters change is requested by remote end, used for example when

    /// video is added by remote. 

    /// </summary>

    UpdatedByRemote = 15,

    /// <summary>

    /// We are proposing early media to an incoming call. 

    /// </summary>

    IncomingEarlyMedia = 16,

    /// <summary>

    /// A call update has been initiated by us. 

    /// </summary>

    Updating = 17,

    /// <summary>

    /// The call object is no more retained by the core. 

    /// </summary>

    Released = 18,

    /// <summary>

    /// The call is updated by remote while not yet answered (early dialog SIP UPDATE

    /// received) 

    /// </summary>

    EarlyUpdatedByRemote = 19,

    /// <summary>

    /// We are updating the call while not yet answered (early dialog SIP UPDATE sent) 

    /// </summary>

    EarlyUpdating = 20,

}

/// <summary>

/// Indicates for a given media the stream direction. 

/// </summary>

public enum MediaDirection

{

    Invalid = -1,

    Inactive = 0,

    /// <summary>

    /// No active media not supported yet. 

    /// </summary>

    SendOnly = 1,

    /// <summary>

    /// Send only mode. 

    /// </summary>

    RecvOnly = 2,

    /// <summary>

    /// recv only mode 

    /// </summary>

    SendRecv = 3,

}

/// <summary>

/// The state of a LinphonePlayer. 

/// </summary>

public enum PlayerState

{

    /// <summary>

    /// No file is opened for playing. 

    /// </summary>

    Closed = 0,

    /// <summary>

    /// The player is paused. 

    /// </summary>

    Paused = 1,

    /// <summary>

    /// The player is playing. 

    /// </summary>

    Playing = 2,

}

/// <summary>

/// Defines privacy policy to apply as described by rfc3323. 

/// </summary>

public enum Privacy

{

    /// <summary>

    /// Privacy services must not perform any privacy function. 

    /// </summary>

    None = 0,

    /// <summary>

    /// Request that privacy services provide a user-level privacy function. 

    /// </summary>

    User = 1,

    /// <summary>

    /// Request that privacy services modify headers that cannot be set arbitrarily by

    /// the user (Contact/Via). 

    /// </summary>

    Header = 2,

    /// <summary>

    /// Request that privacy services provide privacy for session media. 

    /// </summary>

    Session = 4,

    /// <summary>

    /// rfc3325 The presence of this privacy type in a Privacy header field indicates

    /// that the user would like the Network Asserted Identity to be kept private with

    /// respect to SIP entities outside the Trust Domain with which the user

    /// authenticated. 

    /// </summary>

    Id = 8,

    /// <summary>

    /// Privacy service must perform the specified services or fail the request. 

    /// </summary>

    Critical = 16,

    /// <summary>

    /// Special keyword to use privacy as defined either globally or by proxy using

    /// <see cref="Linphone.ProxyConfig.SetPrivacy()" /> 

    /// </summary>

    Default = 32768,

}

/// <summary>

/// Enum representing the direction of a call. 

/// </summary>

public enum CallDir

{

    /// <summary>

    /// outgoing calls 

    /// </summary>

    Outgoing = 0,

    /// <summary>

    /// incoming calls 

    /// </summary>

    Incoming = 1,

}

/// <summary>

/// Enum representing the status of a call. 

/// </summary>

public enum CallStatus

{

    /// <summary>

    /// The call was sucessful. 

    /// </summary>

    Success = 0,

    /// <summary>

    /// The call was aborted. 

    /// </summary>

    Aborted = 1,

    /// <summary>

    /// The call was missed (unanswered) 

    /// </summary>

    Missed = 2,

    /// <summary>

    /// The call was declined, either locally or by remote end. 

    /// </summary>

    Declined = 3,

    /// <summary>

    /// The call was aborted before being advertised to the application - for protocol

    /// reasons. 

    /// </summary>

    EarlyAborted = 4,

    /// <summary>

    /// The call was answered on another device. 

    /// </summary>

    AcceptedElsewhere = 5,

    /// <summary>

    /// The call was declined on another device. 

    /// </summary>

    DeclinedElsewhere = 6,

}

/// <summary>

/// LinphoneChatMessageState is used to notify if messages have been succesfully

/// delivered or not. 

/// </summary>

public enum ChatMessageState

{

    /// <summary>

    /// Initial state. 

    /// </summary>

    Idle = 0,

    /// <summary>

    /// Delivery in progress. 

    /// </summary>

    InProgress = 1,

    /// <summary>

    /// Message successfully delivered and acknowledged by server. 

    /// </summary>

    Delivered = 2,

    /// <summary>

    /// Message was not delivered. 

    /// </summary>

    NotDelivered = 3,

    /// <summary>

    /// Message was received(and acknowledged) but cannot get file from server. 

    /// </summary>

    FileTransferError = 4,

    /// <summary>

    /// File transfer has been completed successfully. 

    /// </summary>

    FileTransferDone = 5,

    /// <summary>

    /// Message successfully delivered and acknowledged to destination. 

    /// </summary>

    DeliveredToUser = 6,

    /// <summary>

    /// Message displayed to the remote user. 

    /// </summary>

    Displayed = 7,

}

/// <summary>

/// Enum for publish states. 

/// </summary>

public enum PublishState

{

    /// <summary>

    /// Initial state, do not use. 

    /// </summary>

    None = 0,

    /// <summary>

    /// An outgoing publish was created and submitted. 

    /// </summary>

    Progress = 1,

    /// <summary>

    /// Publish is accepted. 

    /// </summary>

    Ok = 2,

    /// <summary>

    /// Publish encoutered an error, <see cref="Linphone.Event.GetReason()" /> gives

    /// reason code. 

    /// </summary>

    Error = 3,

    /// <summary>

    /// Publish is about to expire, only sent if [sip]->refresh_generic_publish

    /// property is set to 0. 

    /// </summary>

    Expiring = 4,

    /// <summary>

    /// Event has been un published. 

    /// </summary>

    Cleared = 5,

}

/// <summary>

/// Enum for subscription direction (incoming or outgoing). 

/// </summary>

public enum SubscriptionDir

{

    /// <summary>

    /// Incoming subscription. 

    /// </summary>

    Incoming = 0,

    /// <summary>

    /// Outgoing subscription. 

    /// </summary>

    Outgoing = 1,

    /// <summary>

    /// Invalid subscription direction. 

    /// </summary>

    InvalidDir = 2,

}

/// <summary>

/// Enum for subscription states. 

/// </summary>

public enum SubscriptionState

{

    /// <summary>

    /// Initial state, should not be used. 

    /// </summary>

    None = 0,

    /// <summary>

    /// An outgoing subcription was sent. 

    /// </summary>

    OutgoingProgress = 1,

    /// <summary>

    /// An incoming subcription is received. 

    /// </summary>

    IncomingReceived = 2,

    /// <summary>

    /// Subscription is pending, waiting for user approval. 

    /// </summary>

    Pending = 3,

    /// <summary>

    /// Subscription is accepted. 

    /// </summary>

    Active = 4,

    /// <summary>

    /// Subscription is terminated normally. 

    /// </summary>

    Terminated = 5,

    /// <summary>

    /// Subscription was terminated by an error, indicated by <see

    /// cref="Linphone.Event.GetReason()" /> 

    /// </summary>

    Error = 6,

    /// <summary>

    /// Subscription is about to expire, only sent if [sip]->refresh_generic_subscribe

    /// property is set to 0. 

    /// </summary>

    Expiring = 7,

}

/// <summary>

/// Enum describing Ip family. 

/// </summary>

public enum AddressFamily

{

    /// <summary>

    /// IpV4. 

    /// </summary>

    Inet = 0,

    /// <summary>

    /// IpV6. 

    /// </summary>

    Inet6 = 1,

    /// <summary>

    /// Unknown. 

    /// </summary>

    Unspec = 2,

}

/// <summary>

/// LinphoneGlobalState describes the global state of the LinphoneCore object. 

/// </summary>

public enum ConfiguringState

{

    Successful = 0,

    Failed = 1,

    Skipped = 2,

}

/// <summary>

/// LinphoneGlobalState describes the global state of the LinphoneCore object. 

/// </summary>

public enum GlobalState

{

    Off = 0,

    Startup = 1,

    On = 2,

    Shutdown = 3,

    Configuring = 4,

}

/// <summary>

/// Enum describing ICE states. 

/// </summary>

public enum IceState

{

    /// <summary>

    /// ICE has not been activated for this call or stream. 

    /// </summary>

    NotActivated = 0,

    /// <summary>

    /// ICE processing has failed. 

    /// </summary>

    Failed = 1,

    /// <summary>

    /// ICE process is in progress. 

    /// </summary>

    InProgress = 2,

    /// <summary>

    /// ICE has established a direct connection to the remote host. 

    /// </summary>

    HostConnection = 3,

    /// <summary>

    /// ICE has established a connection to the remote host through one or several

    /// NATs. 

    /// </summary>

    ReflexiveConnection = 4,

    /// <summary>

    /// ICE has established a connection through a relay. 

    /// </summary>

    RelayConnection = 5,

}

public enum LogCollectionState

{

    Disabled = 0,

    Enabled = 1,

    EnabledWithoutPreviousLogHandler = 2,

}

/// <summary>

/// LinphoneCoreLogCollectionUploadState is used to notify if log collection upload

/// have been succesfully delivered or not. 

/// </summary>

public enum CoreLogCollectionUploadState

{

    /// <summary>

    /// Delivery in progress. 

    /// </summary>

    InProgress = 0,

    /// <summary>

    /// Log collection upload successfully delivered and acknowledged by remote end

    /// point. 

    /// </summary>

    Delivered = 1,

    /// <summary>

    /// Log collection upload was not delivered. 

    /// </summary>

    NotDelivered = 2,

}

/// <summary>

/// Enum describing the stream types. 

/// </summary>

public enum StreamType

{

    Audio = 0,

    Video = 1,

    Text = 2,

    Unknown = 3,

}

/// <summary>

/// Enum describing uPnP states. 

/// </summary>

public enum UpnpState

{

    /// <summary>

    /// uPnP is not activate 

    /// </summary>

    Idle = 0,

    /// <summary>

    /// uPnP process is in progress 

    /// </summary>

    Pending = 1,

    /// <summary>

    /// Internal use: Only used by port binding. 

    /// </summary>

    Adding = 2,

    /// <summary>

    /// Internal use: Only used by port binding. 

    /// </summary>

    Removing = 3,

    /// <summary>

    /// uPnP is not available 

    /// </summary>

    NotAvailable = 4,

    /// <summary>

    /// uPnP is enabled 

    /// </summary>

    Ok = 5,

    /// <summary>

    /// uPnP processing has failed 

    /// </summary>

    Ko = 6,

    /// <summary>

    /// IGD router is blacklisted. 

    /// </summary>

    Blacklisted = 7,

}

/// <summary>

/// Enum describing transport type for LinphoneAddress. 

/// </summary>

public enum TransportType

{

    Udp = 0,

    Tcp = 1,

    Tls = 2,

    Dtls = 3,

}

/// <summary>

/// Verbosity levels of log messages. 

/// </summary>

public enum LogLevel

{

    /// <summary>

    /// Level for debug messages. 

    /// </summary>

    Debug = 1,

    /// <summary>

    /// Level for traces. 

    /// </summary>

    Trace = 1&lt;&lt;1,

    /// <summary>

    /// Level for information messages. 

    /// </summary>

    Message = 1&lt;&lt;2,

    /// <summary>

    /// Level for warning messages. 

    /// </summary>

    Warning = 1&lt;&lt;3,

    /// <summary>

    /// Level for error messages. 

    /// </summary>

    Error = 1&lt;&lt;4,

    /// <summary>

    /// Level for fatal error messages. 

    /// </summary>

    Fatal = 1&lt;&lt;5,

}

/// <summary>

/// Enum describing RTP AVPF activation modes. 

/// </summary>

public enum AVPFMode

{

    /// <summary>

    /// Use default value defined at upper level. 

    /// </summary>

    Default = -1,

    /// <summary>

    /// AVPF is disabled. 

    /// </summary>

    Disabled = 0,

    /// <summary>

    /// AVPF is enabled. 

    /// </summary>

    Enabled = 1,

}

/// <summary>

/// Enum describing the result of the echo canceller calibration process. 

/// </summary>

public enum EcCalibratorStatus

{

    /// <summary>

    /// The echo canceller calibration process is on going. 

    /// </summary>

    InProgress = 0,

    /// <summary>

    /// The echo canceller calibration has been performed and produced an echo delay

    /// measure. 

    /// </summary>

    Done = 1,

    /// <summary>

    /// The echo canceller calibration process has failed. 

    /// </summary>

    Failed = 2,

    /// <summary>

    /// The echo canceller calibration has been performed and no echo has been

    /// detected. 

    /// </summary>

    DoneNoEcho = 3,

}

/// <summary>

/// Enum describing type of media encryption types. 

/// </summary>

public enum MediaEncryption

{

    /// <summary>

    /// No media encryption is used. 

    /// </summary>

    None = 0,

    /// <summary>

    /// Use SRTP media encryption. 

    /// </summary>

    SRTP = 1,

    /// <summary>

    /// Use ZRTP media encryption. 

    /// </summary>

    ZRTP = 2,

    /// <summary>

    /// Use DTLS media encryption. 

    /// </summary>

    DTLS = 3,

}

/// <summary>

/// Enum describing various failure reasons or contextual information for some

/// events. 

/// </summary>

public enum Reason

{

    /// <summary>

    /// No reason has been set by the core. 

    /// </summary>

    None = 0,

    /// <summary>

    /// No response received from remote. 

    /// </summary>

    NoResponse = 1,

    /// <summary>

    /// Authentication failed due to bad credentials or resource forbidden. 

    /// </summary>

    Forbidden = 2,

    /// <summary>

    /// The call has been declined. 

    /// </summary>

    Declined = 3,

    /// <summary>

    /// Destination of the call was not found. 

    /// </summary>

    NotFound = 4,

    /// <summary>

    /// The call was not answered in time (request timeout) 

    /// </summary>

    NotAnswered = 5,

    /// <summary>

    /// Phone line was busy. 

    /// </summary>

    Busy = 6,

    /// <summary>

    /// Unsupported content. 

    /// </summary>

    UnsupportedContent = 7,

    /// <summary>

    /// Transport error: connection failures, disconnections etc... 

    /// </summary>

    IOError = 8,

    /// <summary>

    /// Do not disturb reason. 

    /// </summary>

    DoNotDisturb = 9,

    /// <summary>

    /// Operation is unauthorized because missing credential. 

    /// </summary>

    Unauthorized = 10,

    /// <summary>

    /// Operation is rejected due to incompatible or unsupported media parameters. 

    /// </summary>

    NotAcceptable = 11,

    /// <summary>

    /// Operation could not be executed by server or remote client because it didn't

    /// have any context for it. 

    /// </summary>

    NoMatch = 12,

    /// <summary>

    /// Resource moved permanently. 

    /// </summary>

    MovedPermanently = 13,

    /// <summary>

    /// Resource no longer exists. 

    /// </summary>

    Gone = 14,

    /// <summary>

    /// Temporarily unavailable. 

    /// </summary>

    TemporarilyUnavailable = 15,

    /// <summary>

    /// Address incomplete. 

    /// </summary>

    AddressIncomplete = 16,

    /// <summary>

    /// Not implemented. 

    /// </summary>

    NotImplemented = 17,

    /// <summary>

    /// Bad gateway. 

    /// </summary>

    BadGateway = 18,

    /// <summary>

    /// Server timeout. 

    /// </summary>

    ServerTimeout = 19,

    /// <summary>

    /// Unknown reason. 

    /// </summary>

    Unknown = 20,

}

/// <summary>

/// Enum listing frequent telephony tones. 

/// </summary>

public enum ToneID

{

    /// <summary>

    /// Not a tone. 

    /// </summary>

    Undefined = 0,

    /// <summary>

    /// Busy tone. 

    /// </summary>

    Busy = 1,

    CallWaiting = 2,

    /// <summary>

    /// Call waiting tone. 

    /// </summary>

    CallOnHold = 3,

    /// <summary>

    /// Call on hold tone. 

    /// </summary>

    CallLost = 4,

}

/// <summary>

/// Enum describing the result of a version update check. 

/// </summary>

public enum VersionUpdateCheckResult

{

    UpToDate = 0,

    NewVersionAvailable = 1,

    Error = 2,

}

/// <summary>

/// Enum describing the types of argument for LinphoneXmlRpcRequest. 

/// </summary>

public enum XmlRpcArgType

{

    None = 0,

    Int = 1,

    String = 2,

}

/// <summary>

/// Enum describing the status of a LinphoneXmlRpcRequest. 

/// </summary>

public enum XmlRpcStatus

{

    Pending = 0,

    Ok = 1,

    Failed = 2,

}

/// <summary>

/// Enum describing the authentication methods. 

/// </summary>

public enum AuthMethod

{

    /// <summary>

    /// Digest authentication requested. 

    /// </summary>

    HttpDigest = 0,

    /// <summary>

    /// Client certificate requested. 

    /// </summary>

    Tls = 1,

}

public enum LimeState

{

    /// <summary>

    /// Lime is not used at all. 

    /// </summary>

    Disabled = 0,

    /// <summary>

    /// Lime is always used. 

    /// </summary>

    Mandatory = 1,

    /// <summary>

    /// Lime is used only if we already shared a secret with remote. 

    /// </summary>

    Preferred = 2,

}

/// <summary>

/// LinphoneRegistrationState describes proxy registration states. 

/// </summary>

public enum RegistrationState

{

    /// <summary>

    /// Initial state for registrations. 

    /// </summary>

    None = 0,

    /// <summary>

    /// Registration is in progress. 

    /// </summary>

    Progress = 1,

    /// <summary>

    /// Registration is successful. 

    /// </summary>

    Ok = 2,

    /// <summary>

    /// Unregistration succeeded. 

    /// </summary>

    Cleared = 3,

    /// <summary>

    /// Registration failed. 

    /// </summary>

    Failed = 4,

}

/// <summary>

/// Enum describing the tunnel modes. 

/// </summary>

public enum TunnelMode

{

    /// <summary>

    /// The tunnel is disabled. 

    /// </summary>

    Disable = 0,

    /// <summary>

    /// The tunnel is enabled. 

    /// </summary>

    Enable = 1,

    /// <summary>

    /// The tunnel is enabled automatically if it is required. 

    /// </summary>

    Auto = 2,

}

endregion

region Listeners

[StructLayout(LayoutKind.Sequential)]

public class ImEncryptionEngineListener : LinphoneObject

{

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_im_encryption_engine_cbs_set_generate_file_transfer_key(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_im_encryption_engine_cbs_set_generate_file_transfer_key(IntPtr thiz, OnGenerateFileTransferKeyDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnGenerateFileTransferKeyDelegatePrivate(IntPtr engine, IntPtr room, IntPtr msg);

    public delegate void OnGenerateFileTransferKeyDelegate(ImEncryptionEngine engine, ChatRoom room, ChatMessage msg);

    private OnGenerateFileTransferKeyDelegatePrivate on_generate_file_transfer_key_private;

    private OnGenerateFileTransferKeyDelegate on_generate_file_transfer_key_public;

if IOS

    [MonoPInvokeCallback(typeof(OnGenerateFileTransferKeyDelegatePrivate))]

endif

    private static void on_generate_file_transfer_key(IntPtr engine, IntPtr room, IntPtr msg)

    {

        ImEncryptionEngine thiz = fromNativePtr<ImEncryptionEngine>(engine);

        ImEncryptionEngineListener listener = thiz.Listener;

        listener.on_generate_file_transfer_key_public?.Invoke(thiz, fromNativePtr<ChatRoom>(room), fromNativePtr<ChatMessage>(msg));

    }

    public OnGenerateFileTransferKeyDelegate OnGenerateFileTransferKey

    {

        get

        {

            return on_generate_file_transfer_key_public;

        }

        set

        {

            on_generate_file_transfer_key_public = value;

if WINDOWS_UWP

            on_generate_file_transfer_key_private = on_generate_file_transfer_key;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_generate_file_transfer_key_private);

            linphone_im_encryption_engine_cbs_set_generate_file_transfer_key(nativePtr, cb);

else

            linphone_im_encryption_engine_cbs_set_generate_file_transfer_key(nativePtr, on_generate_file_transfer_key);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_im_encryption_engine_cbs_set_is_encryption_enabled_for_file_transfer(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_im_encryption_engine_cbs_set_is_encryption_enabled_for_file_transfer(IntPtr thiz, OnIsEncryptionEnabledForFileTransferDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnIsEncryptionEnabledForFileTransferDelegatePrivate(IntPtr engine, IntPtr room);

    public delegate void OnIsEncryptionEnabledForFileTransferDelegate(ImEncryptionEngine engine, ChatRoom room);

    private OnIsEncryptionEnabledForFileTransferDelegatePrivate on_is_encryption_enabled_for_file_transfer_private;

    private OnIsEncryptionEnabledForFileTransferDelegate on_is_encryption_enabled_for_file_transfer_public;

if IOS

    [MonoPInvokeCallback(typeof(OnIsEncryptionEnabledForFileTransferDelegatePrivate))]

endif

    private static void on_is_encryption_enabled_for_file_transfer(IntPtr engine, IntPtr room)

    {

        ImEncryptionEngine thiz = fromNativePtr<ImEncryptionEngine>(engine);

        ImEncryptionEngineListener listener = thiz.Listener;

        listener.on_is_encryption_enabled_for_file_transfer_public?.Invoke(thiz, fromNativePtr<ChatRoom>(room));

    }

    public OnIsEncryptionEnabledForFileTransferDelegate OnIsEncryptionEnabledForFileTransfer

    {

        get

        {

            return on_is_encryption_enabled_for_file_transfer_public;

        }

        set

        {

            on_is_encryption_enabled_for_file_transfer_public = value;

if WINDOWS_UWP

            on_is_encryption_enabled_for_file_transfer_private = on_is_encryption_enabled_for_file_transfer;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_is_encryption_enabled_for_file_transfer_private);

            linphone_im_encryption_engine_cbs_set_is_encryption_enabled_for_file_transfer(nativePtr, cb);

else

            linphone_im_encryption_engine_cbs_set_is_encryption_enabled_for_file_transfer(nativePtr, on_is_encryption_enabled_for_file_transfer);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_im_encryption_engine_cbs_set_process_downloading_file(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_im_encryption_engine_cbs_set_process_downloading_file(IntPtr thiz, OnProcessDownloadingFileDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnProcessDownloadingFileDelegatePrivate(IntPtr engine, IntPtr msg, long offset, uint buffer, long size, uint decryptedBuffer);

    public delegate void OnProcessDownloadingFileDelegate(ImEncryptionEngine engine, ChatMessage msg, long offset, uint buffer, long size, uint decryptedBuffer);

    private OnProcessDownloadingFileDelegatePrivate on_process_downloading_file_private;

    private OnProcessDownloadingFileDelegate on_process_downloading_file_public;

if IOS

    [MonoPInvokeCallback(typeof(OnProcessDownloadingFileDelegatePrivate))]

endif

    private static void on_process_downloading_file(IntPtr engine, IntPtr msg, long offset, uint buffer, long size, uint decryptedBuffer)

    {

        ImEncryptionEngine thiz = fromNativePtr<ImEncryptionEngine>(engine);

        ImEncryptionEngineListener listener = thiz.Listener;

        listener.on_process_downloading_file_public?.Invoke(thiz, fromNativePtr<ChatMessage>(msg), offset, buffer, size, decryptedBuffer);

    }

    public OnProcessDownloadingFileDelegate OnProcessDownloadingFile

    {

        get

        {

            return on_process_downloading_file_public;

        }

        set

        {

            on_process_downloading_file_public = value;

if WINDOWS_UWP

            on_process_downloading_file_private = on_process_downloading_file;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_process_downloading_file_private);

            linphone_im_encryption_engine_cbs_set_process_downloading_file(nativePtr, cb);

else

            linphone_im_encryption_engine_cbs_set_process_downloading_file(nativePtr, on_process_downloading_file);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_im_encryption_engine_cbs_set_process_incoming_message(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_im_encryption_engine_cbs_set_process_incoming_message(IntPtr thiz, OnProcessIncomingMessageDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnProcessIncomingMessageDelegatePrivate(IntPtr engine, IntPtr room, IntPtr msg);

    public delegate void OnProcessIncomingMessageDelegate(ImEncryptionEngine engine, ChatRoom room, ChatMessage msg);

    private OnProcessIncomingMessageDelegatePrivate on_process_incoming_message_private;

    private OnProcessIncomingMessageDelegate on_process_incoming_message_public;

if IOS

    [MonoPInvokeCallback(typeof(OnProcessIncomingMessageDelegatePrivate))]

endif

    private static void on_process_incoming_message(IntPtr engine, IntPtr room, IntPtr msg)

    {

        ImEncryptionEngine thiz = fromNativePtr<ImEncryptionEngine>(engine);

        ImEncryptionEngineListener listener = thiz.Listener;

        listener.on_process_incoming_message_public?.Invoke(thiz, fromNativePtr<ChatRoom>(room), fromNativePtr<ChatMessage>(msg));

    }

    public OnProcessIncomingMessageDelegate OnProcessIncomingMessage

    {

        get

        {

            return on_process_incoming_message_public;

        }

        set

        {

            on_process_incoming_message_public = value;

if WINDOWS_UWP

            on_process_incoming_message_private = on_process_incoming_message;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_process_incoming_message_private);

            linphone_im_encryption_engine_cbs_set_process_incoming_message(nativePtr, cb);

else

            linphone_im_encryption_engine_cbs_set_process_incoming_message(nativePtr, on_process_incoming_message);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_im_encryption_engine_cbs_set_process_outgoing_message(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_im_encryption_engine_cbs_set_process_outgoing_message(IntPtr thiz, OnProcessOutgoingMessageDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnProcessOutgoingMessageDelegatePrivate(IntPtr engine, IntPtr room, IntPtr msg);

    public delegate void OnProcessOutgoingMessageDelegate(ImEncryptionEngine engine, ChatRoom room, ChatMessage msg);

    private OnProcessOutgoingMessageDelegatePrivate on_process_outgoing_message_private;

    private OnProcessOutgoingMessageDelegate on_process_outgoing_message_public;

if IOS

    [MonoPInvokeCallback(typeof(OnProcessOutgoingMessageDelegatePrivate))]

endif

    private static void on_process_outgoing_message(IntPtr engine, IntPtr room, IntPtr msg)

    {

        ImEncryptionEngine thiz = fromNativePtr<ImEncryptionEngine>(engine);

        ImEncryptionEngineListener listener = thiz.Listener;

        listener.on_process_outgoing_message_public?.Invoke(thiz, fromNativePtr<ChatRoom>(room), fromNativePtr<ChatMessage>(msg));

    }

    public OnProcessOutgoingMessageDelegate OnProcessOutgoingMessage

    {

        get

        {

            return on_process_outgoing_message_public;

        }

        set

        {

            on_process_outgoing_message_public = value;

if WINDOWS_UWP

            on_process_outgoing_message_private = on_process_outgoing_message;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_process_outgoing_message_private);

            linphone_im_encryption_engine_cbs_set_process_outgoing_message(nativePtr, cb);

else

            linphone_im_encryption_engine_cbs_set_process_outgoing_message(nativePtr, on_process_outgoing_message);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_im_encryption_engine_cbs_set_process_uploading_file(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_im_encryption_engine_cbs_set_process_uploading_file(IntPtr thiz, OnProcessUploadingFileDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnProcessUploadingFileDelegatePrivate(IntPtr engine, IntPtr msg, long offset, uint buffer, long size, uint encryptedBuffer);

    public delegate void OnProcessUploadingFileDelegate(ImEncryptionEngine engine, ChatMessage msg, long offset, uint buffer, long size, uint encryptedBuffer);

    private OnProcessUploadingFileDelegatePrivate on_process_uploading_file_private;

    private OnProcessUploadingFileDelegate on_process_uploading_file_public;

if IOS

    [MonoPInvokeCallback(typeof(OnProcessUploadingFileDelegatePrivate))]

endif

    private static void on_process_uploading_file(IntPtr engine, IntPtr msg, long offset, uint buffer, long size, uint encryptedBuffer)

    {

        ImEncryptionEngine thiz = fromNativePtr<ImEncryptionEngine>(engine);

        ImEncryptionEngineListener listener = thiz.Listener;

        listener.on_process_uploading_file_public?.Invoke(thiz, fromNativePtr<ChatMessage>(msg), offset, buffer, size, encryptedBuffer);

    }

    public OnProcessUploadingFileDelegate OnProcessUploadingFile

    {

        get

        {

            return on_process_uploading_file_public;

        }

        set

        {

            on_process_uploading_file_public = value;

if WINDOWS_UWP

            on_process_uploading_file_private = on_process_uploading_file;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_process_uploading_file_private);

            linphone_im_encryption_engine_cbs_set_process_uploading_file(nativePtr, cb);

else

            linphone_im_encryption_engine_cbs_set_process_uploading_file(nativePtr, on_process_uploading_file);

endif

        }

    }

}

[StructLayout(LayoutKind.Sequential)]

public class AccountCreatorListener : LinphoneObject

{

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_account_creator_cbs_set_activate_account(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_account_creator_cbs_set_activate_account(IntPtr thiz, OnActivateAccountDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnActivateAccountDelegatePrivate(IntPtr creator, int status, string resp);

    public delegate void OnActivateAccountDelegate(AccountCreator creator, AccountCreatorStatus status, string resp);

    private OnActivateAccountDelegatePrivate on_activate_account_private;

    private OnActivateAccountDelegate on_activate_account_public;

if IOS

    [MonoPInvokeCallback(typeof(OnActivateAccountDelegatePrivate))]

endif

    private static void on_activate_account(IntPtr creator, int status, string resp)

    {

        AccountCreator thiz = fromNativePtr<AccountCreator>(creator);

        AccountCreatorListener listener = thiz.Listener;

        listener.on_activate_account_public?.Invoke(thiz, (AccountCreatorStatus)status, resp);

    }

    public OnActivateAccountDelegate OnActivateAccount

    {

        get

        {

            return on_activate_account_public;

        }

        set

        {

            on_activate_account_public = value;

if WINDOWS_UWP

            on_activate_account_private = on_activate_account;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_activate_account_private);

            linphone_account_creator_cbs_set_activate_account(nativePtr, cb);

else

            linphone_account_creator_cbs_set_activate_account(nativePtr, on_activate_account);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_account_creator_cbs_set_activate_alias(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_account_creator_cbs_set_activate_alias(IntPtr thiz, OnActivateAliasDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnActivateAliasDelegatePrivate(IntPtr creator, int status, string resp);

    public delegate void OnActivateAliasDelegate(AccountCreator creator, AccountCreatorStatus status, string resp);

    private OnActivateAliasDelegatePrivate on_activate_alias_private;

    private OnActivateAliasDelegate on_activate_alias_public;

if IOS

    [MonoPInvokeCallback(typeof(OnActivateAliasDelegatePrivate))]

endif

    private static void on_activate_alias(IntPtr creator, int status, string resp)

    {

        AccountCreator thiz = fromNativePtr<AccountCreator>(creator);

        AccountCreatorListener listener = thiz.Listener;

        listener.on_activate_alias_public?.Invoke(thiz, (AccountCreatorStatus)status, resp);

    }

    public OnActivateAliasDelegate OnActivateAlias

    {

        get

        {

            return on_activate_alias_public;

        }

        set

        {

            on_activate_alias_public = value;

if WINDOWS_UWP

            on_activate_alias_private = on_activate_alias;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_activate_alias_private);

            linphone_account_creator_cbs_set_activate_alias(nativePtr, cb);

else

            linphone_account_creator_cbs_set_activate_alias(nativePtr, on_activate_alias);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_account_creator_cbs_set_create_account(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_account_creator_cbs_set_create_account(IntPtr thiz, OnCreateAccountDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnCreateAccountDelegatePrivate(IntPtr creator, int status, string resp);

    public delegate void OnCreateAccountDelegate(AccountCreator creator, AccountCreatorStatus status, string resp);

    private OnCreateAccountDelegatePrivate on_create_account_private;

    private OnCreateAccountDelegate on_create_account_public;

if IOS

    [MonoPInvokeCallback(typeof(OnCreateAccountDelegatePrivate))]

endif

    private static void on_create_account(IntPtr creator, int status, string resp)

    {

        AccountCreator thiz = fromNativePtr<AccountCreator>(creator);

        AccountCreatorListener listener = thiz.Listener;

        listener.on_create_account_public?.Invoke(thiz, (AccountCreatorStatus)status, resp);

    }

    public OnCreateAccountDelegate OnCreateAccount

    {

        get

        {

            return on_create_account_public;

        }

        set

        {

            on_create_account_public = value;

if WINDOWS_UWP

            on_create_account_private = on_create_account;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_create_account_private);

            linphone_account_creator_cbs_set_create_account(nativePtr, cb);

else

            linphone_account_creator_cbs_set_create_account(nativePtr, on_create_account);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_account_creator_cbs_set_is_account_activated(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_account_creator_cbs_set_is_account_activated(IntPtr thiz, OnIsAccountActivatedDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnIsAccountActivatedDelegatePrivate(IntPtr creator, int status, string resp);

    public delegate void OnIsAccountActivatedDelegate(AccountCreator creator, AccountCreatorStatus status, string resp);

    private OnIsAccountActivatedDelegatePrivate on_is_account_activated_private;

    private OnIsAccountActivatedDelegate on_is_account_activated_public;

if IOS

    [MonoPInvokeCallback(typeof(OnIsAccountActivatedDelegatePrivate))]

endif

    private static void on_is_account_activated(IntPtr creator, int status, string resp)

    {

        AccountCreator thiz = fromNativePtr<AccountCreator>(creator);

        AccountCreatorListener listener = thiz.Listener;

        listener.on_is_account_activated_public?.Invoke(thiz, (AccountCreatorStatus)status, resp);

    }

    public OnIsAccountActivatedDelegate OnIsAccountActivated

    {

        get

        {

            return on_is_account_activated_public;

        }

        set

        {

            on_is_account_activated_public = value;

if WINDOWS_UWP

            on_is_account_activated_private = on_is_account_activated;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_is_account_activated_private);

            linphone_account_creator_cbs_set_is_account_activated(nativePtr, cb);

else

            linphone_account_creator_cbs_set_is_account_activated(nativePtr, on_is_account_activated);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_account_creator_cbs_set_is_account_exist(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_account_creator_cbs_set_is_account_exist(IntPtr thiz, OnIsAccountExistDelegatePrivate cb);

endif

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

    private delegate void OnIsAccountExistDelegatePrivate(IntPtr creator, int status, string resp);

    public delegate void OnIsAccountExistDelegate(AccountCreator creator, AccountCreatorStatus status, string resp);

    private OnIsAccountExistDelegatePrivate on_is_account_exist_private;

    private OnIsAccountExistDelegate on_is_account_exist_public;

if IOS

    [MonoPInvokeCallback(typeof(OnIsAccountExistDelegatePrivate))]

endif

    private static void on_is_account_exist(IntPtr creator, int status, string resp)

    {

        AccountCreator thiz = fromNativePtr<AccountCreator>(creator);

        AccountCreatorListener listener = thiz.Listener;

        listener.on_is_account_exist_public?.Invoke(thiz, (AccountCreatorStatus)status, resp);

    }

    public OnIsAccountExistDelegate OnIsAccountExist

    {

        get

        {

            return on_is_account_exist_public;

        }

        set

        {

            on_is_account_exist_public = value;

if WINDOWS_UWP

            on_is_account_exist_private = on_is_account_exist;

            IntPtr cb = Marshal.GetFunctionPointerForDelegate(on_is_account_exist_private);

            linphone_account_creator_cbs_set_is_account_exist(nativePtr, cb);

else

            linphone_account_creator_cbs_set_is_account_exist(nativePtr, on_is_account_exist);

endif

        }

    }

    [DllImport(LinphoneWrapper.LIB_NAME)]

if WINDOWS_UWP

    static extern void linphone_account_creator_cbs_set_is_account_linked(IntPtr thiz, IntPtr cb);

else

    static extern void linphone_account_creator_cbs_set_is_account_linked(IntPtr thiz, OnIsAccountLinkedDelegatePrivate cb);

endif

    [UnmanagedFunctionP
RCLuciano commented 3 years ago

did u use preraper.py x64? On Mon, 14 Dec 2020 at 11:29, gala xy @.> wrote: SDK built now. but when I try to compile Linphone.sln a get a lot of messages that type or namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, “Call”, ”Core”, “CoreListener” etc. please comment On Mon, 14 Dec 2020 at 11:28, gala xy @.> wrote: > sdk built no but > when I try to compile Linphone.sln a get a lot of messages that type or > namespace not found (CS0246) for “Chat”, “ChatMessage”, “ChatMessageState”, > “Call”, ”Core”, “CoreListener” etc. > please comment > > > On Mon, 14 Dec 2020 at 09:18, gala xy @.> wrote: > >> thanks. >> it worked and SDK has been generated, >> But when i built it in VS 15 2017, got error : >> >> F >> ileNotFoundError: [WinError 3] The system cannot find the path >> specified: >> 'C:/Users/COML/linphone-windows10/WORK/win10-ARM/Build/linphone/coreapi/help/doc/doxygen/xml'1> >> C:\Program Files (x86)\Microsoft Visual >> Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): >> error MSB6006: "cmd.exe" exited with code 1. >> [C:\Users\COML\linphone-windows10\WORK\win10-ARM\Build\linphone\wrappers\csharp\linphonecs.vcxproj] >> [C:\Users\COML\linphone-windows10\WORK\win10-ARM\cmake\EP_linphone.vcxproj] >> >> i just ran prepare.py -c >> then prepare.py >> gave no option like x64 or x86 >> i have windows 10 pro, 64 bit OS >> >> >> please reply >> >> >> >> On Sat, 12 Dec 2020 at 21:54, RCLuciano @.> >> wrote: >> >>> and for linphone windows 10 , i replaced the slashes but error is same. >>> i have python 3.7 . is this the issue with version? >>> please reply. >>> >>> prepare.py.txt >>> https://github.com/BelledonneCommunications/linphone-windows10/files/5683456/prepare.py.txt >>> Please review the prepare.py file fixed, it was tested for version 3.9 >>> and works in my environment. >>> >>> I used the following cmd: python prepare.py -G "Visual Studio 16 2019" >>> -DCMAKE_SYSTEM_VERSION=10.0 -f >>> Modify the -G "with version you have installed" >>> >>> Let me know >>> >>> — >>> You are receiving this because you commented. >>> Reply to this email directly, view it on GitHub >>> <#2 (comment)>, >>> or unsubscribe >>> https://github.com/notifications/unsubscribe-auth/AR2LQMAPU4TKMFDO7FNTXOTSUON3RANCNFSM4D4KBJMQ >>> . >>> >>

This is the command used: python prepare.py -G "Visual Studio 16 2019" -DENABLE_DOC=OFF -DCMAKE_SYSTEM_VERSION=10.0

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from << to <<

There is an issue in some vcxproj files, specifically the tag WindowsTargetPlatformMinVersion, for some reasons is causing the SDK compilation and Linphone compilation not see some h files. Look the vcxproj files that contains the same values for the tags WindowsTargetPlatformMinVersion and WindowsTargetPlatformVersion.

Change the value found for 10.0.40219.1 in WindowsTargetPlatformMinVersion.

I'm using the following bat file for fix all the vcxproj. FixPlatformMinVersion.bat.txt

Do the fix and run the SDK compilation again.

Let me know the results.

RCLuciano commented 3 years ago

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

turquisegalaxy commented 3 years ago

i changed the characters accordingly. but autogenerated linphonewrapper.cs contains same errors. please reply

On Mon, 14 Dec 2020 at 19:25, RCLuciano notifications@github.com wrote:

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-744474665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMDBTAFX2LD4T4KIQRTSUYN5NANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

should i try with python 2.7 as mentioned in ReadMe file. i currently have python 3.7

On Tue, 15 Dec 2020 at 12:03, gala xy turquisegalaxy@gmail.com wrote:

i changed the characters accordingly. but autogenerated linphonewrapper.cs contains same errors. please reply

On Mon, 14 Dec 2020 at 19:25, RCLuciano notifications@github.com wrote:

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-744474665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMDBTAFX2LD4T4KIQRTSUYN5NANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

Moreover, i could not run the bat file. there is error of unrecognized command in command prompt

On Tue, 15 Dec 2020 at 12:07, gala xy turquisegalaxy@gmail.com wrote:

should i try with python 2.7 as mentioned in ReadMe file. i currently have python 3.7

On Tue, 15 Dec 2020 at 12:03, gala xy turquisegalaxy@gmail.com wrote:

i changed the characters accordingly. but autogenerated linphonewrapper.cs contains same errors. please reply

On Mon, 14 Dec 2020 at 19:25, RCLuciano notifications@github.com wrote:

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-744474665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMDBTAFX2LD4T4KIQRTSUYN5NANCNFSM4D4KBJMQ .

RCLuciano commented 3 years ago

Moreover, i could not run the bat file. there is error of unrecognized command in command prompt

On Tue, 15 Dec 2020 at 12:07, gala xy turquisegalaxy@gmail.com wrote:

should i try with python 2.7 as mentioned in ReadMe file. i currently have python 3.7

On Tue, 15 Dec 2020 at 12:03, gala xy turquisegalaxy@gmail.com wrote:

i changed the characters accordingly. but autogenerated linphonewrapper.cs contains same errors. please reply

On Mon, 14 Dec 2020 at 19:25, RCLuciano notifications@github.com wrote:

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-744474665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMDBTAFX2LD4T4KIQRTSUYN5NANCNFSM4D4KBJMQ .

Without run prepare.py -c, compile sdk again, if you see the same error look the files in the Work directory and fix the characters and try the compilation of the sdk, the issue should be fixed

Don't run prepare.py or the fix will be overrride, it seems the doxygen cause the issue.

turquisegalaxy commented 3 years ago

thanks for reply.

i only ran prepare.py. and now building wrapper sln only. getting following errors along with previously mentioned linphonewrapper.cs errors Considered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\v2.0\Windows.winmd", but it didn't exist. 1> Considered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\v2.0\Windows.dll", but it didn't exist. 1> Considered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\v2.0\Windows.exe", but it didn't exist. 1> For SearchPath "{AssemblyFolders}". 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\Windows.winmd", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\Windows.dll", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\Windows.exe", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Windows.winmd", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Windows.dll", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Windows.exe", but it didn't exist. 1> For SearchPath "{GAC}". 1> Considered "Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null", which was not found in the GAC. 1> For SearchPath "bin\Debug\". 1> Considered "bin\Debug\Windows.winmd", but it didn't exist. 1> Considered "bin\Debug\Windows.dll", but it didn't exist. 1> Considered "bin\Debug\Windows.exe", but it didn't exist.

please comment

On Wed, 16 Dec 2020 at 06:40, RCLuciano notifications@github.com wrote:

Moreover, i could not run the bat file. there is error of unrecognized command in command prompt

On Tue, 15 Dec 2020 at 12:07, gala xy turquisegalaxy@gmail.com wrote:

should i try with python 2.7 as mentioned in ReadMe file. i currently have python 3.7

On Tue, 15 Dec 2020 at 12:03, gala xy turquisegalaxy@gmail.com wrote:

i changed the characters accordingly. but autogenerated linphonewrapper.cs contains same errors. please reply

On Mon, 14 Dec 2020 at 19:25, RCLuciano notifications@github.com wrote:

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

2 (comment)

https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-744474665 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AR2LQMDBTAFX2LD4T4KIQRTSUYN5NANCNFSM4D4KBJMQ .

Without run prepare.py -c, compile sdk again, if you see the same error look the files in the Work directory and fix the characters and try the compilation of the sdk, the issue should be fixed

Don't run prepare.py or the fix will be overrride, it seems the doxygen cause the issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-745707737, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMFI4I7ZEVRR77Y7XO3SVAFZHANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

do i need to reinstall vs 2017 or install vs 2019?

On Thu, 17 Dec 2020 at 13:55, gala xy turquisegalaxy@gmail.com wrote:

thanks for reply.

i only ran prepare.py. and now building wrapper sln only. getting following errors along with previously mentioned linphonewrapper.cs errors Considered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\v2.0\Windows.winmd", but it didn't exist. 1> Considered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\v2.0\Windows.dll", but it didn't exist. 1> Considered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\v2.0\Windows.exe", but it didn't exist. 1> For SearchPath "{AssemblyFolders}". 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\Windows.winmd", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\Windows.dll", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\Windows.exe", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Windows.winmd", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Windows.dll", but it didn't exist. 1> Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\Windows.exe", but it didn't exist. 1> For SearchPath "{GAC}". 1> Considered "Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null", which was not found in the GAC. 1> For SearchPath "bin\Debug\". 1> Considered "bin\Debug\Windows.winmd", but it didn't exist. 1> Considered "bin\Debug\Windows.dll", but it didn't exist. 1> Considered "bin\Debug\Windows.exe", but it didn't exist.

please comment

On Wed, 16 Dec 2020 at 06:40, RCLuciano notifications@github.com wrote:

Moreover, i could not run the bat file. there is error of unrecognized command in command prompt

On Tue, 15 Dec 2020 at 12:07, gala xy turquisegalaxy@gmail.com wrote:

should i try with python 2.7 as mentioned in ReadMe file. i currently have python 3.7

On Tue, 15 Dec 2020 at 12:03, gala xy turquisegalaxy@gmail.com wrote:

i changed the characters accordingly. but autogenerated linphonewrapper.cs contains same errors. please reply

On Mon, 14 Dec 2020 at 19:25, RCLuciano notifications@github.com wrote:

Look for the files LinphoneWrapper.cs into WORK folder and fix the following characters from & l t ; & l t ; to << Remove the spaces between & l t ;

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

2 (comment)

https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-744474665 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AR2LQMDBTAFX2LD4T4KIQRTSUYN5NANCNFSM4D4KBJMQ .

Without run prepare.py -c, compile sdk again, if you see the same error look the files in the Work directory and fix the characters and try the compilation of the sdk, the issue should be fixed

Don't run prepare.py or the fix will be overrride, it seems the doxygen cause the issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-745707737, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMFI4I7ZEVRR77Y7XO3SVAFZHANCNFSM4D4KBJMQ .

RCLuciano commented 3 years ago

I did the build using Visual Studio 2019 but the references are configured to Visual Studio 2017, it should works.

Can you specify the steps done for the build?

turquisegalaxy commented 3 years ago

i executed prepare.py it generated sdk.sln and wrapper files i built linphonewrapper.sln in vs 2017, then got previously mentioned errors

On Thu, 17 Dec 2020 at 20:17, RCLuciano notifications@github.com wrote:

I did the build using Visual Studio 2019 but the references are configured to Visual Studio 2017, it should works.

Can you specify the steps done for the build?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-747501843, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAMBX6ZL4POWPHPKOLSVIOJNANCNFSM4D4KBJMQ .

RCLuciano commented 3 years ago

i executed prepare.py it generated sdk.sln and wrapper files i built linphonewrapper.sln in vs 2017, then got previously mentioned errors

On Thu, 17 Dec 2020 at 20:17, RCLuciano notifications@github.com wrote:

I did the build using Visual Studio 2019 but the references are configured to Visual Studio 2017, it should works.

Can you specify the steps done for the build?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-747501843, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAMBX6ZL4POWPHPKOLSVIOJNANCNFSM4D4KBJMQ .

Try to build the sdk first and then linphone....

turquisegalaxy commented 3 years ago

yes, i have done same, first built sdk but got error mentioned previously

On Sun, 20 Dec 2020 at 06:12, RCLuciano notifications@github.com wrote:

i executed prepare.py it generated sdk.sln and wrapper files i built linphonewrapper.sln in vs 2017, then got previously mentioned errors

On Thu, 17 Dec 2020 at 20:17, RCLuciano notifications@github.com wrote:

I did the build using Visual Studio 2019 but the references are configured to Visual Studio 2017, it should works.

Can you specify the steps done for the build?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

2 (comment)

https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-747501843 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AR2LQMAMBX6ZL4POWPHPKOLSVIOJNANCNFSM4D4KBJMQ .

Try to build the sdk first and then linphone....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-748548114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAEKTTYP5MCRCG35H3SVVFQTANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

i re-installed visual studio 2017. SDK built succ now getting following error while building linphone.sln C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\WindowsXaml\v15.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(266,5): Xaml Internal Error error WMC9999: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)

please comment

On Mon, 21 Dec 2020 at 13:48, gala xy turquisegalaxy@gmail.com wrote:

yes, i have done same, first built sdk but got error mentioned previously

On Sun, 20 Dec 2020 at 06:12, RCLuciano notifications@github.com wrote:

i executed prepare.py it generated sdk.sln and wrapper files i built linphonewrapper.sln in vs 2017, then got previously mentioned errors

On Thu, 17 Dec 2020 at 20:17, RCLuciano notifications@github.com wrote:

I did the build using Visual Studio 2019 but the references are configured to Visual Studio 2017, it should works.

Can you specify the steps done for the build?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

2 (comment)

https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-747501843 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AR2LQMAMBX6ZL4POWPHPKOLSVIOJNANCNFSM4D4KBJMQ .

Try to build the sdk first and then linphone....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-748548114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAEKTTYP5MCRCG35H3SVVFQTANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

please reply if you have any solution of error mentioned in previous email.

On Thu, 24 Dec 2020 at 08:46, gala xy turquisegalaxy@gmail.com wrote:

i re-installed visual studio 2017. SDK built succ now getting following error while building linphone.sln C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\WindowsXaml\v15.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(266,5): Xaml Internal Error error WMC9999: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)

please comment

On Mon, 21 Dec 2020 at 13:48, gala xy turquisegalaxy@gmail.com wrote:

yes, i have done same, first built sdk but got error mentioned previously

On Sun, 20 Dec 2020 at 06:12, RCLuciano notifications@github.com wrote:

i executed prepare.py it generated sdk.sln and wrapper files i built linphonewrapper.sln in vs 2017, then got previously mentioned errors

On Thu, 17 Dec 2020 at 20:17, RCLuciano notifications@github.com wrote:

I did the build using Visual Studio 2019 but the references are configured to Visual Studio 2017, it should works.

Can you specify the steps done for the build?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

2 (comment)

https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-747501843 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AR2LQMAMBX6ZL4POWPHPKOLSVIOJNANCNFSM4D4KBJMQ .

Try to build the sdk first and then linphone....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-748548114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMAEKTTYP5MCRCG35H3SVVFQTANCNFSM4D4KBJMQ .

RCLuciano commented 3 years ago

What was the message for the SDK compilation?

turquisegalaxy commented 3 years ago

sdk built successfully

On Sun, 3 Jan 2021 at 22:19, RCLuciano notifications@github.com wrote:

What was the message for the SDK compilation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-753648749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMCVPXWPIPL5BFWMJ4TSYCRI7ANCNFSM4D4KBJMQ .

RCLuciano commented 3 years ago

Ok, does linphone-windows10 folder is in root?, I mean, c:\linphone-windows10

Try to build using the root of windows.

sdk built successfully

On Sun, 3 Jan 2021 at 22:19, RCLuciano notifications@github.com wrote:

What was the message for the SDK compilation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-753648749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMCVPXWPIPL5BFWMJ4TSYCRI7ANCNFSM4D4KBJMQ .

turquisegalaxy commented 3 years ago

yes. i tried this too. now i hv shifted to linphone desktop m getting linking errors while building project in windows command line please comment

On Tue, 5 Jan 2021 at 08:59, RCLuciano notifications@github.com wrote:

Ok, does linphone-windows10 folder is in root?, I mean, c:\linphone-windows10

Try to build using the root of windows.

sdk built successfully

On Sun, 3 Jan 2021 at 22:19, RCLuciano notifications@github.com wrote:

What was the message for the SDK compilation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

2 (comment)

https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-753648749 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AR2LQMCVPXWPIPL5BFWMJ4TSYCRI7ANCNFSM4D4KBJMQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/2#issuecomment-754376664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR2LQMBHAFHS3ZPBJK7BLRLSYKFARANCNFSM4D4KBJMQ .

RCLuciano commented 3 years ago

I didn't try to compile the desktop version of linphone yet, I will comment as soon as can handle it.

RCLuciano commented 3 years ago

Step to compile with Visual Studio 2019, please see the file attached.

Visual Studio 2019 16.9.0 Python 3.9

Be sure to have doxygen, git, nasm and python in path for Environment variable

** Execute the cmd commands in root for linphone-windows10

-- Be sure to clean the installation python prepare.py -c -- Be sure to keep the submodule updates git submodule update --init --recursive -- Prepare the SDK compilation python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0 -- Fix the Platform Max Version for the vcxproj files FixPlatformMaxVersion.bat -- Fix the Platform Min Version for the vcxproj files FixPlatformMinVersion.bat -- Fix the Nuget Linphone Projects FixNuGetLinphone.bat -- Fix the CsWrapper Pre-Build events with the following code

  IF EXIST "$(MSBuildProjectDirectory)\..\OUTPUT\win10-x64\share\linphonecs\LinphoneWrapper.cs" (
       call "$(MSBuildProjectDirectory)\..\FixCsWrapper.bat" "$(MSBuildProjectDirectory)\..\OUTPUT\win10-x64\share\linphonecs\LinphoneWrapper.cs"
       copy $(MSBuildProjectDirectory)\..\OUTPUT\win10-x64\share\linphonecs\LinphoneWrapper.cs $(MSBuildProjectDirectory)\ /Y
     )
  IF EXIST "$(MSBuildProjectDirectory)\..\OUTPUT\win10-ARM\share\linphonecs\LinphoneWrapper.cs" (
      call "$(MSBuildProjectDirectory)\..\FixCsWrapper.bat" "$(MSBuildProjectDirectory)\..\OUTPUT\win10-ARM\share\linphonecs\LinphoneWrapper.cs"
      copy $(MSBuildProjectDirectory)\..\OUTPUT\win10-ARM\share\linphonecs\LinphoneWrapper.cs $(MSBuildProjectDirectory)\ /Y
    )
  IF EXIST "$(MSBuildProjectDirectory)\..\OUTPUT\win10-x86\share\linphonecs\LinphoneWrapper.cs" (
      call "$(MSBuildProjectDirectory)\..\FixCsWrapper.bat" "$(MSBuildProjectDirectory)\..\OUTPUT\win10-x86\share\linphonecs\LinphoneWrapper.cs"
      copy $(MSBuildProjectDirectory)\..\OUTPUT\win10-x86\share\linphonecs\LinphoneWrapper.cs $(MSBuildProjectDirectory)\ /Y
    )

-- Build the SDK in Visual Studio 2019 SDK.sln -- Create the certificate through Packaging Right click on Package.appxmanifest and select properties or Right click on Linphone Project and select Appliction and press the Package Manifest... button -- Build the Linphone in Visual Studio 2019 Linphone.sln

Notes: in case Linphone.sln does not build for missing references, add the reference for CsWrapper.dll in the project, for some reason Visual Studio 2019 sometimes do not handle correctly the LinphoneSDK linphone-windows10.zip