Go to Post ... poets, novelists, songwriters, these people are word engineers. - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 08-01-2012, 20:28
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Linux based development

I'm currently using a virtual machine to build and compile my cRIO project

Is there a way to do it without windows? From what I can tell, the netbean plugins are executing a bunch of commands (what I don't know)

If that's not possible, is it possible to build and upload via some sort of build script or ant build script? Opening up netbeans on anything is a pain, especially in a virtual machine, so if all I could do is deploy via a commandline tool in windows, it will be great.

Also, I can't seems to access the sourcecode for wpilib java even though I'm logged in. Is that also proprietary?
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2012, 21:25
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Linux based development

OK... the plugin is pure java and works on either Windows, Mac or Linux. So you can run that on Linux without any problem, I use a Mac as my development system. You'll still need to have a windows system (or some emulation) to run the Driver Station as that is Windows only.

The driver station can run on a different computer from the Netbeans development tools, just make them different IP addresses.

The source code is always built into the release. In your user directory, look for the sunspotfrcsdk folder. Inside there there is a lib directory with the WPILibJ project that contains all the source code for that release.

Whenever you get a new update, the source updates as well.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #3   Spotlight this post!  
Unread 08-01-2012, 21:30
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Linux based development

Are we allowed to actually modify the WPILib code?
Reply With Quote
  #4   Spotlight this post!  
Unread 08-01-2012, 21:33
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Linux based development

Quote:
Originally Posted by shuhao View Post
Are we allowed to actually modify the WPILib code?
You are free to modify the code, but be careful, because if updates come out you'll loose your changes (or have to reapply them).

Better is to make additional classes or subclass the pieces in the library to add features. For example, if you want to make your own implementation of a Jaguar, the make a class the extends (subclasses) the built-in class. Then you can override the built-in methods or add your own.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #5   Spotlight this post!  
Unread 09-01-2012, 13:01
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Linux based development

Linux Development is 100% possible.

Netbeans is available on every OS.

Simply Install the latest Netbeans for your Distro, in your Native Package format or through your native package manager.

Install the plugins just the same as with any Windows computer.

Set up that computer with a different IP address from the other laptop that is the driver station (driver station must be Windows).

I believe you can deploy code just the same... (We are a rookie team and have not preformed the benchtop test yet....)
Reply With Quote
  #6   Spotlight this post!  
Unread 09-01-2012, 20:33
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Linux based development

What about eclipse.. If you think eclipse is bad.. think again after you opened up netbeans...

Maybe we could port the dev tool to eclipse if it is just executing a bunch of commands..
Reply With Quote
  #7   Spotlight this post!  
Unread 09-01-2012, 22:28
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Linux based development

Quote:
Originally Posted by shuhao View Post
Maybe we could port the dev tool to eclipse if it is just executing a bunch of commands..
Working on it.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #8   Spotlight this post!  
Unread 09-01-2012, 22:32
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Sounds awesome!
Reply With Quote
  #9   Spotlight this post!  
Unread 10-01-2012, 00:34
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Quote:
Originally Posted by shuhao View Post
What about eclipse.. If you think eclipse is bad.. think again after you opened up netbeans...

Maybe we could port the dev tool to eclipse if it is just executing a bunch of commands..
What do you mean? I have used netbeans on both ubuntu and debian with no problems other than basic getting used to the IDE which is normal with all software for me.
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker
Reply With Quote
  #10   Spotlight this post!  
Unread 10-01-2012, 07:43
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Quote:
Originally Posted by gixxy View Post
What do you mean? I have used netbeans on both ubuntu and debian with no problems other than basic getting used to the IDE which is normal with all software for me.
Netbeans is too bloated. I personally enjoy just text editor + commandline
Reply With Quote
  #11   Spotlight this post!  
Unread 10-01-2012, 10:00
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Linux based development

Quote:
Originally Posted by shuhao View Post
Netbeans is too bloated. I personally enjoy just text editor + commandline
hmm. I've never seemed to have too much of a problem with that. Of course while coding the only thing I have running is Firefox or Chromium with Pandora and Chief Delphi open.
Reply With Quote
  #12   Spotlight this post!  
Unread 10-01-2012, 13:04
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
I have geany, about 3-4 terminal window, 20 tabs in Chrome and xchat. Sometimes i will have python or octave and vim in additional terminal windows
Reply With Quote
  #13   Spotlight this post!  
Unread 10-01-2012, 13:08
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Linux based development

Quote:
Originally Posted by shuhao View Post
I have geany, about 3-4 terminal window, 20 tabs in Chrome and xchat. Sometimes i will have python or octave and vim in additional terminal windows
Well that may do it. However I was able to have 20 bashshells open and running various scripts, as well as pandora and live streaming videos with vlc with no problem with 3GB RAM and a low end 2.1GHz processor.
Reply With Quote
  #14   Spotlight this post!  
Unread 10-01-2012, 13:26
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Quote:
Originally Posted by gixxy View Post
Well that may do it. However I was able to have 20 bashshells open and running various scripts, as well as pandora and live streaming videos with vlc with no problem with 3GB RAM and a low end 2.1GHz processor.
Even then... I don't like my editor to take more than a second to boot up...

Also... netbeans has little to no options... customization is difficult.. at least eclipse has options...
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


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

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