View Single Post
  #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