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

LinphoneWrapper.cs Not Found #5

Open S0U1SB4N3 opened 6 years ago

S0U1SB4N3 commented 6 years ago

I received this error regardless if I do prepare.py x86 or x64, it will build the SDK.sln, however, it will not compile the SDK.sln because its missing the the linphonewrapper.cs file, it appears that it never gets generated. please assist.

omnitorsimon commented 5 years ago

Hmm I also have trouble generating it. However I have one from before with some added functions, for example (startEchoCalibration). I Upload it here, rename it LinphoneWrapper.cs and put it in the CsWrapper folder and you are good to go.

LinphoneWrapper.cs.txt

RCLuciano commented 3 years ago

The file LinphoneWrapper.cs is generated and assigned automatically in the build phase.

I could compile the x64 and ARM without issues in Visual Studio 2019, the file LinphoneWrapper.cs is autogenerated and copied in the folder in the compilation. I have linking issues for the x86.

Please follow the steps: https://gitlab.linphone.org/BC/public/linphone-windows10

dv8inpp commented 3 years ago

I followed the instructions provided and do note the within the CsWrapper directory 3 new directories are created, (bin,obj and .vs) there is no file named LinphoneWrapper.cs

Also in the instructions it says to run python prepare.py -C <<<------ Is this correct or should it be -c? python prepare.py

When I go to compile the SDK.sln file via Visualstudio 2017 I get little red - signs next to NuGetLinphoneSDK.rule, NuGetLinphoneTesterSDK.rule and SDK_x64.rule

RCLuciano commented 3 years ago

I followed the instructions provided and do note the within the CsWrapper directory 3 new directories are created, (bin,obj and .vs) there is no file named LinphoneWrapper.cs

Also in the instructions it says to run python prepare.py -C <<<------ Is this correct or should it be -c? python prepare.py

When I go to compile the SDK.sln file via Visualstudio 2017 I get little red - signs next to NuGetLinphoneSDK.rule, NuGetLinphoneTesterSDK.rule and SDK_x64.rule

It seems -C is a typo because does not exist into the cleanup process, -c is the correct one.

The LinphoneWrapper.cs file is created into Work directory and then moved to CSWrapper directory in the SDK compilation.

If you cannot find the LinphoneWrapper.cs file in Work directory, it could be an error in the compilation process.

dv8inpp commented 3 years ago

Thanks for the quick reply. I cant find LinphoneWrapper.cs file in Work directory. So a compile error. Are there log files I can view?

Here is the results of python prepare.py x64

python_results.txt

dv8inpp commented 3 years ago

I have rebuilt and reinstalled all requirements x64 bit versions. I have installed Visual studio 2019 and altered the cmakelists.txt file to use VS 2019.

Still not getting I have rebuilt and reinstalled all requirements x64 bit versions. I have installed Visual studio 2019 and altered the cmakelists.txt file to use VS 2019.

Still not getting LinphoneWrapper.cs anywhere

RCLuciano commented 3 years ago

You can build without cmakelists.txt modifications, use the following cmd to prepare the config: python prepare.py -G "Visual Studio 16 2019" -DCMAKE_SYSTEM_VERSION=10.0

And then build SDK, the SDK compilation creates the LinphoneWrapper.cs file into Work directory

dv8inpp commented 3 years ago

Here are the compilation errors I am getting. Does anything stand out? Also when I open the SDK.sln in VS it shows the target cpu as being win32, should I leave that or change to x64 as that is what my target is?

Severity Code Description Project File Line Suppression State Error MSB8066 Custom build for 'C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\Build\linphone\CMakeFiles\7c1a2c76613b95b983725339c40a27f8\LinphoneWrapper.cs.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\Build\linphone\CMakeFiles\e2df608dcbf09b0bf207621f9170d25c\linphonecs.rule' exited with code 1. [C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 238

Severity Code Description Project File Line Suppression State Error MSB8066 Custom build for 'C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-configure.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-force_build.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-build.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-install.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\bea691a73da8646d7d62faee817dcb7d\EP_linphone-complete.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\35467fd7819b62c9ca6428e7bff101c5\EP_linphone.rule' exited with code 1. [C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 238

Severity Code Description Project File Line Suppression State Error MSB8066 Custom build for 'C:/Users/bmosh/Documents/linphone-windows10/WORK/win10-x64/SDK_x64.rule' exited with code 1. SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 238

RCLuciano commented 3 years ago

Here are the compilation errors I am getting. Does anything stand out? Also when I open the SDK.sln in VS it shows the target cpu as being win32, should I leave that or change to x64 as that is what my target is?

Severity Code Description Project File Line Suppression State Error MSB8066 Custom build for 'C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\Build\linphone\CMakeFiles\7c1a2c76613b95b983725339c40a27f8\LinphoneWrapper.cs.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\Build\linphone\CMakeFiles\e2df608dcbf09b0bf207621f9170d25c\linphonecs.rule' exited with code 1. [C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\Build\linphone\wrappers\csharp\linphonecs.vcxproj] [C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 238

Severity Code Description Project File Line Suppression State Error MSB8066 Custom build for 'C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-configure.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-force_build.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-build.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\87bb07cb0014addddf40ebfc594c6cef\EP_linphone-install.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\bea691a73da8646d7d62faee817dcb7d\EP_linphone-complete.rule;C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\CMakeFiles\35467fd7819b62c9ca6428e7bff101c5\EP_linphone.rule' exited with code 1. [C:\Users\bmosh\Documents\linphone-windows10\WORK\win10-x64\cmake\EP_linphone.vcxproj] SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 238

Severity Code Description Project File Line Suppression State Error MSB8066 Custom build for 'C:/Users/bmosh/Documents/linphone-windows10/WORK/win10-x64/SDK_x64.rule' exited with code 1. SDK_x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 238

Does not change the cpu target and try to build first x64, win32 and ARM before of linphone. It should works.

Most of the build configuration was designed to be in root, I mean, c:\linphone...

Try to build in the root. -

RCLuciano commented 3 years ago

linphone-windows10.zip

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