Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linphone-windows10 There is a flaw in the prepare.py python script line 390 : line 76-77 #3

Open
S0U1SB4N3 opened this issue Oct 4, 2017 · 9 comments

Comments

@S0U1SB4N3
Copy link

S0U1SB4N3 commented Oct 4, 2017

There is a flaw in the prepare.py python script line 390 : line 76-77
img_2804

this is from the master build

@DatBewar
Copy link
Contributor

Hi,
it's normally ok now.
Can you confirm please?

@S0U1SB4N3
Copy link
Author

linphonewin10error

@S0U1SB4N3
Copy link
Author

attempted to build from master on github and received this error

@S0U1SB4N3
Copy link
Author

i also just ran "python prepare.py" and received the same error

@S0U1SB4N3
Copy link
Author

i just tested in the "new release branch and it is same error on line 374

@anders9ustafsson
Copy link

@S0U1SB4N3 I am very late on the ball here, but aren't these errors related to Python 3? Have you tested to build with Python 2 instead?

@RCLuciano
Copy link

Please review if you have an entry in a path specification without \, python require double slash or only one backslash for the path specification. I fix the prepare.py and works OK.

Remove the .txt, the py file contains all the fix for the last python version.

Enjoy

prepare.py.txt

@RCLuciano
Copy link

RCLuciano commented Jan 27, 2021 via email

@RCLuciano
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants