Go to Post FIRST Isn't just about the robots, it's about Gracious Professionalism, co-opetition, and outreach also. - Julia Magoolia [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 01-01-2006, 20:17
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
*nix support?

How would i develop robot software on my Linux box/Mac? I can understand if its impossable on the Mac because Mac's are PPC based but isnt there a way on Linux? If possable i'd like to avoid WINE at all costs.

I think that everyone can agree that MPLab really sucks. I'd rather use VI.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan
  #2   Spotlight this post!  
Unread 01-01-2006, 20:40
Kyle Fenton Kyle Fenton is offline
GET IT ON!!
FRC #0121 (Rhode Warrior)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 2000
Location: Middletown, R.I.
Posts: 785
Kyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud ofKyle Fenton has much to be proud of
Send a message via AIM to Kyle Fenton
Re: *nix support?

Your post is a little confusing, what kind of computer do you have? Are you saying that you have a Mac with a PPC linux installed on it.

Compiler design is a little confusing, but it usually has to processor and not really the operating system. The C18 complier has been used with a x86 linux box, and there are several posts about it.
__________________
121
Rhode Warriors
NAVSEA/Raytheon/URI/Middletown, Portsmouth, Tiverton, Mt. Hope HS
Quality Robots Since 1996
  #3   Spotlight this post!  
Unread 01-01-2006, 23:15
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: *nix support?

Quote:
Originally Posted by Validius
If possable i'd like to avoid WINE at all costs.
Not possible unfortunately. The MCC18 compiler is compiled to run under Windows (meaning it uses the Windows APIs etc) so WINE is needed to provide that compatibility layer. This is also why you can't run it on anything other than x86 (unless you use something like VMware or Virtual PC). Others have gotten it to work under Linux, but personally I think the hoops you have to jump through just aren't worth it.
Quote:
Originally Posted by Validius
I think that everyone can agree that MPLab really sucks. I'd rather use VI.
So use VI then. On Wildstang all of our software people develop for the robot controller using vim and make. Since you can run the mcc18 compiler from the command line outside of MPLAB it is really easy to avoid it. My recommendation for people who prefer Unix-like OSes (I'm one of them) is just to install Cygwin on a Windows computer, and use Makefiles to build.

Last edited by Dave Flowerday : 01-01-2006 at 23:20.
  #4   Spotlight this post!  
Unread 01-01-2006, 23:20
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: *nix support?

There are some Linux programs developed specifically for FIRST. I'm not too familiar with them, but there is this sourceforge project designed to download compiled code onto the robot. I don't know how you'd compile the actual code in linux. Maybe you can just run the compiler in WINE and do all your editing and downloading in native Linux?
  #5   Spotlight this post!  
Unread 01-01-2006, 23:28
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
Re: *nix support?

I haven't gotten around to trying it yet, but SDCC supports the 18F8520 that's in the RC. I believe that mcc18 has some optimizations, so if you use SDCC, your milage may vary.
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
  #6   Spotlight this post!  
Unread 01-01-2006, 23:57
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: *nix support?

Quote:
Originally Posted by sciguy125
I haven't gotten around to trying it yet, but SDCC supports the 18F8520 that's in the RC. I believe that mcc18 has some optimizations, so if you use SDCC, your milage may vary.
that looks really sweet, It has a mac version too. I bet i can get it and kdevelop together (gotta love X11+Fink project)
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan
  #7   Spotlight this post!  
Unread 02-01-2006, 13:41
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: *nix support?

Quote:
Originally Posted by sciguy125
I haven't gotten around to trying it yet, but SDCC supports the 18F8520 that's in the RC. I believe that mcc18 has some optimizations, so if you use SDCC, your milage may vary.
You probably should. The documentation makes little assertion of compatibility (either source-level or binary-level) with MCC18. This is critical for us, seeing as we must use the libraries provided for us by IFI, which are probably compiled with MCC18.

If it can't link MCC libraries, we can't use it.
  #8   Spotlight this post!  
Unread 01-01-2006, 23:55
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: *nix support?

Quote:
Originally Posted by Dave Flowerday
Not possible unfortunately. The MCC18 compiler is compiled to run under Windows (meaning it uses the Windows APIs etc) so WINE is needed to provide that compatibility layer. This is also why you can't run it on anything other than x86 (unless you use something like VMware or Virtual PC). Others have gotten it to work under Linux, but personally I think the hoops you have to jump through just aren't worth it.
So use VI then. On Wildstang all of our software people develop for the robot controller using vim and make. Since you can run the mcc18 compiler from the command line outside of MPLAB it is really easy to avoid it. My recommendation for people who prefer Unix-like OSes (I'm one of them) is just to install Cygwin on a Windows computer, and use Makefiles to build.
OK, i have a Mac with OS X and PPC Linux. I understand how that wouldnt work for obvious archatectual reasons. I also have a whitebox PC with Linux. Yes, i'l get VI for win32 and use that. You use make? I have never dabled with Make. You just wriet your own makefile and have it use the compiler as its compiler command?

See you guys in Novi for the kickoff!
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan
  #9   Spotlight this post!  
Unread 02-01-2006, 00:09
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: *nix support?

Quote:
Originally Posted by Validius
You just wriet your own makefile and have it use the compiler as its compiler command?
Yes. Attached is our Makefile (renamed to Makefile.txt due to file type restrictions) that was modified to work with the default camera code from last year. To use it under Cygwin you should be able to just edit the list of .o files that need to be compiled and also edit the location of the compiler. Remember that the MCC18 compilers have a ridiculous length restriction on the path where they're located so make sure it's located in a short path.
Attached Files
File Type: txt Makefile.txt (1.7 KB, 50 views)
  #10   Spotlight this post!  
Unread 02-01-2006, 14:04
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: *nix support?

Quote:
Originally Posted by Validius
OK, i have a Mac with OS X and PPC Linux. I understand how that wouldnt work for obvious archatectual reasons.
I haven't looked into SDCC, but standard GCC supports something called cross-compiling where you can compile programs for one platform (say PowerPC) on another platfom (x86).
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #11   Spotlight this post!  
Unread 02-01-2006, 07:10
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: *nix support?

These threads helped me get everything working under Linux: (Should apply similarly to OS X.)

http://www.chiefdelphi.com/forums/sh...ad.php?t=36377
http://www.chiefdelphi.com/forums/sh...ad.php?t=38853
http://www.chiefdelphi.com/forums/sh...ad.php?t=37736
__________________

  #12   Spotlight this post!  
Unread 14-01-2006, 15:53
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: *nix support?

I did all of our programming last year on a linux box. A 486 laptop that I found at the curb in fact. People looked at it kind of funny, and it took about 10 minutes to run the linker, but it worked fine. At least I did not have to work in windows.

Getting the compiler to run on linux is really pretty easy. I did need to install on windows and then copy over the mcc18 directory though. Wine would not run the installer, but it runs the compiler without any problems.

I also have a customized Makefile which I can post. I added a python script to parse the (sometimes less than helpful) compiler output to find where any errors are located.

My only concern for this year is that the PICloader has not been updated. I know that the official one has changed to match the new controller. Has anyone tried to load code with the old IFI Linux PICloader yet?
  #13   Spotlight this post!  
Unread 15-01-2006, 14:15
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: *nix support?

Quote:
Originally Posted by tux
My only concern for this year is that the PICloader has not been updated. I know that the official one has changed to match the new controller. Has anyone tried to load code with the old IFI Linux PICloader yet?
According to a fellow developer, both pictools and picloader work on the new control system. (I don't know if that's CVS or the last release, though.)
  #14   Spotlight this post!  
Unread 15-01-2006, 18:01
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: *nix support?

Yes, the current loader versions (0.4.1, 0.4.97, CVS) all work great with the old and new controllers, as far as my testing was concerned (2006 default, camera code).
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
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
openFIRST Project Announces Pending Deadline for End of Support for Old Versions Timothy D. Ginn FIRST-related Organizations 0 11-07-2005 22:40
We Need Your SupporT! coreyk FIRST Interactive Rural SupporT 0 17-12-2004 21:21
support Tyler Olds 3D Animation and Competition 2 07-02-2002 16:32


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

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