Edit Package Arduino

Arduino IDE

https://www.arduino.cc/en/software

The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. This software can be used with any Arduino board.

Refresh
Refresh
Source Files
Filename Size Changed
0001-use-installed-libastylej.patch 0000001179 1.15 KB 9 months
0002-use-installed-avr-gcc.patch 0000001274 1.24 KB 9 months
0003-drop-avr-toolchain-bundle.patch 0000001215 1.19 KB 9 months
0004-cross-arch-build-xml.patch 0000001685 1.65 KB 9 months
0005-Use-installed-arduino-builder.patch 0000001232 1.2 KB 9 months
0006-Use-installed-liblistSerialsj.patch 0000002105 2.06 KB 9 months
0007-Fix-arch-bits-as-lib-suffix-for-x86.patch 0000000910 910 Bytes 9 months
Arduino-1.8.19.tar.gz 0034715155 33.1 MB 9 months
Arduino.changes 0000030570 29.9 KB 4 months
Arduino.rpmlintrc 0000000108 108 Bytes over 6 years
Arduino.spec 0000007893 7.71 KB 4 months
library_index.json.gz 0002212998 2.11 MB 9 months
library_index.json.sig 0000000543 543 Bytes 9 months
package_index.json.gz 0000045357 44.3 KB 9 months
package_index.json.sig 0000000543 543 Bytes 9 months
platform.keys.rewrite.txt 0000007194 7.03 KB about 5 years
platform.local.txt 0000000568 568 Bytes almost 2 years
Comments 30

Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Hi Klaus, any idea, what's going wrong here? I've tried to force a linux64 build already, but ant insists in building some winwoes stuff :-(.

While at it, how do you generate Arduino-kit?


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Thanks for making me aware of this. facepalm. I have 1.8.10 almost ready.

Arduino-kit is created by building Arduino locally with 'tetra': https://github.com/moio/tetra


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Hey Klaus, thanks for caring, excellent news. Due to the hype around ESP8266 and ESP32, these packages will get more attention/attraction soon.


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Close, but: arduino Picked up JAVA_TOOL_OPTIONS: java.lang.UnsatisfiedLinkError: Can't load library: /usr/share/java/Arduino-1.8.10/lib/liblistSerialsj.so at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2620) at java.base/java.lang.Runtime.load0(Runtime.java:767) at java.base/java.lang.System.load(System.java:1834) at processing.app.Platform.loadLib(Platform.java:149) at processing.app.Platform.<clinit>(Platform.java:144) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at processing.app.BaseNoGui.initPlatform(BaseNoGui.java:514) at processing.app.Base.<init>(Base.java:205) at processing.app.Base.main(Base.java:150) Can't load library: /usr/share/java/Arduino-1.8.10/lib/liblistSerialsj.so Cannot load native library /usr/share/java/Arduino-1.8.10/lib/liblistSerialsj.so The program has terminated!


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Looks like /usr/share/java/Arduino-1.8.10/lib/ contains some more dangling links for me:

lrwxrwxrwx 1 root root 22 16. Dez 12:50 jna-platform.jar -> ../../jna-platform.jar lrwxrwxrwx 1 root root 29 16. Dez 12:50 libastylej.so -> ../../../../lib/libastylej.so lrwxrwxrwx 1 root root 34 16. Dez 12:50 liblistSerialsj.so -> ../../../../lib/liblistSerialsj.so


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Please do a "zypper in jna-contrib" - this will fix the jna-platform.jar link. And for the other two: cd /usr/share/java/Arduino-1.8.10/lib sudo rm libastylej.so liblistSerialsj.so sudo ln -s ../../../../lib64/libastylej.so . sudo ln -s ../../../../lib64/liblistSerialsj.so .


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Argh, no formatting :-/ All the 'sudo' commands are on separate lines.


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

yeah, that did it... Thanks


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Well, even after applying those fixes, this package doesn't work for me.

Any compilation fails with:

/usr/share/java/Arduino-1.8.10/arduino-builder [...] Using board 'esp32' from platform in folder: /home/hp/.arduino15/packages/esp32/hardware/esp32/1.0.4 Using core 'esp32' from platform in folder: /home/hp/.arduino15/packages/esp32/hardware/esp32/1.0.4 Detecting libraries used... "/home/hp/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++" [...] Generating function prototypes... "/home/hp/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++" [...] ctags pattern is missing

Error compiling for board ESP32 Dev Module.

If I build/execute Arduino from GIT repo (1.8.10 as well as master), all works fine, and ctags exists:

find . -name *ctags* ./build/linux/work/tools-builder/ctags ./build/linux/work/tools-builder/ctags/5.8-arduino11/ctags

I suspect, that some stuff being pulled in the "ant dist; ant run" state is missing here.


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Do you have 'ctags' installed ?


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

You're not building with OpenSUSE tools here, you're using the xtensa-esp32 toolchain. Where does this toolchain look for ctags ?


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Oops, sorry for the delay: ctags is executed from arduino-builder, and the one from this repo is significantly older (1.3.25), than the one from the git repo (1.5.0). That's most probably related.


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Thanks for the reminder to update arduino-builder. However, I believe you have a different problem since I cannot reproduce it with arduino-builder-1.3.25.


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Also, building later versions of arduino-builder quickly gets you into go language dependency hell (and devel:languages:go is not well maintained :-( )


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Been there, didn't like it..


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Does this problem also happen with a different board, like Arduino Uno ?


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

No, Arduino is okay, but both, esp8266 as well as esp32 fail with the same issue.


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Thanks, I can reproduce it now.


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Here's a workaround:

Edit ~/.arduino15/packages/esp32/hardware/esp32/1.0.4/platform.txt and add the following line tools.ctags.pattern=ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Even better: Don't edit platform.txt. Instead, create a new file at ~/.arduino15/packages/esp32/hardware/esp32/1.0.4/platform.local.txt with a single line reading 'tools.ctags.pattern=ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"' (without the single quotes ;-))


Klaus Kämpf's avatar

kwk wrote almost 3 years ago

Do the same for ~/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/platform.local.txt


Hans-Peter Jansen's avatar

frispete wrote almost 3 years ago

Yeah, that fixed it for both apostate targets. Thanks a lot!


Andy Shevchenko's avatar

ur4ltz wrote over 2 years ago

Hi Klaus! Please add the creation file arduino.desktop!


Klaus Kämpf's avatar

kwk wrote over 2 years ago

Where would I find this ? Upstream doesn't provide it.


Andy Shevchenko's avatar

ur4ltz wrote over 2 years ago

Hi! '/usr/share/java/Arduino-1.8.10/lib/desktop.template' See '/usr/share/java/Arduino-1.8.10/install.sh' for more information.


Klaus Kämpf's avatar

kwk wrote over 2 years ago

Done. Thanks for pointing this out !


Torsten Duwe's avatar

duwe wrote almost 2 years ago

Any particular reason for ExclusiveArch: i586, x86_64 ? https://www.arduino.cc/en/Guide/Linux talks about "32, 64 and ARM versions", so it might be worth a try, no?


Klaus Kämpf's avatar

kwk wrote almost 2 years ago

Main problem is creating the build environment (in Arduino-kit), which I create on my (x86_64) workstation by building Arduino locally. Host-specific binaries are downloaded during the build.

Arduino-kit would need to be enhanced by aarch64 (+ armv7 ?!) binaries.


Michael Gumsley's avatar

xanders wrote about 1 year ago

When will builds for Arduino and its dependencies for Leap 15.3 be fixed?


Klaus Kämpf's avatar

kwk wrote about 1 year ago

15.3 was missing Java:packages for openjfx, this is fixed now.

Please note that the Java-based Arduino software will be replaced by a JavaScript/TypeScript based "arduino-ide" soon.

openSUSE Build Service is sponsored by