Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

output path : no such files or directory #635

Closed
AntoineGirafe opened this issue Aug 9, 2018 · 7 comments
Closed

output path : no such files or directory #635

AntoineGirafe opened this issue Aug 9, 2018 · 7 comments
Labels
code ready needs-more-info More details about this issue are needed for it to be actionable.

Comments

@AntoineGirafe
Copy link

Hi there, I'm trying to set the ouput path for arduino build but somehow it's not working. I get the error :

avr-g++: error: Board_to_waspmote_LoRaWAN.ino.cpp: No such file or directory
avr-g++: warning: '-x c++' after last input file has no effect
avr-g++: fatal error: no input files
compilation terminated.

there is the Json files :

{
    "board": "arduino:avr:pro",
    "configuration": "cpu=8MHzatmega328",
    "sketch": "Board_to_waspmote_LoRaWAN.ino",
    "output": "../build",
    "port": "COM3"
}

When I remove the "output" line from the Json files it works ... Any Idea ?

@Sneezry
Copy link
Member

Sneezry commented Aug 14, 2018

I cannot reproduce this issue

snipaste20180814_111058

Does it work if you change ../build to ./build? Also try to create the output folder first and try again.

@Sneezry Sneezry added the needs-more-info More details about this issue are needed for it to be actionable. label Aug 14, 2018
@AntoineGirafe
Copy link
Author

I tried both it's still not working ... in fact the folder is created but I don't know why it can't reach it... I tried to moove my workspace somewhere else but I get always the same error :-/

@Sneezry
Copy link
Member

Sneezry commented Aug 14, 2018

That is weird... How about use absolute path?

@czgtest
Copy link
Contributor

czgtest commented Aug 17, 2018

Can you have a try "output": "./.build" ?

@KazW
Copy link

KazW commented Sep 9, 2018

I'm running into the same issue, but it says one of my headers is missing. If I delete the given output folder, it rebuilds from scratch successfully, but then subsequent builds fail with the "No such file or directory" error. Absolute and relative paths produce the same result.

@czgtest
Copy link
Contributor

czgtest commented Oct 9, 2018

Add some logs to check the output path.

if the output path is not exist, it will pop up a message

image

If the output path is exit, will print out in Arduino channel
image

@czgtest czgtest closed this as completed Oct 9, 2018
@danindiana
Copy link

danindiana commented Nov 8, 2018

OK. For Linux users, important to point out that you need to search for arduino.path in the Visual Studio extension via Ctrl + , and then search for arduino.path. Then enter in the path of your Linux directory and be sure to include the correct arduino IDE version, in my case it is 1.8.5.

screenshot from 2018-11-07 19-12-17

Question:

Where do I find the settings.json file in Ubuntu 16.04?

OS: Ubuntu 16.04 xenial
Kernel: x86_64 Linux 4.15.0-38-generic
Uptime: 3h 39m
Packages: 3512
Shell: bash 4.3.48
Resolution: 2560x1080
DE: Unity 7.4.5
WM: Compiz
WM Theme: Radiance
Radiance [GTK2]
, Radiance [GTK3]
Icon Theme: ubuntu-mono-light
Font: Ubuntu 11
CPU: AMD Ryzen 5 1600X Six-Core @ 4GHz
GPU: GeForce GTX 1050
RAM: 9940MiB / 16034MiB

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
code ready needs-more-info More details about this issue are needed for it to be actionable.
Projects
None yet
Development

No branches or pull requests

5 participants