Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Arduino Uno
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
grooveman
l33t
l33t


Joined: 24 Feb 2003
Posts: 991

PostPosted: Sun Sep 09, 2012 10:32 pm    Post subject: [Solved] Arduino Uno Reply with quote

I got my Arduino starter kit this morning, and I was so excited to get started. I never dreamed it would be such a headache to set up! I figured it was open source, so naturally it would just work all spiffy-smooth with my Gentoo -- but nuh-uh.

After several hours of playing with this, I got the sketch app to run. Everything looks lovely. My Arduino Uno board is found on /dev/ttyAMC0, I have my programmer set to AVRISP mkII (tried AVR ISP as well).

The problem is when I go to verify some sketch code, it always gives me this error (even if there is no code at all):


Code:

/usr/share/arduino-1.0/hardware/arduino/cores/arduino/main.cpp:14: undefined reference to `loop'
collect2: ld returned 1 exit status


The contents of the main.cpp file:
Code:

#include <Arduino.h>

int main(void)
{
        init();

#if defined(USBCON)
        USB.attach();
#endif

        setup();

        for (;;) {
                loop();
                if (serialEventRun) serialEventRun();
        }

        return 0;
}


As you can see, line #14 is the line that says: loop();.

I have read the arduino instructions for Gentoo here:
http://arduino.cc/playground/Linux/Gentoo

And I have read this howto here:
http://forums.gentoo.org/viewtopic-t-907860-highlight-arduino.html

And hunted on the boards for insight, but I'm not finding anything. I have created all the symlinks suggested on the above post, but it still won't work. Something very fundamental (and I hope simple) is missing here... I just don't know what, since I really don't know anything about the arduino yet or how it works.

Any help is greatly appreciated. Thanks!

-g
_________________
To look without without looking within is like looking without without looking at all.


Last edited by grooveman on Mon Sep 10, 2012 1:14 am; edited 1 time in total
Back to top
View user's profile Send private message
grooveman
l33t
l33t


Joined: 24 Feb 2003
Posts: 991

PostPosted: Mon Sep 10, 2012 1:13 am    Post subject: Reply with quote

Ermm... okay I'm either smarter or stupider than I thought... :oops:

It does work... but the instructions just need some work.

The code snippets from the sketch menu apparently cannot be run on their own. I typed in:

Code:
int main() {}


And the compile check worked just fine. :wink:


So, I think it is working!

-G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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