View previous topic :: View next topic |
Author |
Message |
grooveman Veteran
Joined: 24 Feb 2003 Posts: 1217
|
Posted: Sun Sep 09, 2012 10:32 pm Post subject: [Solved] Arduino Uno |
|
|
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:
https://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 |
|
|
grooveman Veteran
Joined: 24 Feb 2003 Posts: 1217
|
Posted: Mon Sep 10, 2012 1:13 am Post subject: |
|
|
Ermm... okay I'm either smarter or stupider than I thought...
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:
And the compile check worked just fine.
So, I think it is working!
-G _________________ To look without without looking within is like looking without without looking at all. |
|
Back to top |
|
|
|
|
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
|
|