Go to Post “Nothing defines humans better than their willingness to do irrational things in the pursuit of phenomenally unlikely payoffs” - Scott Adams - 114Klaatu0x72 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-09-2010, 22:57
ygd ygd is offline
Registered User
FRC #3341 (Manhattan Project)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: San Diego
Posts: 26
ygd is an unknown quantity at this point
Question Programming with C++ from Linux

First of all: I tried searching for this, but found nothing both modern and relevant.

My team is switching to C++ this year from Java. Unfortunately, I don't have access to a Windows laptop. Is there any way I can program the robot with C++ from my laptop without having to buy an expensive copy of Windows?

Personally, I would prefer using emacs + makefile to download code, but I'll be happy with anything that'll spare me from shelling out $200 to Microsoft.

On a related sidenote: Does anyone know if I can use the image flashing software from WINE?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-09-2010, 09:51
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Programming with C++ from Linux

Quote:
Originally Posted by ygd View Post
First of all: I tried searching for this, but found nothing both modern and relevant.
There is something that is both modern and relevant under the search for "linux C++", although it is not blatantly obvious, Java VS C++ || The Final Decision
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #3   Spotlight this post!  
Unread 11-09-2010, 14:52
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Programming with C++ from Linux

I'd re-think switching to C++ if you don't have Windows, but if you can't do it, there are ways to hack around it.

http://zone.ni.com/devzone/cda/tut/p/id/5694

^ is the instructions for building vxWorks kernel modules without Wind River. If you name the output file to FRC_UserProgram.out and add the WPILib.a binary to the makefile, it should build for FRC properly. You'll have to run the builder in Wine though.

Once the code is built, just ftp it to /ni-rt/system/
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #4   Spotlight this post!  
Unread 11-09-2010, 16:45
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 70
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Programming with C++ from Linux

I have a gcc cross compiler for x86_64 that produces ppc output, but have not tried compiling for the robot yet.

I am waiting for our team's pre-season activities to start.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-09-2010, 11:26
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: 802
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: Programming with C++ from Linux

Quote:
Originally Posted by codedr View Post
I have a gcc cross compiler for x86_64 that produces ppc output, but have not tried compiling for the robot yet.

I am waiting for our team's pre-season activities to start.
If you have any success with your compiler, please let me know. I've been meaning to try building a cross-compiler when I get time.

A couple months ago, someone else asked a similar question to the OP's question, in a more roundabout way, and l sent them an email with some instructions and code which got put into a post that is here. There should be enough information in that post to build and deploy a basic robot image from under Linux.
Reply With Quote
Reply


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
Linux Programming Question GGCO Programming 2 09-02-2008 20:55
Linux Programming Loki1989 Programming 4 14-07-2006 10:02
Linux-Powered Robots and Flexible Programming jdong Programming 26 14-09-2005 17:48
Trouble booting Linux from hard drive after CD install edomus Technical Discussion 2 01-11-2004 08:03


All times are GMT -5. The time now is 13:51.

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