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 `upload' #10

Closed
d42ohpaz opened this issue Jan 31, 2021 · 3 comments
Closed

Do not know how to make File target `upload' #10

d42ohpaz opened this issue Jan 31, 2021 · 3 comments

Comments

@d42ohpaz
Copy link

MacOS Catalina
CLion 2020.3
PlatformIO Core 5.1.0

When using PlatformIO Upload on a native environment, I eventually get the error in the subject. I can run the command ./.pio/build/native/program manually from the terminal, but would like it to Just Work as if I were uploading to an MCU board.

The following is my native configuration from platformio.ini:


[env:native]
platform = native@^1.1.3
extra_scripts = support/sdl2_build_extra.py
build_flags =
    ${common.build_flags}
    -std=c++17
; Use 32-bits build when possible, for correct memory stat display. You need
; `:i386` sdl2 libs installed. Comment this option for 64-bits build.
;    !python -c "import platform; print('-m32' if platform.system() in [ 'Linux' ] else '')"
; Add recursive dirs for hal headers search
;    !python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
    -lSDL2
; SDL drivers options
    -D LV_LVGL_H_INCLUDE_SIMPLE
    -D LV_DRV_NO_CONF
    -D USE_MONITOR
    -D MONITOR_ZOOM=2
    -D USE_MOUSE
    -D USE_MOUSEWHEEL
    -D USE_KEYBOARD
lib_deps =
    ${common.lib_deps}
    lv_drivers@~7.9.0
;lv_drivers=https://github.com/littlevgl/lv_drivers/archive/7d71907c1d6b02797d066f50984b866e080ebeed.zip
src_filter =
    ${common.src_filter}
    +<../hal/sdl2>
    -<*/nodemcu32s*>
@vshymanskyy
Copy link

Also run into this

@ivankravets
Copy link
Member

@ivankravets
Copy link
Member

Please use pio run -t exec or pio run -t upload (legacy way).

You can also pass extra arguments to the program using the latest PIO Core 6.0 and -a,--program-arg option.

pio run -t exec -a "arg" -a "--option1=value"

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

No branches or pull requests

3 participants