PDA

View Full Version : Program C++ in NetBeans?


camper365
01-17-2010, 03:27 PM
Is it possible to use NetBeans to program the robot in C++?
The issue is that I am running Linux and having problems getting WindRiver installed and would like to use NetBeans to write and test code. I have been able to successfully install NetBeans but not Wind River so I would like to use that.

rogerlsmith
01-17-2010, 03:43 PM
As far as I know, Java is the only FRC supported language for development in NetBeans.

camper365
01-17-2010, 04:02 PM
Is there an unsupported way to do it?

rogerlsmith
01-17-2010, 04:14 PM
Not sure, but doubtful. I think it'd be a bit of a risk to spend time right now investigating the feasibility of this. Maybe something you'd want to look into after this season is complete.

svenw
01-17-2010, 04:16 PM
are you using linux to code at home? you could download a c++ ide for linux (code:blocks isnt too bad) and write code on that and then copy it to windriver on a windows computer whenever you want to download it to the crio.

rkelly23
01-17-2010, 04:17 PM
NetBeans is a Java IDE only. Just download a C++ IDE

davidthefat
01-17-2010, 06:25 PM
All of you are wrong... netbeans is an all rounder, from php to java to c/c++...


http://netbeans.org/features/cpp/index.html

StevenB
01-17-2010, 10:12 PM
Is it possible to use NetBeans to program the robot in C++?
The issue is that I am running Linux and having problems getting WindRiver installed and would like to use NetBeans to write and test code. I have been able to successfully install NetBeans but not Wind River so I would like to use that.
No, you can't compile C++ code for the robot using NetBeans. Yes, you can write C++ code in NetBeans, and copy it into WindRiver Workbench. Personally, I would use Eclipse to write the C++ code at home, share it on a Subversion server, and do the rest of the work in WRW. WindRiver Workbench is based on Eclipse, so Eclipse will act and feel like WRW, which may make switching back and forth more comfortable.

Another option would be to download the WRW trial for Linux (http://www.windriver.com/evaluations/workbench-ocd-compiler/), and see if you can copy over the license files and FRC-specific stuff. I don't know how hard this would be, or if it's even legal. The WPILib guys would probably be interested if you got it to work, though.