BelledonneCommunications / linphone-desktop

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of git://git.linphone.org/linphone-desktop.git
https://linphone.org/
GNU General Public License v3.0
402 stars 207 forks source link

linphone desktop master branch build error on windows 10 #505

Open David-WL opened 3 years ago

David-WL commented 3 years ago

build error occur on Decaf , can not open file. it seems some path error.

    Checking Build System
    Generating code for decaf/crypto.hxx
    /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/D:/LinPhone/linphone-desktop-master/linphone-sdk/external/dec

af/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\generatorCommonCode.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\linphone- desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Generating code for curve25519/decaf.c /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/curve25519/D:/LinPhone/linphone-desktop-master/linphone-sdk/e xternal/decaf/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\curve25519\genC25519nTab.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\linp hone-desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Generating code for ed448goldilocks/decaf.c /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/ed448goldilocks/D:/LinPhone/linphone-desktop-master/linphone- sdk/external/decaf/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\ed448goldilocks\genEd448nTab.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\ linphone-desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Creating directories for 'EP_mbedtls'

paulheguobo commented 3 years ago

I got the same err! how to deal it?

swbus commented 2 years ago

build error occur on Decaf , can not open file. it seems some path error.

    Checking Build System
    Generating code for decaf/crypto.hxx
    /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/D:/LinPhone/linphone-desktop-master/linphone-sdk/external/dec

af/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\generatorCommonCode.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\linphone- desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Generating code for curve25519/decaf.c /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/curve25519/D:/LinPhone/linphone-desktop-master/linphone-sdk/e xternal/decaf/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\curve25519\genC25519nTab.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\linp hone-desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Generating code for ed448goldilocks/decaf.c /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/ed448goldilocks/D:/LinPhone/linphone-desktop-master/linphone- sdk/external/decaf/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\ed448goldilocks\genEd448nTab.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone linphone-desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Creating directories for 'EP_mbedtls'

file: linphone-desktop\linphone-sdk\external\decaf\src\generator\CMakeLists.txt: at line 9, replace "COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/src/generator/template.py" with: "COMMAND ${PYTHON_EXECUTABLE} /home/Administrator/linphone-desktop/linphone-sdk/external/decaf/src/generator/template.py"

other place with the same problem should also be modified.

Sina-KH commented 2 years ago

build error occur on Decaf , can not open file. it seems some path error.

    Checking Build System
    Generating code for decaf/crypto.hxx
    /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/D:/LinPhone/linphone-desktop-master/linphone-sdk/external/dec

af/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\generatorCommonCode.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\linphone- desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Generating code for curve25519/decaf.c /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/curve25519/D:/LinPhone/linphone-desktop-master/linphone-sdk/e xternal/decaf/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\curve25519\genC25519nTab.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone\linp hone-desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Generating code for ed448goldilocks/decaf.c /usr/bin/python3: can't open file '/d/LinPhone/linphone-desktop-master/build/WORK/WORK/desktop/Build/decaf/src/generator/ed448goldilocks/D:/LinPhone/linphone-desktop-master/linphone- sdk/external/decaf/src/generator/template.py': [Errno 2] No such file or directory 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 2. [D:\LinPhone\linphone- desktop-master\build\WORK\WORK\desktop\Build\decaf\src\generator\ed448goldilocks\genEd448nTab.vcxproj] [D:\LinPhone\linphone-desktop-master\build\WORK\desktop\EP_decaf.vcxproj] [D:\LinPhone linphone-desktop-master\build\WORK\sdk.vcxproj] [D:\LinPhone\linphone-desktop-master\build\sdk.vcxproj] Creating directories for 'EP_mbedtls'

file: linphone-desktop\linphone-sdk\external\decaf\src\generator\CMakeLists.txt: at line 9, replace "COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/src/generator/template.py" with: "COMMAND ${PYTHON_EXECUTABLE} /home/Administrator/linphone-desktop/linphone-sdk/external/decaf/src/generator/template.py"

other place with the same problem should also be modified.

Did this and no success! The same error happens for me, too! Every time, with every change, many people fail to build this project, with completely new issues!! UNBELIEVABLE!!!

Sina-KH commented 2 years ago

@David-WL Did you find any solutions?

Sina-KH commented 2 years ago

To fix this issue, I had to make these changes in CMakeLists.txt files:

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

And in src\generator\curve25519\CMakeLists.txt and src\generator\ed448goldilocks\CMakeLists.txt Replace: ${PROJECT_SOURCE_DIR}/src/generator/template.py With: ../../../../../../../../../linphone-sdk/external/decaf/src/generator/template.py

I'm now facing and resolving another error, related to mediastreamer2 and yuv2rgb command, that seems is not related to this issue, but it's a similar problem with python files. :)

Annirudh-sh commented 2 years ago

To fix this issue, I had to make these changes in CMakeLists.txt files:

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

And in src\generator\curve25519\CMakeLists.txt and src\generator\ed448goldilocks\CMakeLists.txt Replace: ${PROJECT_SOURCE_DIR}/src/generator/template.py With: ../../../../../../../../../linphone-sdk/external/decaf/src/generator/template.py

I'm now facing and resolving another error, related to mediastreamer2 and yuv2rgb command, that seems is not related to this issue, but it's a similar problem with python files. :)

I had the same issue. I did what you asked but the error is still the same.

Sina-KH commented 2 years ago

To fix this issue, I had to make these changes in CMakeLists.txt files: in: linphone-sdk\external\decaf\src\generator\CMakeLists.txt Replace: ${PROJECT_SOURCE_DIR}/src/generator/template.py With: ../../../../../../../../linphone-sdk/external/decaf/src/generator/template.py And in src\generator\curve25519\CMakeLists.txt and src\generator\ed448goldilocks\CMakeLists.txt Replace: ${PROJECT_SOURCE_DIR}/src/generator/template.py With: ../../../../../../../../../linphone-sdk/external/decaf/src/generator/template.py I'm now facing and resolving another error, related to mediastreamer2 and yuv2rgb command, that seems is not related to this issue, but it's a similar problem with python files. :)

I had the same issue. I did what you asked but the error is still the same.

https://github.com/BelledonneCommunications/linphone-desktop/issues/604#issuecomment-1025110396