Im a new and excited user of PlatformIO. With Arduino IDE, the builds are saved somewhere i dont know, but i save the sketches in a different folder inside cloud which is really efficient concerning space.
So, i use only space for the ino files, and the builds are somewhere locally.
Can i do the same with platformIO? (save the big “build” folder outside of the project folder?)
i see that the libraries which are used from main.cpp file are inside build folder, but why they have to be redownloaded and not all esp32 projects use the same libraries folder?
Can i share the libraries between platformIO and arduinoIDE so i dont have to re-download libraries i already downloaded in arduino ide?
You have an environment for a Arduino Uno plus the settings to grab extra libraries from the Arduino libraries folder and set the .pio\build folder which usually created in the project folder to one folder up into ..\.pio_build_dir.
yes i understand…
but that means i have to edit the platform.ini file in every project i create right?
what i want is to know that every project i create will use the shared arduino folder libraries, and the lets say 3 folders up for the build_dir…
isnt the environment variables the only way to make these settings global for every project?
ok, i fixed the global build folder as i wanted to…
but now i try to point the Platformio to include arduinoIDE libraries…
so i create a env var PLATFORMIO_INCLUDE_DIR to
and i get this error
although my C:\Users\myUsername\Documents\Arduino\libraries\ folder contains the AceButton library folder…
i read the documentation but didnt find any solution.
ok, so if i want to add already downloaded libraries from arduino IDE PLATFORMIO_INCLUDE_DIR is not a solution?
or it makes a mess so its better to redownload every library?
instead of PLATFORMIO_INCLUDE_DIR i used PLATFORMIO_LIB_EXTRA_DIRS env variable, and it worked fine…
i delete the library folder, platformio doesnt find the library…
restore the library folder, code compile successfully
I dont know why this didnt work with PLATFORMIO_INCLUDE_DIR but im happy with the result now.