Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem installing Arduino Duelmilanove on AMD64 by a newbie
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Yczo
Apprentice
Apprentice


Joined: 09 Jul 2011
Posts: 225

PostPosted: Mon Jan 09, 2012 2:50 pm    Post subject: Problem installing Arduino Duelmilanove on AMD64 by a newbie Reply with quote

Hello to everyone. I'm new on Gentoo. I own an arduino duelmilanove board that i would like to use with gentoo. I was following the next guide contained on this forum (is the best guide that i've seen)

https://forums.gentoo.org/viewtopic-t-72893-view-previous.html?sid=60746a6430fc815fcbe23c25e101ae73

supported by the official instalation documents (that didn't work all steps at least for my know)

http://www.arduino.cc/playground/linux/gentoo

Following the first guide I found two issues that I can not resolve:

1) The first is that after install layman and configure the overlay, adding

/etc/layman/arduino.xml with this content: (saved as UTF-16 with kwrite)

<!DOCTYPE repositories SYSTEM "/dtd/repositories.dtd">
<repositories xmlns="" version="1.0">
<repo quality="experimental" status="unofficial">
<name><![CDATA[arduino]]></name>
<description><![CDATA[arduino overlay]]></description>
<homepage>http://gitorious.org/gentoo-arduino/arduino</homepage>
<owner>
<email>stharwardATgmail.com</email>
<name><![CDATA[Soren Harward]]></name>
</owner>
<source type="git">git://gitorious.org/gentoo-arduino/arduino.git</source>
<feed>http://gitorious.org/gentoo-arduino/arduino.atom</feed>
</repo>
<repo quality="experimental" status="unofficial">
<name><![CDATA[luksans-arduino]]></name>
<description><![CDATA[another arduino overlay]]></description>
<homepage>http://gitorious.org/~luksan/gentoo-arduino/luksans-arduino</homepage>
<owner>
<email>luksanATgmail.com</email>
<name><![CDATA[Lukas Sandström]]></name>
</owner>
<source type="git">git://gitorious.org/~luksan/gentoo-arduino/luksans-arduino.git</source>
<feed>http://gitorious.org/~luksan/gentoo-arduino/luksans-arduino.atom</feed>
</repo>
</repositories>

And modifying /etc/layman/layman.cfg, adding the xml file to the overlays on this way (as official guide says)

overlays : http://www.gentoo.org/proj/en/overlays/repositories.xml
file:///etc/layman/arduino.xml

and later adding to make.conf

source /var/lib/layman/make.conf
PORTDIR_OVERLAY="/usr/local/portage $PORTDIR_OVERLAY"

After all when i suppose that the overlay and all the rest is ok, when i do

#emerge arduino rxtx

installs the 0.017 version and not the last arduino 1.0, contained on the oficial web and overlay. On the same way installs rxtx v2.1.7.2-r3 being required rxtx-2.2_pre2 (that is contained on the overlay) or newer to upload code to board on AMD64 systems

2) When it is assumed that everything is installed and properly, I ran #arduino from a terminal
and i obtained

Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
./arduino: línea 20: 11596 `trap' para punto de parada/seguimiento java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base

for fix (fix that brings me to another error) i installed the java oficial virtual machine "oracle-jre-bin-1.7", and next i did

#eselect java-vm list

Available Java Virtual Machines:
[1] icedtea6-bin system-vm user-vm
[2] oracle-jre-bin-1.7

#eselect java-vm set user 2

and run again

#arduino

And after this nothing happen, except that the console left blocked, hanging, and the program, don't start... and i don't know what to do yet xddd, and i can't program arduino from linux xdd


Please, Can anyone help me? Any help will be grateful.

Salutes


Last edited by Yczo on Mon Jan 09, 2012 7:56 pm; edited 3 times in total
Back to top
View user's profile Send private message
Yczo
Apprentice
Apprentice


Joined: 09 Jul 2011
Posts: 225

PostPosted: Mon Jan 09, 2012 6:29 pm    Post subject: 2nd) Issue solved Reply with quote

2nd) Issue solved, but not the 1st)

Incompatibility with oracle-jre-bin-1.7


Solved installing sun-jre-bin-1.6

and

#eselect java-vm list
Available Java Virtual Machines:
[1] icedtea6-bin system-vm
[2] oracle-jre-bin-1.7 user-vm
[3] sun-jre-bin-1.6


#eselect java-vm set user 3 (for my case)

Well my problem now is: Why don't works the overlay? I need install the rxtx-2.2_pre2 or newer and optionally the latest version of arduino v1.0
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 511
Location: Wales, UK

PostPosted: Mon Feb 20, 2012 9:48 pm    Post subject: Reply with quote

Arduino 1.0 is now in the main portage tree, so you do not need to do anything with layman. You will need to add
Code:
=dev-embedded/arduino-1.0
=dev-java/rxtx-2.2_pre2

to /etc/portage/package.keywords/arduino. Once that is done, a simple
Code:
emerge -av arduino

from a terminal as root should install it for you.

If you haven't installed the toolchain through crossdev, have a look at https://forums.gentoo.org/viewtopic-t-907860.html for some more information.

Good luck!
Paul
Back to top
View user's profile Send private message
azagzin
n00b
n00b


Joined: 29 Mar 2010
Posts: 2

PostPosted: Wed Feb 29, 2012 9:03 pm    Post subject: Re: Problem installing Arduino Duelmilanove on AMD64 by a ne Reply with quote

Yczo wrote:

and run again

#arduino

And after this nothing happen, except that the console left blocked, hanging, and the program, don't start... and i don't know what to do yet xddd, and i can't program arduino from linux xdd

Salutes


for me this help:

Code:
echo "x11-libs/cairo -qt4" >> /etc/portage/package.use"
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Fri Mar 09, 2012 4:59 pm    Post subject: Reply with quote

I'm having a little trouble with it as well. I can get the software to compile and upload correctly if run as root but if I try to compile as a user I get this error:

/usr/libexec/gcc/avr/ld: cannot find crtm168.o: No such file or directory

I don't understand how this can be the case if it works as root but I did previously use an overlay. I've read up on this error but there seems to be a few arguments as to the pros and cons of soft links. Can anyone give me any advice as to the correct way to fix it?
I'm running Arduino 1.0 on ~x86_64
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Sat Mar 10, 2012 10:36 am    Post subject: Reply with quote

Well that's a nasty bug in the crossdev script I think.

You need to symlink the correct object files. In my case it was
Code:
ln -s /usr/avr/lib/avr5/crtm328p.o /usr/avr/lib/


Greetings
Update
Here is a link to a thread of the arduino forums where I describe how to get a working toolchain on gentoo/amd64:
http://arduino.cc/forum/index.php/topic,95741.0.html
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
zerros
Apprentice
Apprentice


Joined: 02 Jun 2010
Posts: 179

PostPosted: Mon Apr 16, 2012 8:43 pm    Post subject: Reply with quote

Hi,

it seems that the 1.0 of arduino IDE have some portability cases to manager serial devices.
We need to use the version 022 to get it worked. But this version is not in repositories ...
_________________
- zerros -
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Mon Apr 16, 2012 8:53 pm    Post subject: Reply with quote

Hi,
I don't use the gentoo version of the 1.0 arduino IDE. I followed the instructions on the arduino website. At last I downloaded their version of the 1.0 arduino IDE and "installed" it into my home. For the IDE this works fine. Please look in the arduino forums since there are several fixes necessary for the bundled-1.0 libraries of the arduino.

greetings
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum