Open David-WL opened 3 years ago
I got the same err! how to deal it?
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.
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!!!
@David-WL Did you find any solutions?
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. :)
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
andsrc\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.
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 insrc\generator\curve25519\CMakeLists.txt
andsrc\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
build error occur on Decaf , can not open file. it seems some path error.
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'