Skip to main content
SidPrice
Associate III
March 15, 2023
Solved

My imported project build fails, how to fix it?

  • March 15, 2023
  • 11 replies
  • 4400 views

I have imported an STM32 project, created and debugged in the past using STM32CubeIDE. When I try to build this project in VSCode I see:

Executing task: Build 

build task started....

"C:\Program Files\CMake\bin\cmake.EXE" --build "D:/DataRoot/Projects/IO Technologies/IHP Controller/build/debug/build"

The parameter is incorrect

CMake Error: Generator: execution of make failed. Make command was: && 

build finished with error(s).

No changes were made to the imported project.

Please advise how to proceed.

Sid

This topic has been closed for replies.
Best answer by robotdad

This looks like it might be an issue with our integration of vcpkg with the Embedded Tools extension. Can you report this here so we can dig into it?

https://github.com/microsoft/vscode-embedded-tools/issues

11 replies

Pavel A.
Super User
March 16, 2023
SidPrice
SidPriceAuthor
Associate III
March 16, 2023

Yes, I followed the getting started instructions for the extension.

Nawres GHARBI
Technical Moderator
March 16, 2023

could you try a path without spaces

SidPrice
SidPriceAuthor
Associate III
March 16, 2023

Hello,

I suspect the issue is some kind of extension conflict in VSCode. I have created a profile that has just the STM32Cube extension and I then tried to open an existing local project, one without spaces in the path/name. When it is loaded I see the following:

> Using vcpkg executable at "c:\Users\sidpr\.vscode\extensions\ms-vscode.vscode-embedded-tools-0.6.0-win32-x64\assets\platform\win32-x64\vcpkg.exe".
> Using VCPKG_ROOT at "c:\Users\sidpr\AppData\Roaming\Code\User\globalStorage\ms-vscode.vscode-embedded-tools\vcpkg\root".
> Activating environment at "d:\DataRoot\Projects\MorningClock2\MorningClock_v3_stm32g070KBT\vcpkg-configuration.json".
> Version of vcpkg used to create VCPKG_ROOT: "2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75".
> Running vcpkg with arguments ["version"].
vcpkg package management program version 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75
 
See LICENSE.txt for license information.
> Bundled version of vcpkg: "2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75".
> Running vcpkg with arguments ["activate","--project","d:\\DataRoot\\Projects\\MorningClock2\\MorningClock_v3_stm32g070KBT","--json","C:\\Users\\sidpr\\AppData\\Local\\Temp\\683d8a9626f4c240dfe9f4dd00dd0172"].
warning: vcpkg-ce ('configure environment') is experimental and may change at any time.
read_contents("C:\Users\sidpr\AppData\Roaming\Code\User\globalStorage\ms-vscode.vscode-embedded-tools\vcpkg\root\scripts\vcpkgTools.xml"): no such file or directory
> Failed with exit code "1".
> Failed to activate environment at "d:\DataRoot\Projects\MorningClock2\MorningClock_v3_stm32g070KBT\vcpkg-configuration.json".

Sid

SidPrice
SidPriceAuthor
Associate III
March 21, 2023

@Nawres GHARBI​ Any suggests please, I am totally unable to use this extension :(

robotdad
robotdadBest answer
Visitor II
March 23, 2023

This looks like it might be an issue with our integration of vcpkg with the Embedded Tools extension. Can you report this here so we can dig into it?

https://github.com/microsoft/vscode-embedded-tools/issues

Nawres GHARBI
Technical Moderator
March 27, 2023

seems that vcpkg is not activated, are you on a secure/business lan?

CsBe
Explorer II
March 27, 2023

I have the same problem with vcpkg. (network: secure/business lan)

SidPrice
SidPriceAuthor
Associate III
March 27, 2023

Please see the reply from @robotdad​ 

Nawres GHARBI
Technical Moderator
March 28, 2023

@CsBe​ it may be blocked by your network admin, if you are on a laptop please connect to an external network without VPN