Eclipse Setup in latest Ubuntu for beagle board XM

I have just purchased BeagleXM C4 and I am trying to setup eclipse on
Ubuntu for my first project.

I am new to Linux Environment.

Eclipse install went OK with Ubuntu Software Center, now I am trying
to install GNU ARM compiler from " http://gnuarmeclipse.sourceforge.net/updates"
using install new software feature of eclipse, which is failing with
following error:

org.eclipse.cdt.managedbuilder.core 8.0.0' but it could not be found
  Cannot satisfy dependency:

Have you check out Jan's tutorial on this subject posted to the group today? :wink:

http://www.lvr.com/eclipse1.htm

Regards,

Thanks for web site link

I followed instructions on the website, only thing missing in my steps
was to setup assembler information which I did not see in my setting
screen

Now my first hello program fail with this error: " Syntax error: ")"
unexpected"

Any suggestions here ?

**** Build of configuration beagleboard_release for project test ****

make all
Building file: ../hello_beagleboard.c
Invoking: Cross GCC Compiler
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc -I/usr/
local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include -O3 -Wall -c
-fmessage-length=0 -MMD -MP -MF"hello_beagleboard.d" -
MT"hello_beagleboard.d" -o"hello_beagleboard.o" "../
hello_beagleboard.c"
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc: 2: Syntax
error: ")" unexpected
make: *** [hello_beagleboard.o] Error 2

Any advice with stepwise instructions to setup eclipse IDE in Linux
with GNU cross compiler to generate projects for beagle XM will be
appreciated.

It happens that I've just put up a new tutorial showing how to use Eclipse to cross-compile applications for the BeagleBoard:

http://www.lvr.com/eclipse1.htm

Jan

I followed instructions on the website, only thing missing in my steps
was to setup assembler information which I did not see in my setting
screen

Now my first hello program fail with this error: " Syntax error: ")"
unexpected"

Any suggestions here ?

I believe one reason for this error can be trying to run a program on an incompatible architecture. Are you sure you've transferred a cross-compiled program to the BeagleBoard?

Jan

This error occurred during compilation of program on my Dell PC
running Ubuntu. Angstrom ARM Compiler generated this error.
You are right this maybe due to incompatible architecture, seems I may
have downloaded incompatible architecture arm compiler on my PC.

I will delete and start installation again following your website link

Jan:
Have you even gotten remove debugging working with Eclipse? A couple of years ago I had it going and wrote up these [1] notes. I haven’t had the chance to update the notes and see if it still works.

When working it was really slick. I could edit the code like you described in your tutorial and I could automatically send it to the beagle (I think I used scp via eclipse). Eclipse on the host would then use gdbserver on the Beagle to do remote debugging.

–Mark

[1] http://elinux.org/ECE497_Installing_the_Eclipse_IDE

  Have you even gotten remove debugging working with Eclipse? A couple of years ago I had it going and wrote up these [1] notes. I haven't had the chance to update the notes and see if it still works.

I'll give it a try. Thanks for the idea!

Jan

Jan

I was getting error " Syntax error: ")" because I had installed 64
bit version and I needed 32 bit version, after reinstalling 32 bit
version I can move forward.

I am getting this error now, compile seems to be OK as object file is
generated

**** Build of configuration beagleboard_release for project
hello_beagleboard ****

make all
Building file: ../hello.c
Invoking: Cross GCC Compiler
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc -I/usr/
local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include -O3 -Wall -c
-fmessage-length=0 -MMD -MP -MF"hello.d" -MT"hello.d" -o"hello.o" "../
hello.c"
Finished building: ../hello.c

Building target: hello_beagleboard
Invoking: Cross GCC Linker
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc -
o"hello_beagleboard" ./hello.o -l/usr/local/angstrom/arm/arm-
angstrom-linux-gnueabi/lib
/usr/local/angstrom/arm/lib/gcc/arm-angstrom-linux-gnueabi/
4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -l/
usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/lib
collect2: ld returned 1 exit status
make: *** [hello_beagleboard] Error 1

Jan

I am able to compile and link OK now
instead of adding command to library path, I added commands to
library, now your instructions works OK for me

Do you instruction on downloading object to beagle xm board and debug
it now
That will be great help for starters

**** Build of configuration beagleboard_release for project
hello_beagleboard ****

make all
Building file: ../hello.c
Invoking: Cross GCC Compiler
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc -I/usr/
local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include -O3 -Wall -c
-fmessage-length=0 -MMD -MP -MF"hello.d" -MT"hello.d" -o"hello.o" "../
hello.c"
Finished building: ../hello.c

Building target: hello_beagleboard
Invoking: Cross GCC Linker
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc -L/usr/
local/angstrom/arm/arm-angstrom-linux-gnueabi/lib -
o"hello_beagleboard" ./hello.o
Finished building target: hello_beagleboard

Jan

I am able to compile and link OK now
instead of adding command to library path, I added commands to
library, now your instructions works OK for me

Do you instruction on downloading object to beagle xm board and debug
it now
That will be great help for starters

Yes, I hope to add that information soon!

Jan
http://www.lvr.com/eclipse1.htm

Can Someone point me to WIKI instructions to setup remote debugging on
beagle XM via eclipse
I am running Ubuntu 11.10 on host PC with eclipse 3.7.0 and Ubuntu on
Beagle XM board

Hi Jan.

You guide to cross-compiling for BB with Eclipse in awesome!

Concerning debug configuration with gdb, I have an issue with a
BeagleBone board (with Angstrom distro), since it seems that Eclipse
can't remote transfer binary output to target using sftp/ftp. It seems
that no ftpd packages exist for BeagleBone (but I could be wrong), so
I think that is not a way Eclipse can transfer output file to board.
Is there any alternative?

Thanks!