Edit Package Arduino

Arduino

No description set
Refresh
Refresh
Source Files
Filename Size Changed
0001-use-installed-libastylej.patch 0000001185 1.16 KB 9 months
0002-use-installed-avr-gcc.patch 0000001280 1.25 KB 9 months
0003-drop-avr-toolchain-bundle.patch 0000001221 1.19 KB 9 months
0004-cross-arch-build-xml.patch 0000001691 1.65 KB 9 months
0005-Use-installed-arduino-builder.patch 0000001238 1.21 KB 9 months
0006-Use-installed-liblistSerialsj.patch 0000002111 2.06 KB 9 months
0007-Fix-arch-bits-as-lib-suffix-for-x86.patch 0000000916 916 Bytes 9 months
Arduino-1.8.13.tar.gz 0042634076 40.7 MB 10 months
Arduino.changes 0000027779 27.1 KB 2 months
Arduino.rpmlintrc 0000000108 108 Bytes about 5 years
Arduino.spec 0000007689 7.51 KB 2 months
arduino-builder.sh 0000000045 45 Bytes 5 months
arduino_sources_gpg_pubkey.txt 0000003096 3.02 KB over 2 years
library_index.json.gz 0001428808 1.36 MB 9 months
library_index.json.sig 0000000543 543 Bytes 9 months
package_index.json.gz 0000032111 31.4 KB 9 months
package_index.json.sig 0000000543 543 Bytes 9 months
platform.keys.rewrite.txt 0000007194 7.03 KB almost 4 years
platform.local.txt 0000000568 568 Bytes 5 months
Comments for Arduino 28

Hans-Peter Jansen's avatar

frispete wrote over 1 year 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 over 1 year 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 over 1 year 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 over 1 year 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 over 1 year 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 over 1 year 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 over 1 year ago

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


Hans-Peter Jansen's avatar

frispete wrote over 1 year ago

yeah, that did it... Thanks


Hans-Peter Jansen's avatar

frispete wrote over 1 year 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 over 1 year ago

Do you have 'ctags' installed ?


Klaus Kämpf's avatar

kwk wrote over 1 year 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 over 1 year 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 over 1 year 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 over 1 year 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 over 1 year ago

Been there, didn't like it..


Klaus Kämpf's avatar

kwk wrote over 1 year ago

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


Hans-Peter Jansen's avatar

frispete wrote over 1 year ago

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


Klaus Kämpf's avatar

kwk wrote over 1 year ago

Thanks, I can reproduce it now.


Klaus Kämpf's avatar

kwk wrote over 1 year 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 over 1 year 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 over 1 year ago

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


Hans-Peter Jansen's avatar

frispete wrote over 1 year ago

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


Andy Shevchenko's avatar

ur4ltz wrote over 1 year ago

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


Klaus Kämpf's avatar

kwk wrote over 1 year ago

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


Andy Shevchenko's avatar

ur4ltz wrote over 1 year 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 1 year ago

Done. Thanks for pointing this out !


Torsten Duwe's avatar

duwe wrote 5 months 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 5 months 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.

openSUSE Build Service is sponsored by