linphone-desktop
linphone-desktop copied to clipboard
Errors in linphone desktop Compilation
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
Any Advise to solve this?
Hi, look at this answer.
https://github.com/BelledonneCommunications/linphone-desktop/issues/505#issuecomment-984528853
I also advice you to copy and build project on the root path of your disk drive, because long path will cause build failure.
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.
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?
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
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.
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]
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.
You should be able to see another red error message if you scroll up. That will help you more.
I tried to find any other error message but this is the only error I'm getting.
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
I've checked the error details on Visual Studio as well
Not sure what causes this
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
You should be able to see another red error message if you scroll up. That will help you more.
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.
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?
Building linphone desktop QT app on windows10/11 was successfully done on my environment and posted some hint: #524 . hope it helps.
Hi i am compiling linphone for windows 10 i am getting following errors
any advice to solve this?
ITNOA
related to #608 related to #607 related to #647 related to #652