|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#46
|
||||
|
||||
|
Re: using eclipse
Well, almost complete success here.
![]() The only flaw I have right now is the fact that rm doesn't exist under windows, so a clean doesn't actually work. But hey... that's minor. |
|
#47
|
||||
|
||||
|
Re: using eclipse
Quote:
|
|
#48
|
||||
|
||||
|
Re: using eclipse
Quote:
P.S. I'm working on creating an NSIS for this. It should be a quick way to install MCC18, MinGW, and Eclipse with all the necessary plugins. The one thing I'm going to check on is if I'm able to distribute MCC18 as part of the package. It;s probably prohibited. If anyone knows, I'd be extremely tickled if you'd share. ![]() Last edited by Ryan M. : 15-06-2005 at 07:22. |
|
#49
|
||||
|
||||
|
Re: using eclipse
Quote:
Quote:
This fix only applies to windows not linux. It will stop working if you use this version of the plugin for linux. By the way, if you want the new plugin to work, delete the old one and any projects created with that plugin. You can copy the source code somewhere else, but project files need to go. Also delete the following * /configuration/org.eclipse.osgi/manifests (this is a directory) * /configuration/org.eclipse.osgi/.bundledata (this is a file) * /configuration/org.eclipse.osgi/.state (this is a file) Then restart eclipse. Quote:
Last edited by prograid : 14-06-2005 at 22:58. Reason: Instructions for new plugin version |
|
#50
|
||||
|
||||
|
Re: using eclipse
Quote:
Quote:
|
|
#51
|
||||
|
||||
|
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) 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. |
|
#52
|
||||
|
||||
|
Re: using eclipse
Quote:
I don't know if this should matter, but did you install MinGW, Eclipse, CDT, and then my plugin in that order? |
|
#53
|
||||
|
||||
|
Re: using eclipse
Quote:
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)
Other miscellaneous notes:
-- 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. |
|
#54
|
||||
|
||||
|
Re: using eclipse
Quote:
Last edited by prograid : 15-06-2005 at 16:23. Reason: Messed up quote (extra bracket in tag) |
|
#55
|
||||
|
||||
|
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 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 included is my .lkr file any help would be appreciated thanks ~Xavier |
|
#56
|
||||
|
||||
|
Re: using eclipse
Quote:
This problem will happen whether you have used the installer from Ryan M. or not. |
|
#57
|
||||
|
||||
|
Re: using eclipse
Quote:
Thanks for the info. ![]() |
|
#58
|
|||||
|
|||||
|
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 |
|
#59
|
||||
|
||||
|
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. |
|
#60
|
|||||
|
|||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |