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 the SDK.sln #9

Open zahraesm opened 6 years ago

zahraesm commented 6 years ago

has anyone ever been able to build and use this project in visual studio 2017?

i've been struggeling with it for a month now and no success. it seems to have some major flaws @anders9ustafsson @Viish @ghismary

zahraesm commented 6 years ago

@Wescoeur @DatBewar

FurryWhiteLlama commented 6 years ago

I'm also wondering? @zahraesm what errors do you run into?

My SDK.sln build does not work because '..\CsWrapper**LinphoneWrapper.cs' does not exist. What I don't understand is that it's looking for the file in the '..\CsWrapper' folder, which according to the CsWrapper project only gets copied when run, out of '..\OUTPUT\win10-ARM\share\linphonecs\LinphoneWrapper.cs' and that linephonecs folder doesn't exist. Does anyone know at which point does this file get created? When i ran python prepare.py ARM** it didn't give any errors.

Other errors I get in the SDK build all look similar to this: Error C2059: syntax error: '(' (compiling source file C:\Users\user\Documents\GitHub\linphone-windows10\submodules\externals\libxml2\dict.c) [C:\Users\user\Documents\GitHub\linphone-windows10\WORK\win10-ARM\Build\xml2\xml2.vcxproj] [C:\Users\user\Documents\GitHub\linphone-windows10\WORK\win10-ARM\cmake\EP_xml2.vcxproj] SDK_ARM C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt**stdlib.h** 1193

zahraesm commented 6 years ago

@FurryWhiteLlama hi i face the same issues as you. unfortunately i couldnt build this project after several attempts. FYI, i got the Linphonewrapper.cs by the blame(annotate) feature in visual studio. let me know if you have any success.

btw, i switched to linphone-desktop : https://github.com/BelledonneCommunications/linphone-desktop it seemssome ppl have built this one successfully!!

FurryWhiteLlama commented 6 years ago

Hey @zahraesm, I got the project to work (although not all of it, but its good enough). Unless you need the video call (MSWinRTVideo project) which I removed, just skip the SDK build by either getting the .nuget package their website and drop it in the OUTPUT folder or installing it through the package console directly for the Linphone.sln. Then it should work.

I needed it to build on ARM for Windows Handheld specifically so Linphone-desktop wouldn't help me. Now I can make VoIP calls, just not using video, but that was what I needed. Maybe this helps you?

Btw thanks for the reply last week, I appreciate it. It was getting a bit frustrating and it's nice to know you're not suffering alone with these things sometimes! 👍

omnitorsimon commented 5 years ago

Hello, Ive mange to make it all build using 2017 (v141 toolchain) and SDK 10.0.17763.0.

There was some issues with compiling, I changed the following.

I might be forgetting somthing, but a tip is that if you get an error like:

Error C2059: syntax error: '(' (compiling source file C:\Users\user\Documents\GitHub\linphone-windows10\submodules\externals\libxml2\dict.c)

Look at the error surrounding that error in the output, I think they just missed a "," or somthing in the varibles.

Best of luck.

SUHAILLL commented 5 years ago

did you got solution? is new sdk here?

anders9ustafsson commented 5 years ago

Yes, I have managed to build it after some further experimenting. As far as I know, no new official SDK has been published.

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.

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