platform-native
platform-native copied to clipboard
Do not know how to make File target `exec'
I get the following error trying to run pio run --target exec (as described in the docs):
$ ~/platform-native/examples/hello-world$ pio run --target exec
Processing native (platform: native)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
*** Do not know how to make File target `exec' (/home/kluong/platform-native/examples/hello-world/exec). Stop.
========================================================================== [FAILED] Took 0.27 seconds ==========================================================================
Here is the version I'm using:
$ ~/platform-native/examples/hello-world$ pio --version
PlatformIO Core, version 6.1.4
Paste your platformio.ini.
BTW, https://community.platformio.org/
Hi, I had the same problem. The native package is separately managed in HOME folder and might be outdated.
Just run pio pkg update within the folder that contains native in platformio.ini.
Example output:
pio pkg update
Resolving native dependencies...
Platform Manager: Updating native @ 1.1.4
Platform Manager: Removing native @ 1.1.4
Platform Manager: [email protected] has been removed!
Platform Manager: Installing platformio/native @ 1.2.1
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: [email protected] has been installed!