Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   using eclipse (http://www.chiefdelphi.com/forums/showthread.php?t=37736)

tux 02-06-2005 18:27

Re: using eclipse
 
> what utils one needs to program the robot in linux

start here:
http://adambots-live.sourceforge.net/

join the mailing list too:
http://lists.sourceforge.net/lists/l...s-live-support

Very low volume now, but hopefully will pick up as next
year's competition gets closer.

dasRatsel 03-06-2005 12:20

Re: using eclipse
 
yea -- bout that wiki site -- i c'n never figure out just how to actually find the download link f'r the graphical pic loader (gtk) / WINE wrapper 'n' all that jazz -- i also cant find em on sourceforge .. so .. uh...

tux 04-06-2005 17:31

Re: using eclipse
 
> i c'n never figure out just how to actually find the download link f'r the graphical pic loader

I've never seen a graphical pic loader for linux.


> WINE wrapper

I've never seen a wrapper either. There is a gentoo ebuild that sets up mplab, and there is a Makefile.

I usually just keep a text console open in the directory and do:

make
make load
make read

dasRatsel 04-06-2005 20:03

Re: using eclipse
 
uh -- ok -- so that adam bots thing is just a joke?

anyway -- i'm intreagued by the ebuild -- i'm guessin its not in portage by default -- where c'n i get it?

~xavier

tux 05-06-2005 09:09

Re: using eclipse
 
> uh -- ok -- so that adam bots thing is just a joke?

You mean this one?
http://adambots-live.sourceforge.net...oaderFrontends

I don't think it is a joke... more like a plan.


> anyway -- i'm intreagued by the ebuild -- i'm guessin its not in portage by default -- where c'n i get it?

Try their cvs repo. I believe that is where I got it:
http://sourceforge.net/cvs/?group_id=118894

First make a new directory, then go in there and ...

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/adambots-live login

When it asks for a password, press enter. Then ...

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/adambots-live co -P .

Yes, you need the dot at the end of the line.

dasRatsel 05-06-2005 18:11

Re: using eclipse
 
ahhh -- so close -- so close

k -- i finally managed to emerge everything (after some doing since the digest files were corrupt or somethin like that) 'n' i got a hold of the make files that should make things work --- which leads to a rather curious problem:
i keep getting a make error on the line that says "include .conf/*" where it says no such file or directory
so i comment out the two lines that say that (one at the top / one at the bottom) and when i try to "make all" it says:
/bin/sh: line 1: .conf/00all_targets: No such file or directory
make: *** [update_targets] Error 1
make: Target `all' not remade because of errors.

again with that .conf directory -- what's up with that? -- i cant even begin to imagine what it might be...please help

~Xavier

PS: thanks for indulging my new found desire to get this working in linux

prograid 05-06-2005 19:50

Re: using eclipse
 
Quote:

ahhh -- so close -- so close

k -- i finally managed to emerge everything (after some doing since the digest files were corrupt or somethin like that) 'n' i got a hold of the make files that should make things work --- which leads to a rather curious problem:
i keep getting a make error on the line that says "include .conf/*" where it says no such file or directory
so i comment out the two lines that say that (one at the top / one at the bottom) and when i try to "make all" it says:
/bin/sh: line 1: .conf/00all_targets: No such file or directory
make: *** [update_targets] Error 1
make: Target `all' not remade because of errors.

again with that .conf directory -- what's up with that? -- i cant even begin to imagine what it might be
Are you using the managed make feature I else or are you using somthing else?

If you are using linux you probably should be downloading GNU Make instead of MinGW. Other than that things should work fine.

dasRatsel 05-06-2005 21:10

Re: using eclipse
 
yea -- i'm just GNU make -- the problem is in that .conf/* thing -- did i forget to configure something ?

prograid 07-06-2005 14:03

Re: using eclipse
 
Quote:

Originally Posted by dasRatsel
yea -- i'm just GNU make -- the problem is in that .conf/* thing -- did i forget to configure something ?

Oh I just realized something, try changing the make command from mingw32-make to make. Select your project. Go to project, properties, C/C++ Build and change your build command to make.

tux 07-06-2005 16:57

Re: using eclipse
 
>> i keep getting a make error on the line that says "include .conf/*" where it says no such file or directory

You may need to create that directory, and create a blank file in there. Try the updated Makefile that I posted to the mailing list. It should be in the mailing list archives.
http://sourceforge.net/mailarchive/f...forum_id=44800

The update is a bit more involved, as it creates a python script to parse out the messages when you have an error during the compile.

>> yea -- i'm just GNU make -- the problem is in that .conf/* thing -- did i forget to configure something ?
> Oh I just realized something, try changing the make command from mingw32-make to make.

This whole thread is really off-topic here. I do not believe he is trying to use eclipse at all. Sorry. You should probably take any adambots questions to their mailing list, or else start a new thread here.

prograid 07-06-2005 17:49

Re: using eclipse
 
Quote:

Originally Posted by tux
>> i keep getting a make error on the line that says "include .conf/*" where it says no such file or directory

You may need to create that directory, and create a blank file in there. Try the updated Makefile that I posted to the mailing list. It should be in the mailing list archives.
http://sourceforge.net/mailarchive/f...forum_id=44800

The update is a bit more involved, as it creates a python script to parse out the messages when you have an error during the compile.

>> yea -- i'm just GNU make -- the problem is in that .conf/* thing -- did i forget to configure something ?
> Oh I just realized something, try changing the make command from mingw32-make to make.

This whole thread is really off-topic here. I do not believe he is trying to use eclipse at all. Sorry. You should probably take any adambots questions to their mailing list, or else start a new thread here.

I'm pretty sure that he is trying to use eclipse. I'm assuming he's using the plugin I wrote for eclipse. The plugin generates a makefile for you that's supposed to work with GNU Make.

dasRatsel 07-06-2005 21:30

Re: using eclipse
 
yea -- sorry for not being very discriptive -- i wasnt actually using the plugin f'r that error -- i just added the .conf directory 'n' put all the files that the makefile wanted -- but now i get make errors when it tries to compile the .o files -- it simply says Error 1

so i tried the plugin and it compiles well enough -- problem is when it hits the linker -- it claims it cant find mplink -- i even tried adding wine to the command // adding the full path // doing both at the same time // even using _mplink.exe == nothing works -- what am i doing wrong now?

thanks

~xavier

dasRatsel 07-06-2005 22:22

Re: using eclipse
 
blah -- ok --

Code:

Linking... -
Done!                                           


Finished building: FRCfalcon.hex
Build complete for project falcon

so i got it working with the eclipse plugin - trick is the makefile for the wine-wrapper wasnt written right so it only installed mcc18 and not mplink --- it claims everything was successful -- the only thing it complained over was the lack of /etc/mcc-wrapper/mplink.conf file and i shoud run mcc-setup (which i couldn't find) but it seemed ok without it -- and i'm rather curious -- where did it put the hex? -- i've searched my entire disk 'n' i cant find it --[cant find a cod or cof files either]

~xavier

prograid 07-06-2005 23:57

Re: using eclipse
 
Quote:

Originally Posted by dasRatsel
the only thing it complained over was the lack of /etc/mcc-wrapper/mplink.conf file and i shoud run mcc-setup (which i couldn't find) but it seemed ok without it -- and i'm rather curious -- where did it put the hex? -- i've searched my entire disk 'n' i cant find it --[cant find a cod or cof files either]

Check the FRC Debug or FRC Release, (you'll probably have FRC Debug) folder of you Eclipse project. It should be there along with a cof file. (Cod file generation is supressed by default in my plugin since you can't debug with MPSIM in Eclipse anyway). The *.o files and a map file should be there also.

dasRatsel 08-06-2005 19:11

Re: using eclipse
 
yea -- nothin -- did i forget to set some variable to tell it to make the output file or something?

linker output:
Code:

Building target: FRCfalcon.hex
mplink /Files/FIRST/code/falcon/18f8520user.lkr /aINHX32 /o FRCfalcon.hex encoder.o gyro.o ifi_startup.o ifi_utilities.o main.o pid.o printf_lib.o robot.o user_routines.o user_routines_fast.o  /l/opt/mcc18/lib /Files/FIRST/code/falcon/FRC_alltimers.lib
WARNING: Cannot find /etc/mcc-wrapper/mplink.conf. Run mcc-setup
Microchip Linker
Linux WINE wrapper version CVS-HEAD
Copyright (c) 2004 Adambots-Live
http://adambots-live.sourceforge.net

(oh yea -- is there a way to supress those things that say compiling -- they're just junking up the output window to the point where i cant read the outputs from the compiler 'n' linker)


All times are GMT -5. The time now is 07:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi