Go to Post [on the 2007 field control software] its crazy -- not only did they sound like the same old sound effects we know and love, but it seemed like they actually occured at the time they were supposed to! :) - Aidan F. Browne [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-05-2005, 21:04
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: using eclipse

Quote:
Originally Posted by Redneck
Biggest understatement of all time....

Eclipse is nice, but I prefer Dev C++ myself.... any hope of ever using that with FRC?
With a fair bit of tinkering, it should be possible to use DevC++. If I recall, it uses mingw, so it should be able set the compiler to mcc18 in project options or the like.
Making the makefiles yourself is easy once you know how -_-
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #2   Spotlight this post!  
Unread 30-05-2005, 19:37
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: using eclipse

I'm actually working on this since a lot of people have complained about this. It seems most people don't actually know how makefiles and make utilities work, so it seems to me that using the managed make feature in Eclipse's CDT would work best. I'm writing a plugin for eclipse to do this. At this point I have added support for the C18 compiler. However, I'm still workig on the linker.
  #3   Spotlight this post!  
Unread 31-05-2005, 06:57
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: using eclipse

Quote:
Originally Posted by prograid
I'm actually working on this since a lot of people have complained about this. It seems most people don't actually know how makefiles and make utilities work, so it seems to me that using the managed make feature in Eclipse's CDT would work best. I'm writing a plugin for eclipse to do this. At this point I have added support for the C18 compiler. However, I'm still workig on the linker.
Cool deal! Although I do know how makefiles work and how to make them, it would be even better to have that automated.
__________________

  #4   Spotlight this post!  
Unread 01-06-2005, 00:16
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: using eclipse

I've finally finished my work on the eclipse plugin that allows you to use the manged build feature for eclipse. All it actually is, is an xml file that you stick in the plugins directory of your eclipse installation. Here are the instructions:

1. First download the basic eclipse installation. (At this point I am using Eclipse SDK 3.02) You can get it here.Eclipse Foundation website Just unzip the file to wherever you want it to go.

2. Next install mingw (if you're on windows) If linux install, some sort of gcc collection that includes GNU make. If you're on a Mac, sorry I don't know what to do. Anyway, you can MinGW from this site. Click on File List and then click on the current release of MinGW. (As of the time I'm writing this the current release is MinGW-3.1.0-1.exe) Make sure that your path has C:\minGW\bin by rightclicking on My Computer, properties, advanced, envrionment variables, system variables, path.

3. Start up eclipse, you'll probably get a welcome screen and everything. Go to the Help menu select Software Updates and then Find and Install, Select Search for new features to install and click Next. Click New Remote Site to add an update site with the URL:

http://download.eclipse.org/tools/cdt/releases/new

Download the latest version of the CDT SDK (not runtime) (I'm currently using 2.1.1) By the way CDT doesn't work with Windows ME or Windows 98.

4. Finally, download plugin.zip and unzip the folder within to the plugins directory of your eclipse installation. Restart eclipse.


To make a project. Click on file new project managed make C project. Uncheck the use default button and browse to the folder containing the code you're working on.
Give your project a name (it doesn't have to be the same as the folder containing your code, then click next.
On the following screen choose Microchip Embedded Systems from the dropdown menu. (i know its an odd name. the reason i chose was in case i felt like adding support for other microchip processors later) Make sure that both FRC Debug and FRC Release are checked.
Click on finish (not next).
Delete everything other than the two lib files the source and header files, and the linker file (extension .lkr).
Next, go to project, properties (if its grayed out, make sure you've got your project selected) and click on C/C++ Build on the left side.
Choose miscellaneous from the MPLINK linker settings and add your linker file by clicking on the little yellow plus signs next to where it says "Linker File". Unfortuanately you have type the path in yourself. There's no browse feature. Do the same for the library below. Choose either FRC_library.lib or FRC_altimeters.lib. For both of these options make sure that only one library/linker file is selected, or else bad stuff happens. Now click on build all from the project menu and you're ready. Errors during compilation should show up in the problems menu at the bottom of your screen. Errors during linking will be the last thing in the console after a build. The equivalent of make is build all in eclipse. The equivalent of build all is clean. I know its weird but that's how it works. In addition if you would like to build the project each time you save changes check build automatically from the project menu.
Attached Files
File Type: zip plugin.zip (2.2 KB, 138 views)

Last edited by prograid : 01-06-2005 at 12:08.
  #5   Spotlight this post!  
Unread 02-06-2005, 16:14
dasRatsel's Avatar
dasRatsel dasRatsel is offline
Registered User
FRC #0811
 
Join Date: Apr 2005
Location: NH
Posts: 26
dasRatsel is on a distinguished road
Re: using eclipse

I LOVE YOU MORE THAN YOU KNOW!!!!!

k - - nuff of the randomness -- using a managed make saves me a bunch of heartache -- thanks

but question -- if anybody knows exactly what utils one needs to program the robot in linux (like linux versions of , ifiLoader and C18) that'd be great. I found this one site that was hosted by sourceforge -- but i couldn't find out how to download it...thanks

~Xavier
__________________
<<
and i said what about
breakfast at tiffany's
she said i think i
remember that film
i
said as i recall
i think
we both kinda liked it
and i said well that's one thing we got
>>
  #6   Spotlight this post!  
Unread 02-06-2005, 18:27
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
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.
  #7   Spotlight this post!  
Unread 03-06-2005, 12:20
dasRatsel's Avatar
dasRatsel dasRatsel is offline
Registered User
FRC #0811
 
Join Date: Apr 2005
Location: NH
Posts: 26
dasRatsel is on a distinguished road
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...
__________________
<<
and i said what about
breakfast at tiffany's
she said i think i
remember that film
i
said as i recall
i think
we both kinda liked it
and i said well that's one thing we got
>>
  #8   Spotlight this post!  
Unread 04-06-2005, 17:31
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
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
  #9   Spotlight this post!  
Unread 04-06-2005, 20:03
dasRatsel's Avatar
dasRatsel dasRatsel is offline
Registered User
FRC #0811
 
Join Date: Apr 2005
Location: NH
Posts: 26
dasRatsel is on a distinguished road
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
__________________
<<
and i said what about
breakfast at tiffany's
she said i think i
remember that film
i
said as i recall
i think
we both kinda liked it
and i said well that's one thing we got
>>
  #10   Spotlight this post!  
Unread 05-06-2005, 09:09
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
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.
  #11   Spotlight this post!  
Unread 05-06-2005, 18:11
dasRatsel's Avatar
dasRatsel dasRatsel is offline
Registered User
FRC #0811
 
Join Date: Apr 2005
Location: NH
Posts: 26
dasRatsel is on a distinguished road
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
__________________
<<
and i said what about
breakfast at tiffany's
she said i think i
remember that film
i
said as i recall
i think
we both kinda liked it
and i said well that's one thing we got
>>
  #12   Spotlight this post!  
Unread 05-06-2005, 19:50
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
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.

Last edited by prograid : 05-06-2005 at 19:53.
  #13   Spotlight this post!  
Unread 05-06-2005, 21:10
dasRatsel's Avatar
dasRatsel dasRatsel is offline
Registered User
FRC #0811
 
Join Date: Apr 2005
Location: NH
Posts: 26
dasRatsel is on a distinguished road
Re: using eclipse

yea -- i'm just GNU make -- the problem is in that .conf/* thing -- did i forget to configure something ?
__________________
<<
and i said what about
breakfast at tiffany's
she said i think i
remember that film
i
said as i recall
i think
we both kinda liked it
and i said well that's one thing we got
>>
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Eclipse IDE & makefile as MPLAB replacement RoboPhantom Programming 0 27-02-2005 19:05
Last total Lunar Eclipse TONIGHT miketwalker Chit-Chat 16 11-11-2003 22:00
Free Compiler/Linker for WinXP? IMDWalrus Programming 14 05-11-2003 15:45
Total Lunar Eclipse May 15/16 Night geo Chit-Chat 17 19-05-2003 22:02


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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