Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Llibary dependecy and toolchains (Read 107 times)
The_Specialist
Junior Member
**
Offline



Posts: 68
Llibary dependecy and toolchains
May 14th, 2022 at 9:12am
 
I want to use custom toolchains from a different path than

C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32

My toolchains for esp32 are located here.

G:\Documents\Visual Studio 2019\Arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\bin

Code:
02/05/2022  21:26    <DIR>          .
02/05/2022  21:26    <DIR>          ..
13/05/2022  12:31         1.133.138 libgcc_s_sjlj-1.dll
13/05/2022  12:31        12.300.224 libstdc++-6.dll
13/05/2022  12:31           816.640 xtensa-esp32-elf-addr2line.exe
13/05/2022  12:31           839.168 xtensa-esp32-elf-ar.exe
13/05/2022  12:31         1.138.688 xtensa-esp32-elf-as.exe
13/05/2022  12:31           896.512 xtensa-esp32-elf-c++.exe
13/05/2022  12:31           814.080 xtensa-esp32-elf-c++filt.exe
13/05/2022  12:31           893.440 xtensa-esp32-elf-cc.exe
13/05/2022  12:31           894.464 xtensa-esp32-elf-cpp.exe
13/05/2022  12:31             5.339 xtensa-esp32-elf-ct-ng.config
13/05/2022  12:31            35.840 xtensa-esp32-elf-elfedit.exe
13/05/2022  12:31           896.512 xtensa-esp32-elf-g++.exe
13/05/2022  12:31           893.440 xtensa-esp32-elf-gcc-8.4.0.exe
13/05/2022  12:31            54.784 xtensa-esp32-elf-gcc-ar.exe
13/05/2022  12:31            54.784 xtensa-esp32-elf-gcc-nm.exe
13/05/2022  12:31            54.784 xtensa-esp32-elf-gcc-ranlib.exe
13/05/2022  12:31           893.440 xtensa-esp32-elf-gcc.exe
13/05/2022  12:31           450.048 xtensa-esp32-elf-gcov-dump.exe
13/05/2022  12:31           502.784 xtensa-esp32-elf-gcov-tool.exe
13/05/2022  12:31         1.157.120 xtensa-esp32-elf-gcov.exe
13/05/2022  12:31             4.045 xtensa-esp32-elf-gdb-add-index
13/05/2022  12:31         6.338.048 xtensa-esp32-elf-gdb.exe
13/05/2022  12:31           862.720 xtensa-esp32-elf-gprof.exe
13/05/2022  12:31         1.293.824 xtensa-esp32-elf-ld.bfd.exe
13/05/2022  12:31         1.293.824 xtensa-esp32-elf-ld.exe
13/05/2022  12:31           826.880 xtensa-esp32-elf-nm.exe
13/05/2022  12:31           937.472 xtensa-esp32-elf-objcopy.exe
13/05/2022  12:31         1.213.952 xtensa-esp32-elf-objdump.exe
13/05/2022  12:31           839.168 xtensa-esp32-elf-ranlib.exe
13/05/2022  12:31           717.824 xtensa-esp32-elf-readelf.exe
13/05/2022  12:31           817.152 xtensa-esp32-elf-size.exe
13/05/2022  12:31           816.640 xtensa-esp32-elf-strings.exe
13/05/2022  12:31           937.472 xtensa-esp32-elf-strip.exe 



I did install it there because the documentation from Arduino-esp describes this to install it there via github because I forked it.

The shetch can find libraries, but when I start a project GCC and GNU are not taged on creating one.

Within libraries I can not #include other libraries, only windows library that I don't need. This is the mesage I get in the library project...

File 'Arduino.h' not found in current source file's directory or in build system paths.

Also the visual micro menu isn't collaps when I start a library project.
Back to top
« Last Edit: May 14th, 2022 at 10:36am by The_Specialist »  
 
IP Logged
 
The_Specialist
Junior Member
**
Offline



Posts: 68
Re: Llibary dependecy and toolchains
Reply #1 - May 14th, 2022 at 11:01am
 
I have found a way that the libraries where found in the librarys

tools->options->compiler->Allow Library source override

Rescan libraries (or reboot)
Back to top
« Last Edit: May 14th, 2022 at 11:02am by The_Specialist »  
 
IP Logged
 
The_Specialist
Junior Member
**
Offline



Posts: 68
Re: Llibary dependecy and toolchains
Reply #2 - May 14th, 2022 at 11:07am
 
Still don't have the namespace of the field in the .cpp of HTTPClient http; declarated in the .h file. The variables are found...

I should end up with http.begin in .cpp ... but the begin doesn't show up.

If I go from the .cpp tot the hearder file and open the #included library, than I can not open it.

If I go form the shetch to the header file and open de #include than it opens..

I can only open the header file from the .cpp file.
Back to top
« Last Edit: May 14th, 2022 at 1:27pm by The_Specialist »  
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11307
United Kingdom
Re: Llibary dependecy and toolchains
Reply #3 - May 14th, 2022 at 8:39pm
 
You can also add a board.txt to the current project, then use it to override compiler patterns and properties. You can see the build properties when you enable the settings in the yellow box near the top of this page.
Back to top
« Last Edit: May 14th, 2022 at 8:40pm by Tim@Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
The_Specialist
Junior Member
**
Offline



Posts: 68
Re: Llibary dependecy and toolchains
Reply #4 - May 15th, 2022 at 8:59am
 
The boards are included into my project even when installed in to a different folder by using the manual of Arduino-Esp for installing it with github extension. The toolchain just don't show up when creating a project, but it works...

I just found the solution by watching your youtube video over and over again. It cost me a weekend to find out. But now I found it! You should make a page on your website and place this in bold. Evry time I created a library I had this issue into the cpp.

Create shared project when including Libraries. (see picture)

I was affraid by including the libraries with the menu bar that the library has been copied to the folder and therefore not could been pushed to git.

In the library poject it is an other story because you can not add your library in you library. So it is better to edit the library in to the project and save it. Then editing the library with intellisense just works fine in the shetch project and the .cpp and now it is compiling.
Back to top
« Last Edit: May 15th, 2022 at 9:02am by The_Specialist »  

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11307
United Kingdom
Re: Llibary dependecy and toolchains
Reply #5 - May 15th, 2022 at 3:50pm
 
Great thanks. Keep in mind that the solution (.sln) can be in a folder with libraries and projects below. The libraries do not have to go below the project and will still checkin to git. It's up to you how you work but it is can be confusing having libs below the actual code project.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print