Bug 244882 - devel/arduino18: Can't use any arduino library
Summary: devel/arduino18: Can't use any arduino library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Kyle Evans
Keywords: needs-qa
Depends on:
Reported: 2020-03-18 06:29 UTC by Raffeale
Modified: 2021-01-13 11:06 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (kevans)


Note You need to log in before you can comment on or make changes to this bug.
Description Raffeale 2020-03-18 06:29:59 UTC
when i use SoftwareSerial libraray in my arduino , i got some error message when i compiling it.

/home/raffeale/pyproject/Arduino/remote_control/remote_control.ino:5:10: fatal error :SoftwareSerial/src/SoftwareSerial.h:File or directory is not exist!
    5 | #include <SoftwareSerial/src/SoftwareSerial.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

exit status 1
Error compiling for board Arduino Nano.

this is part of code . i found the libarary is exist /usr/local/arduino/hardware/arduino/avr/libraries    , please fix this bug , i cant use any build-in library with arduino

#include <SoftwareSerial.h>

SoftwareSerial tft(10, 11); // RX, TX

//#define wifi_rx 10
//#define wifi_tx 11

//#include <SoftwareSerial.h>
//SoftwareSerial wifi(wifi_rx, wifi_tx); // RX, TX

void init_tft() {
Comment 1 Raffeale 2020-03-24 14:19:03 UTC
hi pr, could you fix this issuse , i am waiting for you!
thanks a lot! i really need it.
Comment 2 Raffeale 2020-03-26 09:33:13 UTC
today  I reinstalled freebsd, it works fine  when I use show shell as login shell. but it still reports the error messages when I use csh shell as login shell. it's so interesting bug.
Comment 3 Raffeale 2020-03-26 11:33:14 UTC
i found actually cause of not compile issue.
when i set  LC_ALL "zh_CN.UTF-8" and  LC_CTYPE "zh_CN.UTF-8" , arduino can't compile with build-in library.
Comment 4 Raffeale 2020-03-27 03:56:08 UTC
yesterday,i tested it again, I found that arduino could compile it with built-in library  when I did not set LC_ALL environment variable.