B4R Question Unable to use any internal library

melonZgz

Active Member
Licensed User
Longtime User
Hello, I have just started using B4R. I have followed all the steps. I have been able to make some small programs without problems with an Arduino Uno board, but the problem comes whenever I try to use any library other than rCore. In my case I want to use rServo. Just by selecting the library in the Libraries Manager I get the following error when compiling:

B4X:
In file included from C:\desarrollo\arduino\servo1\Objects\src\src.ino:1:0:
C:\desarrollo\arduino\servo1\Objects\src\B4RDefines.h:22:10: fatal error: Servo.h: No such file or directory
 #include <Servo.h>
          ^~~~~~~~~
compilation terminated.

I've uninstalled everything, reinstalled and I've had no luck. I have to say that if I go to the src folder inside the project and open the .ino file, then I can compile with the Arduino IDE without any problems. Could it be that the Arduino CLI does not know where to find the libraries?
 

hatzisn

Expert
Licensed User
Longtime User
Hello, I have just started using B4R. I have followed all the steps. I have been able to make some small programs without problems with an Arduino Uno board, but the problem comes whenever I try to use any library other than rCore. In my case I want to use rServo. Just by selecting the library in the Libraries Manager I get the following error when compiling:

B4X:
In file included from C:\desarrollo\arduino\servo1\Objects\src\src.ino:1:0:
C:\desarrollo\arduino\servo1\Objects\src\B4RDefines.h:22:10: fatal error: Servo.h: No such file or directory
 #include <Servo.h>
          ^~~~~~~~~
compilation terminated.

I've uninstalled everything, reinstalled and I've had no luck. I have to say that if I go to the src folder inside the project and open the .ino file, then I can compile with the Arduino IDE without any problems. Could it be that the Arduino CLI does not know where to find the libraries?

1st possible solution
Do you have the Arduino library located in a path that contains UTF8 characters? If yes check the B4R tutorial in My Contributions in my signature.

2nd possible solution (less likely)
If you have One Drive installed then make all the files available offline
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Upvote 0

melonZgz

Active Member
Licensed User
Longtime User
Thanks guys.
Finally got it working (it's been 2 days of headaches...) Something went wrong in the Arduino IDE installation, I had to remove it (clean manually things, registry and everything) and do a new installation so the internal libraries are finally correct
 
Upvote 0
Top