Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • 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
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Still Problems with multiple libraries (Read 2665 times)
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Still Problems with multiple libraries
Nov 4th, 2018 at 1:40pm
Print Post  
Hallo,

If I compile my sketch with Arduino IDE 1.8.7 I get following output:


...
Multiple libraries were found for "SD.h"
Used: ries\SD
Not used: D:\data2\Programme\_Programming\ArduinoIDE\projects\libraries\SD
...

So, Great! Arduino IDE includes correct SD.h.

However, vMicro 1810.4.0 always includes wrong SD.h from 
D:\data2\Programme\_Programming\ArduinoIDE\projects\libraries\SD

What I need to do to include correct SD.h in vMicro ???

Thanks
DRS
« Last Edit: Nov 4th, 2018 at 1:44pm by drs »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Still Problems with multiple libraries
Reply #1 - Nov 4th, 2018 at 2:05pm
Print Post  
if you delete D:\data2\Programme\_Programming\ArduinoIDE\projects\libraries\SD then click rescan or restart the ide it will work.

There has been some ping pong with the priority of path resolution for libs. 

In this example it seems the priority should be given to libs in the platform\libraries folder which makes sense but other reports suggest the arduino ide is giving priority to libs in the sketchbook\libraries folder.

I will try to review (again) but feel I am missing something here.


  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: Still Problems with multiple libraries
Reply #2 - Nov 4th, 2018 at 2:56pm
Print Post  
Hallo,
thanks for the reply.
Yes, you are right with the ping pong.

Ok, deletion is an option but I need the sketchbook library for my older ESP8266 projects.

I think that for ESP8266 I would prefer using the sketchbook libraries since its working quite well ... and tested.

For successor of ESP8266, the ESP32, we need to stick with platform libraries since not all sketchbook librries are fully compatible (yet).

It would be great to have some config for each multiple library to select which one to use.
I never tried but I read about vmicro shared project capabilities. Is that usable for the purpose ?

Thanks
« Last Edit: Nov 4th, 2018 at 2:57pm by drs »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Still Problems with multiple libraries
Reply #3 - Nov 4th, 2018 at 3:03pm
Print Post  
makes sense.

you can copy the sd lib to a \libraries folder below the esp8266 platform folder.

yes shared lib projects are another solution.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint