Unable to build project in VSCode on Mac that was originally created in VSCode on Windows.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to build project in VSCode on Mac that was originally created in VSCode on Windows.

1,534 Views
bentprong
Contributor I

The project was created from an NXP example project (VNIC) on Windows.   It was pushed to GitHub then cloned to a Mac.   

Changing the toolchain path in mcuxpresso-tools.json does not fix the problems.   One of the problems is this:

* Executing task: CMake: build

build task started....
/usr/local/bin/cmake --build /Users/rlewis/Projects/evkmimxrt1064_dev_cdc_vnic_bm_vsc/armgcc/flexspi_nor_debug --target all --
Error: could not find CMAKE_PROJECT_NAME in Cache
build finished with error(s).

There are MANY other problems, including the fact that when (rarely) I'm able to build, if I shut down VSCode then restart it, it's broken again.   Too many to list here.

I need a support call on Teams or Zoom where I can share my screen and demonstrate these problems with a developer that is a Mac/Linux user and understands the MCUXpresso VSCode extension, cmake, etc. Thanks.

Tags (1)
0 Kudos
Reply
1 Reply

1,471 Views
cristiantepus
NXP Employee
NXP Employee

Hi,

To port the project from windows to macOS (and in general between 2 machines, doesn't matter the OS necessarily), you have to do 2 steps: change the toolchain and change the SDK to the local available ones.

To achieve this, you have already the options in project menu:

cristiantepus_0-1722346028708.png

 

Set these 2 options, then rebuild the project.

Please let us know if this solved build problem.

Regards,

Cristian

0 Kudos
Reply