cancel
Showing results for 
Search instead for 
Did you mean: 

My imported project build fails, how to fix it?

SidPrice
Associate III

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

11 REPLIES 11
Nawres GHARBI
ST Employee

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

CsBe
Associate III

Tryed with other network.. still the same.

> Bundled version of vcpkg: "2023-03-14-105f7f7e8a5ea10dfac9874ff9d1a6bacba5f454".

> Running vcpkg with arguments ["activate","--project","c:\\UserData\\modules\\firmware\\module-1","--json","C:\\Users\\user\\AppData\\Local\\Temp\\44c05403cd0283ca8dd043378a3e08aa"].

warning: vcpkg-artifacts is experimental and may change at any time.

node:internal/modules/cjs/loader:1078

 throw err;

 ^

Error: Cannot find module 'chalk'

Require stack:

- C:\Users\user\AppData\Local\vcpkg\artifacts-2023-03-14\node_modules\vcpkg-ce\ce\dist\cli\format.js

- C:\Users\user\AppData\Local\vcpkg\artifacts-2023-03-14\node_modules\vcpkg-ce\ce\dist\cli\command-line.js

- C:\Users\user\AppData\Local\vcpkg\artifacts-2023-03-14\node_modules\vcpkg-ce\ce\dist\main.js

  at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)

  at Module._load (node:internal/modules/cjs/loader:920:27)

  at Module.require (node:internal/modules/cjs/loader:1141:19)

  at require (node:internal/modules/cjs/helpers:110:18)

  at Object.<anonymous> (C:\Users\user\AppData\Local\vcpkg\artifacts-2023-03-14\node_modules\vcpkg-ce\ce\dist\cli\format.js:6:17)

  at Module._compile (node:internal/modules/cjs/loader:1254:14)

  at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)

  at Module.load (node:internal/modules/cjs/loader:1117:32)

  at Module._load (node:internal/modules/cjs/loader:958:12)

  at Module.require (node:internal/modules/cjs/loader:1141:19) {

 code: 'MODULE_NOT_FOUND',

 requireStack: [

  'C:\\Users\\user\\AppData\\Local\\vcpkg\\artifacts-2023-03-14\\node_modules\\vcpkg-ce\\ce\\dist\\cli\\format.js',

  'C:\\Users\\user\\AppData\\Local\\vcpkg\\artifacts-2023-03-14\\node_modules\\vcpkg-ce\\ce\\dist\\cli\\command-line.js',

  'C:\\Users\\user\\AppData\\Local\\vcpkg\\artifacts-2023-03-14\\node_modules\\vcpkg-ce\\ce\\dist\\main.js'

 ]

}

Node.js v18.15.0

> Failed with exit code "1".

> Failed to activate environment at "c:\path\vcpkg-configuration.json".