Sysprogs forums › Forums › VisualGDB › VisualGDB Force Newer CMake Version
Tagged: cmake
- This topic has 1 reply, 2 voices, and was last updated 3 years, 6 months ago by support.
-
AuthorPosts
-
May 26, 2021 at 11:10 #30563NoahParticipant
Hello,
I have been having a problem when trying to use a CMake executable other than the SysProgs fork. Due to the requirements of outside libraries, I need to use CMake 3.19; however the sysprogs fork is only 3.15. When setting up a project, I do specify a different CMake executable (version 3.19) but I continue to be prompted by VisualGDB to download cmake with SysProgs Extensions.
Here is how I set up my project:
- Create New VS Project
- New Embedded Project
- Project Type
- Import a project built with command-line tools
- “Import a CMake project with Advanced CMake Project System
- Import a project built with command-line tools
- Device Selection
- MIMXRT1064CV5LA
- PROMPTED WITH MESSAGE: “VisualGDB Requires CMAKE 3.10+ with Sysprogs Extensions. Do you want to automatically download and install it?“
- Click “NO”
- Import CMake Project
- Directory with CMakeLists.txt: [set to my project top level CMakeLists.txt]
- CMake Binary: “C:\Program Files\CMake\bin\cmake.exe” <- CMake Version 3.19
- […] Left defaulted
- Use existing CMAKE_TOOLCHAIN_FILE
- Existing Toolchain file: [Path to my toolchain.cmake within my project tree]
- Debug Method
- Segger J-Link
- [Finish]
- PROMPTED WITH MESSAGE: “VisualGDB Requires CMAKE 3.10+ with Sysprogs Extensions. Do you want to automatically download and install it?“
- Click “NO”
- Project opens, solution explorer says “Load failed. Double-click for details.”
- Open Project->VisualGDB Project Properties
- Set up cmake command line arguments for cmake to define some variables.
- Click Apply
- PROMPTED WITH MESSAGE: “VisualGDB Requires CMAKE 3.10+ with Sysprogs Extensions. Do you want to automatically download and install it?“
- Click “NO”
- solution explorer says “Load failed. Double-click for details.”
- Double clicking displays: “Loaded [project path].vgdbcmake. Waiting for VS to set the active configuration…
[project path].vgdbcmake: active configuration changed to Debug”
- Double clicking displays: “Loaded [project path].vgdbcmake. Waiting for VS to set the active configuration…
- Build->Rebuild Solution:
- ========== Project Configuration Summary ==========
[Project Name] configured in 00:25
========== Configuration: 1 Succeeded, 0 Failed, 0 Skipped ========== - PROMPTED WITH MESSAGE: “VisualGDB Requires CMAKE 3.10+ with Sysprogs Extensions. Do you want to automatically download and install it?“
- Click “NO”
- Output window states:
- System.OperationCanceledException: The operation was canceled.
at fe.d(b b, a a)
at s61.p6(r2 f, Int32 a, dm2 d, ks2 b, un2 e, Boolean c)
at s61.w3(r2 a, Int32 b)
- solution explorer says “Load failed. Double-click for details.” and this process repeats.
- ========== Project Configuration Summary ==========
- Project Type
From the tutorial:
https://visualgdb.com/tutorials/arm/cmake/import/
I understand that the behavior should be that VisualGDB should still be ok with the non-sysprogs version of CMake, albeit without the extra features implemented in the sysprogs cmake fork.
However, I am stuck in the loop above.
I am using VisualGDB version 5.5R4 (build 3920).
Any help would be greatly appreciated!
Thank you
May 28, 2021 at 16:28 #30599supportKeymasterHi,
We normally advise using our CMake fork when building projects on the Windows side, as we routinely test various VisualGDB features with it. That said, you can configure VisualGDB to use a specific CMake executable via Tools->Options->VisualGDB->General->Tools->Full path to cmake.exe.
We have also updated our CMake fork based on the latest v3.20.3 release. You can update it via Tools->VisualGDB->Manage VisualGDB Packages.
-
AuthorPosts
- You must be logged in to reply to this topic.