Go to Post Wow, 3 people able to draw their designs using text in a script processor program. I guess I wasted my time learning all that CAD software - Gary Dillard [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 11-01-2010, 23:10
techwizrd techwizrd is offline
Autonomous Programmer
FRC #0116 (Epsilon Delta)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Herndon, Virginia
Posts: 7
techwizrd is an unknown quantity at this point
Send a message via AIM to techwizrd
Compiling on Linux

Almost all of the programmers on our software team run Linux and use editors like Vim, Geany, etc. As far as I know, Wind River Workbench on Windows and is the only supported method for compiling C++ code to the robot. Is there a Makefile we could use instead?
__________________
Controls/Software Autonomous Programmer for Team 116
Epsilon Delta For The Win!
  #2   Spotlight this post!  
Unread 12-01-2010, 06:33
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Compiling on Linux

Quote:
Originally Posted by techwizrd View Post
Almost all of the programmers on our software team run Linux and use editors like Vim, Geany, etc. As far as I know, Wind River Workbench on Windows and is the only supported method for compiling C++ code to the robot. Is there a Makefile we could use instead?
Yes and no.
If you started now, trying to establish a viable build environment on Linux, you might get it right in time for the 2011 season.
Workbench has a VI mode editor though.
Also, WB installs many UNIX-like utilities that can be accessed from the development shell.
  #3   Spotlight this post!  
Unread 12-01-2010, 21:59
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: Compiling on Linux

i asked my friend who mentioned something about g++... not sure if it will make robot compatible code, or if it just makes linux excutables...
  #4   Spotlight this post!  
Unread 12-01-2010, 22:10
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Compiling on Linux

There is no reason why you can't do all of your editing in vim, emacs, etc. (after all, they are just text files on the disk). Then, use Workbench to do compilation and deploy the code. You could either install Cygwin on a Windows machine, or get WindRiver running on WINE for this to work.
  #5   Spotlight this post!  
Unread 12-01-2010, 22:24
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Compiling on Linux

GCC/G++ can build for just about anything, including PowerPC (what the cRio is), although I doubt a plain PowerPC build will work on the cRio, plus the WPIlib will probably not like not being run through its normal compiler.

Have you tried running any of this on WINE? Then you can edit the files as you wish, then compile them in a sorta-native-running WindRiver (since Wine does not actually emulate, it is much faster then emulators/visualizers).

Another option you have is to use a SVN or similar repository server and then have a computer running Windows with WindRiver dedicated to building stuff and loading it to the cRio (possibly your Classmate.) This would also give you a central repository for all of your code, which would help with versioning and out-of-date code in builds.

It would have been better to start before kickoff. You should still be able to get it done in the next few days.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #6   Spotlight this post!  
Unread 13-01-2010, 05:00
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Compiling on Linux

We compiled and downloaded under Linux last year using WINE, and will this year. I started in on getting debugging working, but backed down. Download the windows tools at the following URL, and extract them to the spot listed in the Makefile. The makefile should then download WPILib (last year's version, you can easily see where to specify the new source), patch it, and then compile it. I also included the patches I wrote to get doxygen to work to my satisfaction with the downloaded version of WPILib, and to get the Makefile for WPILib to actually work. Remove the .txt extension, and make a directory called bin where you are compiling, and put the patches there. It should be slightly obvious from the Makefile. Also, remove the .txt extension from the *ppc.txt files, and put those in the bin folder.

If you need any help getting it to work, or I forgot a step/file, I'd be glad to help.

http://zone.ni.com/devzone/cda/tut/p/id/5694
Attached Files
File Type: txt Makefile.txt (4.5 KB, 83 views)
File Type: txt makefile.patch.txt (1.1 KB, 33 views)
File Type: txt Doxyfile.patch.txt (2.1 KB, 28 views)
File Type: txt arppc.txt (61 Bytes, 27 views)
File Type: txt ccppc.txt (61 Bytes, 28 views)
  #7   Spotlight this post!  
Unread 13-01-2010, 09:07
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Compiling on Linux

The easiest way to compile on linux is to use java.
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
Compiling Error DustinB_3 Programming 1 12-02-2007 18:06
Compiling problem Anime-niac_2.9 VEX 4 19-10-2006 16:13
Compiling Help!! ajsetter Programming 14 13-10-2005 10:38
compiling in linux dasRatsel Programming 1 21-05-2005 21:00
White Paper Discuss: IFI Loader for Linux with compiling instructions CD47-Bot Extra Discussion 1 09-02-2004 16:46


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

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