Go to Post Things that get said on the field should stay on the field. - Bongle [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 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.
  #2   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
>>
  #3   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
  #4   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
>>
  #5   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.
  #6   Spotlight this post!  
Unread 15-06-2005, 09:24
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

Ok... almost got my installer working. It installs everything, sets up the PATH, but I get:
Code:
**** Full rebuild of configuration FRC Debug for project FIRST ****

Build error
(Exec error:Launching failed)
when I try to build.

What exactly fails there? This is a on a seperate laptop (not the desktop I've had working with Eclipse before).

-- EDIT --
There's a nice size savings with the installer. 111MB versus the 250MB of files it installs.
__________________


Last edited by Ryan M. : 15-06-2005 at 12:56.
  #7   Spotlight this post!  
Unread 15-06-2005, 12:31
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:
Originally Posted by Ryan M.
Ok... almost got my installer working. It installs everything, sets up the PATH, but I get:
Code:
**** Full rebuild of configuration FRC Debug for project FIRST ****

Build error
(Exec error:Launching failed)
when I try to build.

What exactly fails there? This is a on a seperate laptop (not the desktop I've had working with Eclipse before).

-- EDIT --
There's a nice size savings with the installer. 111MB versus the 250MB of files it installed.
The only thing that I can think of at the moment is that you didn't add the path for MinGW, it should be C:\MinGW\bin.
I don't know if this should matter, but did you install MinGW, Eclipse, CDT, and then my plugin in that order?
  #8   Spotlight this post!  
Unread 15-06-2005, 13:44
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
The only thing that I can think of at the moment is that you didn't add the path for MinGW, it should be C:MinGWbin.
I don't know if this should matter, but did you install MinGW, Eclipse, CDT, and then my plugin in that order?
Ok... I restarted after discovering a mysterious error which wouldn't let me open Firefox (something about "A previous installation must complete before this program may be run." Never seen it before, other than installers.)

Anyways, I was able to completely build (with no errors) our source code from this year.

If anyone would like to do some testing for me, there are two ways to get the installer (it's a 111MB download, be advised)
  1. Download it using a BitTorrent client (I prefer Azureus) by opening up the torrent file at http://traherom.homeunix.net:6969/to...02FA 7B8E35A7. If you download it this way please leave your BitTorrent client open so others can benefit from it!
  2. If that BitTorrent is giving you problems, you can download it directly from me at http://traherom.homeunix.net/setup.exe. The BitTorrent will probably be faster, as my max upload speed is only 50 k/b (usually more like 30 ).

Other miscellaneous notes:
  • To use it, you must install/have installed the MCC18 compiler.
  • I still can't get a normal C++ project to build. ("Exec error: launching failed") If anyone doesn't have the problem, solves the problem, or even just has an idea of what the problem is... could you tell?
  • The thing seems "finicky," as stated by prograid. Not sure why.
  • It required a restart (of the comp, not just Eclipse) for it to get to work for me. Try that. Don't know why, may have been some weird memory corruption thing my laptop does. It has issues.
  • You must still do the steps prograid gives to create a new project. Just start after the installation is complete. I may add a readme of how to make a new project into the installer later.
  • I think the license has a misspelling. Oh well. It just tells you that if you shoot yourself in the foot, it's your fault.

-- EDIT --
Sorry it the server was done there for a bit. My router has been really flakey lately.
__________________


Last edited by Ryan M. : 16-06-2005 at 06:44.
  #9   Spotlight this post!  
Unread 15-06-2005, 14:10
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:
Originally Posted by Ryan M.
To use it, you must install/have installed the MCC18 compiler (included with MPLAB).
Actually, it's a separate installation. You should have gotten it off of the Microchip FTP site at the beginning of the build season. You can also use the stripped down version included in the CD that came in the kit of parts, but it won't compile camera code.

Last edited by prograid : 15-06-2005 at 16:23. Reason: Messed up quote (extra bracket in tag)
  #10   Spotlight this post!  
Unread 15-06-2005, 20: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

oh dear -- ur right -- my problem is somewhat more intricate than i thought -- i suppose i'll just cross my fingers and hope somebody from the adam-bots sees this post::

i ran this in the command prompt:
Code:
mplink /Files/FIRST/code/falcon/18f8520user.lkr /aINHX32 /m Mapfile.map /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
and got this ->
Code:
bash-2.05b# mplink /Files/FIRST/code/falcon/18f8520user.lkr /aINHX32 /m Mapfile.map /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
Microchip Linker
Linux WINE wrapper version CVS-HEAD
Copyright (c) 2004 Adambots-Live
http://adambots-live.sourceforge.net

Done!

/Files/FIRST/code/falcon/18f8520user.lkr: line 1: //: is a directory
/Files/FIRST/code/falcon/18f8520user.lkr: line 2: //: is a directory
/Files/FIRST/code/falcon/18f8520user.lkr: line 3: //: is a directory
: command not foundalcon/18f8520user.lkr: line 4:
/Files/FIRST/code/falcon/18f8520user.lkr: line 5: LIBPATH: command not found
: command not foundalcon/18f8520user.lkr: line 6:
/Files/FIRST/code/falcon/18f8520user.lkr: line 7: //FILES: No such file or directory
/Files/FIRST/code/falcon/18f8520user.lkr: line 8: FILES: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 9: FILES: command not found
: command not foundalcon/18f8520user.lkr: line 10:
/Files/FIRST/code/falcon/18f8520user.lkr: line 11: CODEPAGE: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 12: CODEPAGE: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 13: CODEPAGE: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 14: CODEPAGE: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 15: CODEPAGE: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 16: CODEPAGE: command not found
: command not foundalcon/18f8520user.lkr: line 17:
/Files/FIRST/code/falcon/18f8520user.lkr: line 18: ACCESSBANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 19: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 20: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 21: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 22: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 23: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 24: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 25: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 26: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 27: DATABANK: command not found
/Files/FIRST/code/falcon/18f8520user.lkr: line 28: ACCESSBANK: command not found
: command not foundalcon/18f8520user.lkr: line 29:
/Files/FIRST/code/falcon/18f8520user.lkr: line 30: SECTION: command not found
: command not foundalcon/18f8520user.lkr: line 31:
/Files/FIRST/code/falcon/18f8520user.lkr: line 32: STACK: command not found
to get this output i had to create /etc/mcc-wrapper/mcc18.conf that is just an empty dummy file

included is my .lkr file

any help would be appreciated
thanks

~Xavier
Attached Files
File Type: txt 18f8520user.lkr.txt (1.4 KB, 21 views)
__________________
<<
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
>>
  #11   Spotlight this post!  
Unread 19-06-2005, 17:08
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:
Originally Posted by Ryan M.
I still can't get a normal C++ project to build. ("Exec error: launching failed") If anyone doesn't have the problem, solves the problem, or even just has an idea of what the problem is... could you tell?
I just realized that when you try to create a new C++ project (either standard or managed make) the default make command is make. You have to change it to mingw32-make. If you don't want to have to change this every time you create a new project, you can add a new system variable called make and make it equal to mingw32-make.

This problem will happen whether you have used the installer from Ryan M. or not.
  #12   Spotlight this post!  
Unread 19-06-2005, 20:52
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 just realized that when you try to create a new C++ project (either standard or managed make) the default make command is make. You have to change it to mingw32-make. If you don't want to have to change this every time you create a new project, you can add a new system variable called make and make it equal to mingw32-make.
Hm... odd. Somehow my desktop worked fine without that. Must have picked something else up.

Thanks for the info.
__________________

  #13   Spotlight this post!  
Unread 02-10-2005, 18:18
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
using eclipse to produce multiple targets or derivative projects

I've been using Eclipse for java in my day job for a couple of years. Finally got tired of the minimal functionality of MPLAB as an IDE and looked for some help getting going with Eclipse for FRC code. Also, we've started using CVS on the team to share and backup code, so of course Eclipse is quite nice for this with its integrated CVS support. So I was very happy to find this thread with lots of good info.

I got a basic setup working. However, in recent years we've had the practice on Team 1011 of using multiple MPLAB mcp files to produce hex files for different purposes. Basically the two motivations for this are:
(1) to produce a version that works with either the FRC or EDURC. We use the cheaper EDURC on some of our prototype bots and want to have the same code base for an EDURC and a FRC version.
(2) to produce derivative loadable codes that share most .c and .h files, for example, to make a diagnostic code distinct from a functional code.

For the first case, using different build configurations works out pretty well. As with the mcp files under MPLAB, I can use the different build configurations to define a preprocessor variable EDURC that can be used where needed in the code (not many places) when the behavior or I/O usages needs to be different between the EDURC and FRC versions. I also have different include and search paths to get the .h and .lib files appropriate for either the EDURC or the FRC.

I haven't quite figured out how to accomplish the second case. The closest I got was to make a main project and then have other derivative projects that refer to the main one for most files. I can get as far as sharing .h files and .lib files, by making search paths in the derivative project that refer to the main project. But I don't see how to get it to find .o files needed by the derivative project that are located in the main project. And you won't want all the .o files - just the ones that are required to resolve link time references. E.g. you don't want the .o file that contains "main" from the main project if you have a definition for "main" in the derivative project.

One way to fix this would be to have the main project create a .lib of it's .o files, then have the derivative project refer to that .lib. I guess this is pretty straight forward enhancement to the makefile generator. I'm going to look at doing that - unless somebody out there has better advice.

Thanks
Bill Bennett
CRUSH 1011
  #14   Spotlight this post!  
Unread 03-10-2005, 00:30
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 to produce multiple targets or derivative projects

Wow! I though this thread was dead. Well , anyway, I'm not exactly sure what you mean when you say

[QUOTE author="WizardofAz"](2) to produce derivative loadable codes that share most .c and .h files, for example, to make a diagnostic code distinct from a functional code.[/quote]

I think you mean that you're using dependent projects to edit only certain files, but I'm not really sure.

Last edited by prograid : 03-10-2005 at 00:36.
  #15   Spotlight this post!  
Unread 03-10-2005, 01:07
WizardOfAz's Avatar
WizardOfAz WizardOfAz is offline
Lead Mentor
AKA: Bill Bennett
FRC #1011 (CRUSH)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Tucson, AZ
Posts: 101
WizardOfAz will become famous soon enough
Send a message via AIM to WizardOfAz
Re: using eclipse to produce multiple targets or derivative projects

Yeah, the derivative projects thing is mostly about changing only a few of the files, and not wanting the changes to be done to the files in the main code that will run the real bot. The best example is the diagnostic load we wrote in 2004. We had a four wheel steered drive system, lots of controls on the OI, and wanted a diag code that exercised all that stuff but would not be extra code in the competition load. So we forked off a few files into a diagnostic program, and inherited all the rest. This is what doesn't seem exactly simple in the eclipse way of doing this. Although it's easy with eclipse in java, not so with this C setup.

Bill
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