You are not logged in.

#1 2019-05-25 17:49:27

dk23
Member
Registered: 2014-01-10
Posts: 8

arduino no standard libs

installed arduino and can't include  .h files(file not found) .  Do I need to do something extra for standard lib files?

installed via the following:

# pacman -S arduino arduino-docs
# pacman -S arduino-avr-core

Thanks
Fred

Offline

#2 2019-05-26 12:49:10

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: arduino no standard libs

You did add your user to uucp & lock groups and verify kernel module cdc_acm is loaded ?

Please post the command you ran , it's terminal output and the exact error message .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-05-26 13:31:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,868
Website

Re: arduino no standard libs

Mod note: Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2019-05-26 17:20:44

dk23
Member
Registered: 2014-01-10
Posts: 8

Re: arduino no standard libs

Yes added to uucp and lock groups
cdc_acm is not loaded


error message from verify and compile

Arduino: 1.8.9 (Linux), Board: "Arduino/Genuino Uno"

/usr/share/arduino/arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -tools /usr/share/arduino/tools-builder -libraries /home/gek/Arduino/libraries -fqbn=archlinux-arduino:avr:uno -ide-version=10809 -build-path /tmp/arduino_build_176692 -warnings=none -build-cache /tmp/arduino_cache_13461 -prefs=build.warn_data_percentage=75 -verbose /home/gek/src/arduino/ada/lesson11/lesson11.ino
/usr/share/arduino/arduino-builder -compile -logger=machine -hardware /usr/share/arduino/hardware -tools /usr/share/arduino/tools-builder -libraries /home/gek/Arduino/libraries -fqbn=archlinux-arduino:avr:uno -ide-version=10809 -build-path /tmp/arduino_build_176692 -warnings=none -build-cache /tmp/arduino_cache_13461 -prefs=build.warn_data_percentage=75 -verbose /home/gek/src/arduino/ada/lesson11/lesson11.ino
Using board 'uno' from platform in folder: /usr/share/arduino/hardware/archlinux-arduino/avr
Using core 'arduino' from platform in folder: /usr/share/arduino/hardware/archlinux-arduino/avr
Detecting libraries used...
/usr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -fno-devirtualize -fno-use-cxa-atexit -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/usr/share/arduino/hardware/archlinux-arduino/avr/cores/arduino -I/usr/share/arduino/hardware/archlinux-arduino/avr/variants/standard /tmp/arduino_build_176692/sketch/lesson11.ino.cpp -o /dev/null
lesson11:3:10: error: LiquidCrystal.h: No such file or directory
    3 | #include <LiquidCrystal.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
LiquidCrystal.h: No such file or directory

I have compiled and uploaded arduino code that did not have #include

Thank you for your help

Last edited by dk23 (2019-05-26 18:04:16)

Offline

#5 2019-05-26 17:35:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: arduino no standard libs

Please edit your previous posts and put all terminal commands and their outputs in [⁣code] [⁣code] tags, thanks.

https://wiki.archlinux.org/index.php/Co … s_and_code


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2019-05-26 19:10:34

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: arduino no standard libs

Sidenote: I strongly suggest moving to PlatformIO (no, you don't have to use vscode to use it), it is a lot less painful to use.

But for the issue: Did you remember to add the library  in the arduino library manager?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2019-05-26 21:05:36

dk23
Member
Registered: 2014-01-10
Posts: 8

Re: arduino no standard libs

The library

 LiquidCrystal.h 

is part of the standard library not a third party lib.  I expected that all standard libs would be installed.

I will check out PlatformIO also looking at arduino-cli.  I'm just starting to play with arduinos but have lots of programming and linux experience.

Thank You

Offline

#8 2019-05-27 17:36:59

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: arduino no standard libs

It is not incuded in the arduino package, you have to select to install it in the menu.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2019-05-27 18:01:48

dk23
Member
Registered: 2014-01-10
Posts: 8

Re: arduino no standard libs

Thank you, also for the pointer to PlatformIO, been reading about it this morning.  Going to ditch arduino ide and use PIO.  I use pycharm , don't think there is a PIO plug in.

Offline

Board footer

Powered by FluxBB