Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not know how to make File target `exec' #21

Open
kennybytes opened this issue Sep 4, 2022 · 2 comments
Open

Do not know how to make File target `exec' #21

kennybytes opened this issue Sep 4, 2022 · 2 comments

Comments

@kennybytes
Copy link

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
@MacDada
Copy link

MacDada commented Feb 17, 2023

Paste your platformio.ini.

BTW, https://community.platformio.org/

@fbx71
Copy link

fbx71 commented Mar 10, 2023

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: native@1.1.4 has been removed!
Platform Manager: Installing platformio/native @ 1.2.1
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Platform Manager: native@1.2.1 has been installed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants