Errors when building a project #3242
Replies: 1 comment
-
I couldn't get cmake to work. But I did get vcpkg to do the work for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to build a third party library. When I open the CMake panel and Run-in-Terminal I get a couple of errors. I have no idea why I would get errors or what to do about it. I just want to turn some C++ source code into a library so that I can use it. Why people think that we want to build their software is beyond me. Just provide builds for the major operating systems. It's an efficiency issue as well.
Any advice to overcome these errors is appreciated.
[{
"resource": "/C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/ExternalProject.cmake",
"owner": "cmake-configure-diags",
"severity": 8,
"message": "CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/ExternalProject.cmake:2806 (message):error: could not find git for clone of deflate-populate",
"source": "CMake (message)",
"startLineNumber": 2806,
"startColumn": 1,
"endLineNumber": 2806,
"endColumn": 10000,
"relatedInformation": [
{
"startLineNumber": 4208,
"startColumn": 1,
"endLineNumber": 4208,
"endColumn": 1000,
"message": "In call to '_ep_add_download_command' here",
"resource": "/C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/ExternalProject.cmake"
},
{
"startLineNumber": 23,
"startColumn": 1,
"endLineNumber": 23,
"endColumn": 1000,
"message": "In call to 'ExternalProject_Add' here",
"resource": "/D:/Libraries/openexr-main/CMakeLists.txt"
}
]
}]
=============================================================
[{
"resource": "/C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/FetchContent.cmake",
"owner": "cmake-configure-diags",
"severity": 8,
"message": "CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/FetchContent.cmake:1610 (message):CMake step for deflate failed: 1",
"source": "CMake (message)",
"startLineNumber": 1610,
"startColumn": 1,
"endLineNumber": 1610,
"endColumn": 10000,
"relatedInformation": [
{
"startLineNumber": 2,
"startColumn": 1,
"endLineNumber": 2,
"endColumn": 1000,
"message": "In call to '__FetchContent_directPopulate' here",
"resource": "/C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/FetchContent.cmake:1762:EVAL"
},
{
"startLineNumber": 1762,
"startColumn": 1,
"endLineNumber": 1762,
"endColumn": 1000,
"message": "In call to 'cmake_language' here",
"resource": "/C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.26/Modules/FetchContent.cmake"
},
{
"startLineNumber": 187,
"startColumn": 1,
"endLineNumber": 187,
"endColumn": 1000,
"message": "In call to 'FetchContent_Populate' here",
"resource": "/D:/Libraries/openexr-main/cmake/OpenEXRSetup.cmake"
},
{
"startLineNumber": 67,
"startColumn": 1,
"endLineNumber": 67,
"endColumn": 1000,
"message": "In call to 'include' here",
"resource": "/D:/Libraries/openexr-main/CMakeLists.txt"
}
]
}]
Beta Was this translation helpful? Give feedback.
All reactions