Go to Post One of our electrical engineers would bring his kids in every so often, so they could actually see their dad during build season. - Karthik [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 08-11-2012, 17:57
shawn.schwartz's Avatar
shawn.schwartz shawn.schwartz is offline
Lead Systems Engineer
FRC #0004 (Team 4 ELEMENT)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Lake Balboa, CA
Posts: 27
shawn.schwartz is an unknown quantity at this point
C++ Deploying Macintosh

Hello CD,

My team members and I really want to switch to C++ from Java. Currently, we use Java with Netbeans. We would prefer to use Xcode to write and compile, and even deploy our code to the cRIO if possible. Is there a way to do this?
Or is there a different application we need to use? Can someone please post instructions or other applications that they have used for something like this?

Thank you very much! We are really in need for this help!
__________________
Shawn Schwartz
Programming/Head of Website & Media, Team 4 ELEMENT
team4element.com
"Innovation distinguishes between a leader and a follower." -Steve Jobs
  #2   Spotlight this post!  
Unread 09-11-2012, 12:01
CodeYeti's Avatar
CodeYeti CodeYeti is offline
FRC Addict
AKA: Matt Coffin
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Colorado
Posts: 81
CodeYeti is an unknown quantity at this point
Re: C++ Deploying Macintosh

Quote:
Originally Posted by shawn.schwartz View Post
Hello CD,

My team members and I really want to switch to C++ from Java. Currently, we use Java with Netbeans. We would prefer to use Xcode to write and compile, and even deploy our code to the cRIO if possible. Is there a way to do this?
Or is there a different application we need to use? Can someone please post instructions or other applications that they have used for something like this?

Thank you very much! We are really in need for this help!
You're going to have some problems with compiling C++ on a mac because the compiler supported by FIRST doesn't work on anything except for windows. You can try to run it under wine and make your own toolchain, but that's not really a permanent solution. An experimental port of GCC has now been pulled into GCC's mainline, and compiling it for powerpc-wrs-vxworks with osx as the host does work (I've tested it). As a side note, you should use GNU gcc to compile the cross-compiler instead of Apple's favorite LLVM gcc. Instructions on how to download and install GCC for cross-compiling for vxworks/powerpc can be found here (1).

(1) http://www.chiefdelphi.com/forums/sh...d.php?t=109385
  #3   Spotlight this post!  
Unread 09-11-2012, 21:00
~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: C++ Deploying Macintosh

I would recommend to just bite the bullet and try WindRiver on Windows and avoid the hassle (messing with the gcc tool chain is a pain...)

If you are already making a switch from Java to C++, you might as well add WindRiver to your skill set.


And anyways, WindRiver is based off Eclipse which is a multiplatform, multi language (Java, C++, others) that is used extensively in the business world. It has all modern features you would expect from XCode or VS.
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
  #4   Spotlight this post!  
Unread 10-11-2012, 11:00
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,580
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: C++ Deploying Macintosh

Maybe I'm missing something, but can you add Eclipse plugins in WindRiver? I've never used WindRiver before, but I use Eclipse quite a bit. For whatever reason, I wasn't ever able to add external plugins.
  #5   Spotlight this post!  
Unread 10-11-2012, 11:51
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,080
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: C++ Deploying Macintosh

You can also use UCPP https://github.com/tombot/ucpp

Integration with xCode could be achieved by adding a custom build step. Personally, I just ran it from the command line.
__________________




.
  #6   Spotlight this post!  
Unread 10-11-2012, 22:36
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: C++ Deploying Macintosh

Im not familiar with Xcode, but as for deploying the code, you could easily write an ftp script, just a batch script .bat file even to automatically send your code to the robots ftp server.

I know you just move the .suite file to the rio in java, Id imagine it cant be too different for C++
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
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


All times are GMT -5. The time now is 02:29.

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