Bug 244882

Summary: devel/arduino18: Can't use any arduino library
Product: Ports & Packages Reporter: Raffeale <dcp2k>
Component: Individual Port(s)Assignee: Kyle Evans <kevans>
Status: Closed FIXED    
Severity: Affects Many People CC: emaste, kevans
Priority: --- Keywords: needs-qa
Version: LatestFlags: koobs: maintainer-feedback? (kevans)
Hardware: amd64   
OS: Any   

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.