Open S0U1SB4N3 opened 6 years ago
Hi, it's normally ok now. Can you confirm please?
attempted to build from master on github and received this error
i also just ran "python prepare.py" and received the same error
i just tested in the "new release branch and it is same error on line 374
@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?
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
Hi,
The message you received seems to be related to missing modules that need to be downloaded.
Try running the advice in root folder of linphone-windows10.
git submodule sync && git submodule update --init --recursive
When the downloaded is completed try again running prepare.py
Regards, RL
El mié., 27 ene. 2021 4:45 p. m., 0gnj3n notifications@github.com escribió:
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 https://github.com/BelledonneCommunications/linphone-windows10/files/5625700/prepare.py.txt
Hi, with your fix i get this
ERROR:root:Could not find prepare module: module 'prepare' has no attribute 'Target', probably missing submodules/cmake-builder? Try running: git submodule sync && git submodule update --init --recursive
Any advice, I don't usually use Python.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BelledonneCommunications/linphone-windows10/issues/3#issuecomment-768565599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6ZG2YXRAXOAOE7LHUIUI3S4B3OPANCNFSM4D5XJ7DQ .
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
There is a flaw in the prepare.py python script line 390 : line 76-77
this is from the master build