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

Unable to build SDK.sln #2

Open
deceivingrakesh opened this issue Sep 25, 2017 · 47 comments
Open

Unable to build SDK.sln #2

deceivingrakesh opened this issue Sep 25, 2017 · 47 comments

Comments

@deceivingrakesh
Copy link

deceivingrakesh commented Sep 25, 2017

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
Copy link

ivanvs commented Sep 26, 2017

Same error here on 64 bits.

LinphoneWrapper.cs is also missing on 32 bits also.

@DatBewar
Copy link
Contributor

DatBewar commented Oct 2, 2017

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

@erossetto
Copy link

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
Copy link
Contributor

DatBewar commented Oct 4, 2017

Can you paste the console output?

@erossetto
Copy link

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

@S0U1SB4N3
Copy link

S0U1SB4N3 commented Nov 30, 2017

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
Copy link

S0U1SB4N3 commented Nov 30, 2017

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
Copy link

S0U1SB4N3 commented Nov 30, 2017

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
Copy link

im still getting this error please assist.

@S0U1SB4N3
Copy link

I get a successful build however there are no exe files

@zahraesm
Copy link

zahraesm commented Jul 18, 2018

@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
Copy link

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
Copy link

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
Copy link

turquisegalaxy commented Dec 7, 2020 via email

@RCLuciano
Copy link

RCLuciano commented Dec 7, 2020

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
Copy link

turquisegalaxy commented Dec 8, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 8, 2020 via email

@RCLuciano
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

turquisegalaxy commented Dec 14, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 14, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 14, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 14, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 14, 2020 via email

@RCLuciano
Copy link

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
Copy link

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
Copy link

turquisegalaxy commented Dec 15, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 15, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 15, 2020 via email

@RCLuciano
Copy link

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),
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
Copy link

turquisegalaxy commented Dec 17, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 17, 2020 via email

@RCLuciano
Copy link

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
Copy link

turquisegalaxy commented Dec 18, 2020 via email

@RCLuciano
Copy link

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),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AR2LQMAMBX6ZL4POWPHPKOLSVIOJNANCNFSM4D4KBJMQ
.

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

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 21, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 24, 2020 via email

@turquisegalaxy
Copy link

turquisegalaxy commented Dec 28, 2020 via email

@RCLuciano
Copy link

What was the message for the SDK compilation?

@turquisegalaxy
Copy link

turquisegalaxy commented Jan 4, 2021 via email

@RCLuciano
Copy link

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),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AR2LQMCVPXWPIPL5BFWMJ4TSYCRI7ANCNFSM4D4KBJMQ
.

@turquisegalaxy
Copy link

turquisegalaxy commented Jan 5, 2021 via email

@RCLuciano
Copy link

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

@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

8 participants