arduino 0018-1
http://www.arduino.cc/
The Arduino IDE
unsupported :: devel
Maintainer: Trashman
Votes: 85
License: GPL
Last Updated: Wed, 03 Feb 2010 11:52:56 +0000
First Submitted: Sat, 10 Feb 2007 16:33:23 +0000
Dependencies avr-libc bash java-runtime libusb
Required by arduino-onewire
0018 is out.
I had to add myself to the uucp group before this would work for me. Just noting it for others who try.
Hello
This may be moved to community soon (provided it's not too much of a hassle to maintain; I'll have a look first). Thanks for the work!
I have made a new PKGBUILD for this, it builds on 64-bit and includes a desktop file.
http://repo.mupuf.org/pkgbuilds/arduino-0017-1.src.tar.gz
please add launcher to /usr/share/applications/arduino-ide.desktop
You can use those icons:
http://artworkz.harvie.cz/desktop-icons/arduino-diecimila.png
http://artworkz.harvie.cz/desktop-icons/arduino-diecimila.svg
Fair enough, it looks reasonable, I'll think about it.
However at the moment it would look completely misleading on AUR, as the site does not handle lines like:
if [ "${CARCH}" = 'i686' ]; then ...
so it would look as the package is the x86_64 version only.
Of course, the package would still work, and one wouldn't see weirdness through yaourt, for example, so this might be a cosmetic issue...
But you can "bunch together" those too. Look at the flashplugin PKGBUILD in extra. Two different versions for both arches.
The reason why there are two packages is not because it couldn't be handled with a single one with conditionals, as your example package shows, but because the two are different arduino releases... I wanted the package version to reflect that, since usually there are plenty of differences between version. No need to bunch together the 0013 for i686 and 0012 for x86_64, in my opinion....
No need for 2 packages for 32 and 64 bit.
Follow this google-desktop PKGBUILD
http://pastebin.com/f78c782c6
that I propose here http://aur.archlinux.org/packages.php?ID=24040
and change the sources and md5sums according to your package.
Hi,
I added new package for amd64 bit release of arduino, called arduino64.
Since I don't have a 64bit machine, I cannot check it. Please leave a comment there if something is not working.
Cheers....
Updated package:
==================
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
pkgname=arduino
pkgver=0013
_modver=2
pkgrel=1
pkgdesc="The Arduino IDE"
arch=('i686')
url="http://www.arduino.cc/"
license=('GPL')
depends=('avr-libc' 'java-runtime' 'libusb' 'bash')
source=(http://www.arduino.cc/files/${pkgname}-${pkgver}-linux${_modver}.tgz)
build() {
install -d ${pkgdir}/usr/share
cp -r ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/usr/share/arduino
find ${pkgdir}/usr/share/arduino -type d -exec chmod 755 '{}' \;
find ${pkgdir}/usr/share/arduino -type f -exec chmod 644 '{}' \;
chmod 755 ${pkgdir}/usr/share/arduino/arduino
install -Dm755 ${srcdir}/arduino.sh ${pkgdir}/usr/bin/arduino
chmod 755 ${pkgdir}/usr/share/arduino/hardware/tools/avrdude
}
md5sums=('738e8481cf5248cd94450b4e399de2c2')
==================
This supposed to correct a few things:
1) jre not needed, runs on openjdk6 just as well, so include only java-runtime as dependency
2) avrdude is included in the package, not needed as dependency
3) avrdude runtime execution permission
4) 64-bit version should be a different package, as it has different version number (currently still on 0012)
Any suggestions? If I borked anything, just let me know, I'm happy to fix it.
Please update the PKGBUILD to install the real 64-bit version for x86_64...
regomodo:
I had the same problem as you did with the
"./arduino: line 16: java: command not found"
error.
I solved it by creating a symbolic link to /opt/java/jre/bin/java in /usr/bin/
sudo ln -s /opt/java/jre/bin/java /usr/bin/
That solved it for me, but I'm not sure if it's the "correct" thing to do or if it will break something else...
I have prepared RXTX as 64-bit, but I get:
java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; thrown while loading gnu.io.RXTXCommDriver
java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver
on starting arduino, and then repeated when I open the Tools menu. Port selection is greyed out.
Anyone else got arduino x86_64 working?
Hey,
Very useful package, thanks. Nevertheless, please add the correct permission for the avrdude (as it is in the last comment). That would make it perfect!
Cheers.
Hi,
the install is missing a:
chmod +x /usr/share/arduino/hardware/tools/avrdude
to correct a error about permission when IDE try to program the board
2008.10.12 Arduino 0012 for Linux 32bit available:
2008.10.24 Arduino 0012 for Linux AMD 64bit available:
http://arduino.cc/
arduino IDE won't run on X86_64 due to a 32-bit lib.
$ file /usr/share/arduino/lib/librxtxSerial.so
/usr/share/arduino/lib/librxtxSerial.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
Finally updated to version 10. I have been waiting because of my addition of binutils-avr, gcc-avr, avr-libc and avrdude to [community], which took a lot of time in terms of standard adherence.
Remember to vote this package if you want to see it in [community[, and have fun!
sorry bardo
Cheers for the hint. I install things via yaourt so i end up missing what it says in the aur sometimes.
I've reinstalled arduino with the chages you suggested and an edited uisp PKGBUILD except i now get a different error
./arduino: line 16: java: command not found
But i've installed jre and all the packages arduino chose.
Please. don't mark a package as out of date if it is not out of date. If it doesn't work just post a comment and I'll be notified.
You get a not found error about avr-g++, and this is the problem. As I pointed out in a comment of the gcc-avr package, you should modify its PKGBUILD so that you have:
../configure --target=avr --prefix=/opt/avr --disable-nls --enable-languages=c,c++ --disable-libssp
Notice that I added c++. I also sent a mail to the maintainer of these packages, because he's been inactive for a long time. If he doesn't answer in a few days I'll orphan his packages.
it may be because of uisp but arduino spits out a load of errors at the start
[quote]
java.io.IOException: Cannot run program "avr-g++": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.Library.build(Library.java:430)
at processing.app.LibraryManager.buildAllUnbuilt(LibraryManager.java:227)
at processing.app.Editor.prepareLibraries(Editor.java:353)
at processing.app.Base.<init>(Base.java:214)
at processing.app.Base.main(Base.java:177)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 7 more
java.io.IOException: Cannot run program "mozilla": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.Base.openURL(Base.java:711)
at processing.app.Library.build(Library.java:481)
at processing.app.LibraryManager.buildAllUnbuilt(LibraryManager.java:227)
at processing.app.Editor.prepareLibraries(Editor.java:353)
at processing.app.Base.<init>(Base.java:214)
at processing.app.Base.main(Base.java:177)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 8 more[/quote]
Bump to version 9.
Updated to current packaging standards, added a dependency.
This is just a first release, it\'s not perfect.
ATM you need to be root in order to avoid problems with rxtx lock files, the rest seems to work right.
Also the file /usr/share/arduino/lib/targets/libraries/Wire/utility/twi.o needs to be created, and it will be created at the first run, but the directory isn\'t (obviously) writable, so you\'ll need to run it from a root account the first time.
If anyone finds a way to correct those issues, please let me know.
v1.6.0