Skip to content

Setting build-path to current dir #4

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

Closed
wayoda opened this issue Sep 15, 2015 · 1 comment
Closed

Setting build-path to current dir #4

wayoda opened this issue Sep 15, 2015 · 1 comment
Assignees

Comments

@wayoda
Copy link

wayoda commented Sep 15, 2015

Compile a sketch with -build-path = . (the current working dir)

wayoda@shredder:~/sketchbook/empty$ arduino-builder -build-path . -fqbn arduino:avr:nano -hardware /home/wayoda/opt/arduino/arduino-1.6.6/hardware -tools /home/wayoda/opt/arduino/arduino-1.6.6/tools/ -verbose -debug-level 10 empty.ino 

Run the command serveral times. For every run of the builder a recursive sketch-dir is created

wayoda@shredder:~/sketchbook/empty$ tree
.
├── build.options.json
├── empty.ino
└── sketch
    ├── empty.ino.cpp
    └── sketch
        ├── empty.ino.cpp
        └── sketch
            ├── empty.ino.cpp
            └── sketch
                ├── empty.ino.cpp
                └── sketch
                    ├── empty.ino.cpp
                    └── sketch
                        ├── empty.ino.cpp
                        └── sketch
                            ├── empty.ino.cpp
                            └── sketch
                                ├── empty.ino.cpp
                                └── sketch
                                    ├── empty.ino.cpp
                                    └── sketch
                                        ├── empty.ino.cpp
                                        └── sketch
                                            ├── empty.ino.cpp
                                            └── sketch
                                                ├── empty.ino.cpp
                                                └── sketch
                                                    └── empty.ino.cpp

13 directories, 15 files
@wayoda wayoda closed this as completed Sep 15, 2015
@wayoda wayoda reopened this Sep 15, 2015
@ffissore ffissore added the bug label Sep 15, 2015
@ffissore ffissore self-assigned this Sep 15, 2015
@wayoda wayoda changed the title Setting build-.path Setting build-path to current dir Sep 15, 2015
@ffissore
Copy link
Contributor

Ok it took a bit of investigation but the reason if quite simple. In order to solve arduino/Arduino#3080 (fixed with arduino/Arduino#3435), the whole sketch folder is copied to the build path "sketch" subfolder. Compiling twice, doubles folders nesting, and so on.
Since we can't avoid copying the whole sketch folder to build path "sketch" subfolder, specifying a build path equal to the sketch folder is now illegal, and builder will complain with "Sketch cannot be located in build path. Please specify a different build path"

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

2 participants