Go to Post It's not just well and good that students are being inspired, it's the whole dang point. - James1902 [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2006, 19:23
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
eclipse & Kevin's camera code

howdy --

i'm using eclipse f'r my IDE and am trying to integrate some of Kevin's camera code into our code, but i get a link error reading:
"Error - processor types do not agree across all input files."
when i try to use this year's .lkr and library files.
i'm not quite sure what this error means let alone how to fix it, so any help would be greatly appreciated

~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
>>
  #2   Spotlight this post!  
Unread 20-01-2006, 19:34
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: eclipse & Kevin's camera code

The processor upgrade (/new code because of that) broke the old build tools on the Linux side. I've got everything compiling using the configure.py script pointed to by this post. That creates a Makefile which will correctly build the code.

I'm using OpenLDev as my IDE now... nice that I don't have to load the huge Java VM.
__________________

  #3   Spotlight this post!  
Unread 20-01-2006, 19:47
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: eclipse & Kevin's camera code

intresting -- i'm hoping to keep w. eclipse (i wanna keep everything in windows) but i'll look into alternatives, i just dont wanna be forced back to mplab

thanks f'r the info
__________________
<<
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
>>
  #4   Spotlight this post!  
Unread 20-01-2006, 20:56
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: eclipse & Kevin's camera code

Quote:
Originally Posted by dasRatsel
(i wanna keep everything in windows)
Oops... didn't realize you were on Windows. You'll probably have to get in touch with the person who made the plugin. *shrug*

The full thread may help you to figure out what needs to be updated.
__________________


Last edited by Ryan M. : 20-01-2006 at 20:58.
  #5   Spotlight this post!  
Unread 20-01-2006, 20:59
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: eclipse & Kevin's camera code

The new camera code compiles fine under eclipse/windows. Try cleaning first. (BTW, I've come up with a "generic" makefile that uses $(wildcard) and % to compile everything. I'll post it if there's interest.)
  #6   Spotlight this post!  
Unread 20-01-2006, 21:08
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by dasRatsel
howdy --

i'm using eclipse f'r my IDE and am trying to integrate some of Kevin's camera code into our code, but i get a link error reading:
"Error - processor types do not agree across all input files."
when i try to use this year's .lkr and library files.
i'm not quite sure what this error means let alone how to fix it, so any help would be greatly appreciated

~Xavier
The eclipse plug-in will work with 2004/5 and 2006 controllers.

You have to make sure that all the files are for the same processor type. In the case of the 2006 controller, if is 18F8722. Check these things:
1. right-click on the project in the left-side project window. Select properties. Then select C/C++ Build. From there, select "Compilation Information". In this window, the processor type should read: "-p=18F8722" to set the 2006 controller.
2. Make sure that you are linking with this years libraries from IFI
3. Make sure that you are linking with the 18F8722 linker file (18F8722.lkr).
The last two items are on the "Linker Information" page of the project properties window.

If any of these don't agree, then you'll get that message.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #7   Spotlight this post!  
Unread 20-01-2006, 21:21
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: eclipse & Kevin's camera code

yea -- i found the problem, its compiling all the files with "-p=18F8520"
i can't find how to change that for the 2006 controler, might i have an old version of the plugin where i can't change that value?
__________________
<<
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 21-01-2006, 01:36
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: eclipse & Kevin's camera code

Quote:
Originally Posted by Ryan M.
You'll probably have to get in touch with the person who made the plugin.
That's me.

Quote:
Originally Posted by dasRatsel
yea -- i found the problem, its compiling all the files with "-p=18F8520"
i can't find how to change that for the 2006 controler, might i have an old version of the plugin where i can't change that value?
This may be possible, however; I have an even better solution.
I've posted a new plug-in on our team website (it may be finicky as we recently had a power outage at school).
First delete the old plug in, which should be either a folder or jar file with the name org.eclipse.cdt.mcc18.toolchain_version number
Then restart eclipse, and go to help, software updates, find and install....
Choose find a new feature to install, and click next.
Then select new remote site and give the site a name, and enter
http://team254.bcp.org/update_site for the URL and click OK.
Then click next. Click the checkbox, and click next or finish (whichever is active) When it prompts you as to whether you really want to install the plug-in click install.
It will then ask you to restart eclipse. Click yes.
Any projects you create now using the CDT and Managed Make will now have two configurations, one for pre-2006 controllers (i.e. PIC18f8520) and one for the 2006 controller (default.) You will have to recreate any old projects.
This should allow you to compile 2006 code very easily. If you have any urgent questions PM me or send me an email, or else post them in this thread, or a new one if they warrant a new thread.
Glad to see my work is of use!
  #9   Spotlight this post!  
Unread 21-01-2006, 15: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: eclipse & Kevin's camera code

wow
thanks a million. you are my hero for writing this plugin
*bows graciously*
thanks again

~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 23-01-2006, 01:34
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: eclipse & Kevin's camera code

Hmmm

Following your instructions above, I deleted and reinstalled the plugin from the team254 site. Restarted eclipse. Created a new project and copied all the source files from the old one. I have some problems:

in properties, if I click on C/C++ Build, I get "an error has occured, see log for details".

If I do a project/clean and try to look at the console output, it says "no console is available"

Any suggestions?

Bill
  #11   Spotlight this post!  
Unread 23-01-2006, 20:37
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by WizardOfAz
Hmmm

Following your instructions above, I deleted and reinstalled the plugin from the team254 site. Restarted eclipse. Created a new project and copied all the source files from the old one. I have some problems:

in properties, if I click on C/C++ Build, I get "an error has occured, see log for details".

If I do a project/clean and try to look at the console output, it says "no console is available"

Any suggestions?

Bill
Occasionally, when I install a plugin, it throws an error the first time but not after.

Also, what was the error? (Help > About Eclipse SDK; Configuration Details; View Error Log. Scroll all the way down.)
  #12   Spotlight this post!  
Unread 24-01-2006, 08:30
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: eclipse & Kevin's camera code

Quote:
Originally Posted by Astronouth7303
Occasionally, when I install a plugin, it throws an error the first time but not after.

Also, what was the error? (Help > About Eclipse SDK; Configuration Details; View Error Log. Scroll all the way down.)

Thanks. It's not a first time error, it's every time. I can't use the mcc18 plugin at all. More specifically, I get the error whenever I try to touch the C18 properties or the MPLinker properites. I.e.
right-click project>Properties>C/C++ Build>Tool Settings>C18 Compiler --> kaboom

The error from the log is not very helpful. It's getting an array out of bounds. I assume something in the plugin is messed up and it's trying to show a property that does not exist or something. The beginning of the error is:

Code:
!ENTRY org.eclipse.jface 4 2 2006-01-24 06:22:36.264
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at org.eclipse.cdt.managedbuilder.ui.properties.BuildToolSettingsPage.getToolFlags(BuildToolSettingsPage.java:259)
	at org.eclipse.cdt.managedbuilder.ui.properties.BuildToolSettingsPage.updateAllOptionField (long stack trace follows)
BTW - thanks for telling me how to find that log, I had always wondered.

I have tried uninstalling and reinstalling the plugin, no difference on that. My Eclipse version is 3.1.1 and it worked fine with an older MCC18 plugin that didn't offer the 8722 support.

Bill
  #13   Spotlight this post!  
Unread 24-01-2006, 16:19
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: eclipse & Kevin's camera code

Using the online version, this is verifiable. (I get the same/similar issue on mine.)

I would recomend using the old version (1.2) from the whitepaper thread. MAKE SURE YOU UNINSTALL THIS ONE FIRST!
  #14   Spotlight this post!  
Unread 24-01-2006, 18:33
lupjohn's Avatar
lupjohn lupjohn is offline
Registered User
AKA: Larry Upjohn
FRC #0692 (FemBots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2002
Location: Sacramento, CA
Posts: 31
lupjohn is an unknown quantity at this point
Re: eclipse & Kevin's camera code

Quote:
Originally Posted by prograid
That's me.


This may be possible, however; I have an even better solution.
I've posted a new plug-in on our team website (it may be finicky as we recently had a power outage at school).
First delete the old plug in, which should be either a folder or jar file with the name org.eclipse.cdt.mcc18.toolchain_version number
Then restart eclipse, and go to help, software updates, find and install....
Choose find a new feature to install, and click next.
Then select new remote site and give the site a name, and enter
http://team254.bcp.org/update_site for the URL and click OK.
Then click next. Click the checkbox, and click next or finish (whichever is active) When it prompts you as to whether you really want to install the plug-in click install.
It will then ask you to restart eclipse. Click yes.
Any projects you create now using the CDT and Managed Make will now have two configurations, one for pre-2006 controllers (i.e. PIC18f8520) and one for the 2006 controller (default.) You will have to recreate any old projects.
This should allow you to compile 2006 code very easily. If you have any urgent questions PM me or send me an email, or else post them in this thread, or a new one if they warrant a new thread.
Glad to see my work is of use!

Ben;
I tried the above process but continue to be blocked at the server as unauthorized access. I have read all of the threads mentioned but did not see any sort of registrations instructions. P.S. I am using Eclipse to also write code for the Palm PDA even have worked on some code published elsewhere using the Palm as a robotics controller. Thanks for your help!
  #15   Spotlight this post!  
Unread 24-01-2006, 19:41
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: eclipse & Kevin's camera code

Sorry for the problems.

However, just to make some things clear. You can't download the plug-in by clicking on the link. You need to copy the URL into Eclipse's update manager.
(I have a feeling that the problem might have something to do with a slight change I made to the plug-in soon after publishing it.)

I'm working on it now. I'll post when I am sure that (at least as sure as I can be) it works.

Thanks for your help,

Ben
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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Combined Camera and PID/Encoder Code Terry Sherman Programming 1 14-03-2005 17:59
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 01:04.

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