linphone-desktop icon indicating copy to clipboard operation
linphone-desktop copied to clipboard

Errors in linphone desktop Compilation

Open mrkerusi opened this issue 3 years ago • 20 comments

Hi Linphone,

I currently compiling linphone-desktop on tag 4.3.2

I'm Compiling on Windows 10 pro All the dependencies are sufficient I think, QT 5.12.5 VS 2017 Python 3.8.1 perl v5.32.1 six installed with pip pystache installed with pip

image

Any Advise to solve this?

mrkerusi avatar Jan 25 '22 08:01 mrkerusi

Hi, look at this answer.

https://github.com/BelledonneCommunications/linphone-desktop/issues/505#issuecomment-984528853

Sina-KH avatar Jan 25 '22 13:01 Sina-KH

I also advice you to copy and build project on the root path of your disk drive, because long path will cause build failure.

Sina-KH avatar Jan 25 '22 13:01 Sina-KH

You can use another version of python by installing it from the website https://www.python.org/downloads/

This kind of error comes from some MSYS2 binaries that doesn't recognize Windows native paths. This is the case for tools that are in the MSYS environment which contains the unix-like/cygwin based tools (unlike MINGW32/MINGW64)

Note: This is something I read (and confirmed) somewhere but I cannot retrieve the link.

julonexus avatar Jan 25 '22 13:01 julonexus

I also advice you to copy and build project on the root path of your disk drive, because long path will cause build failure.

Long path is resolved when using powershell. But is https://docs.microsoft.com/fr-fr/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd not enough?

julonexus avatar Jan 25 '22 13:01 julonexus

Hi, look at this answer.

#505 (comment)

This did not resolve my issue. I had the same error.

Annirudh-sh avatar Jan 29 '22 12:01 Annirudh-sh

Hi, look at this answer. #505 (comment)

This did not resolve my issue. I had the same error.

What is the error message? Because I've resolved the issue by these changes:

in: linphone-sdk\external\decaf\src\generator\CMakeLists.txt change: ${PROJECT_SOURCE_DIR}/src/generator/template.py to: ../../../../../../../../linphone-sdk/external/decaf/src/generator/template.py

also in: src\generator\curve25519\CMakeLists.txt and src/generator/ed448goldilocks/CMakeLists.txt change: ${PROJECT_SOURCE_DIR}/src/generator/template.py to: ../../../../../../../../../linphone-sdk/external/decaf/src/generator/template.py

in: linphone-sdk\mediastreamer2\src\generate_yuv2rgb_header.cmake change: ${INPUT_DIR}/../tools/xxd.py to: ../tools/xxd.py

in: linphone-sdk\liblinphone\wrappers\cpp\CMakeLists.txt change: ${CMAKE_CURRENT_SOURCE_DIR}/genwrapper.py to: ../../../../../../../../linphone-sdk/liblinphone/wrappers/cpp/genwrapper.py

Sina-KH avatar Jan 30 '22 10:01 Sina-KH

I also advice you to copy and build project on the root path of your disk drive, because long path will cause build failure.

Long path is resolved when using powershell. But is https://docs.microsoft.com/fr-fr/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd not enough?

As I remember, I've tested this change, but the build error occurred even after reopening PowerShell in windows.

Sina-KH avatar Jan 30 '22 10:01 Sina-KH

This was resolved but now a new error occurred :

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209, 5): error MSB6006: "cmd.exe" exited with code 1. [D:\linphone-test\test2\linphone2\build\WORK\sdk.vcxproj] [D:\linphone -test\test2\linphone2\build\sdk.vcxproj]

Annirudh-sh avatar Jan 31 '22 06:01 Annirudh-sh

This was resolved but now a new error occurred :

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209, 5): error MSB6006: "cmd.exe" exited with code 1. [D:\linphone-test\test2\linphone2\build\WORK\sdk.vcxproj] [D:\linphone -test\test2\linphone2\build\sdk.vcxproj]

Perhaps we can help you if you send the full log.

Sina-KH avatar Jan 31 '22 08:01 Sina-KH

log1

Annirudh-sh avatar Jan 31 '22 08:01 Annirudh-sh

log1

You should be able to see another red error message if you scroll up. That will help you more.

Sina-KH avatar Jan 31 '22 12:01 Sina-KH

I tried to find any other error message but this is the only error I'm getting.

Annirudh-sh avatar Feb 02 '22 07:02 Annirudh-sh

https://github.com/BelledonneCommunications/linphone-desktop/issues/604#issue-1113560918 hi guys,

Just to update my status on this issue, the issue above was solve by changing the path of my python3 to windows python3 rather than msys/python3,

after that I have problem with QT on qtgui module, solved that by installing a newer version qt 5.14.2, msvc2017.

now, my Current Error

image

I've checked the error details on Visual Studio as well image

Not sure what causes this

mrkerusi avatar Feb 04 '22 08:02 mrkerusi

Hi, you can check build logs in the WORK folder (or subdirectory). VPX, OpenH264, FFMPEG are external modules and their logs are not in the build outputs

julonexus avatar Feb 04 '22 10:02 julonexus

log1

You should be able to see another red error message if you scroll up. That will help you more.

log3

Annirudh-sh avatar Feb 08 '22 13:02 Annirudh-sh

A simple solution (solved this problem for me) - install standalone python for windows Ensure that it comes before msys2 folders in the system path. linphone searches for the python3 executable - create a link in the windows python3 folder (C:\Program FIles\Python39) python3.exe->python.exe (this is why it is not found by the cmake) regenerate cmake cache. Check cmake cache - python should be a standalone windows python - not one from the msys2.

andvalb avatar Feb 16 '22 20:02 andvalb

A simple solution (solved this problem for me) - install standalone python for windows Ensure that it comes before msys2 folders in the system path. linphone searches for the python3 executable - create a link in the windows python3 folder (C:\Program FIles\Python39) python3.exe->python.exe (this is why it is not found by the cmake) regenerate cmake cache. Check cmake cache - python should be a standalone windows python - not one from the msys2.

@andvalb i have the same problem, my OUTPUT directory is empty.

I tried to make the modification you commented, but even if I change the environment variables for the standalone version of python the build keeps pointing to msys2.

Can you explain in detail how you did it please?

Captura de tela 2022-03-02 170328

pablozandona avatar Mar 02 '22 20:03 pablozandona

Building linphone desktop QT app on windows10/11 was successfully done on my environment and posted some hint: #524 . hope it helps.

mars10786 avatar Apr 07 '22 04:04 mars10786

Hi i am compiling linphone for windows 10 i am getting following errors Screenshot 2022-04-27 191016

any advice to solve this?

kmickz avatar Apr 27 '22 13:04 kmickz

ITNOA

related to #608 related to #607 related to #647 related to #652

soroshsabz avatar May 25 '22 18:05 soroshsabz