Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Linux based development (http://www.chiefdelphi.com/forums/showthread.php?t=99544)

shuhao 08-01-2012 20:28

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?

BradAMiller 08-01-2012 21:25

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

shuhao 08-01-2012 21:30

Re: Linux based development
 
Are we allowed to actually modify the WPILib code?

BradAMiller 08-01-2012 21:33

Re: Linux based development
 
Quote:

Originally Posted by shuhao (Post 1100042)
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

gixxy 09-01-2012 13:01

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....)

shuhao 09-01-2012 20:33

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..

BradAMiller 09-01-2012 22:28

Re: Linux based development
 
Quote:

Originally Posted by shuhao (Post 1101052)
Maybe we could port the dev tool to eclipse if it is just executing a bunch of commands..

Working on it.

shuhao 09-01-2012 22:32

Sounds awesome!

gixxy 10-01-2012 00:34

Quote:

Originally Posted by shuhao (Post 1101052)
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.

shuhao 10-01-2012 07:43

Quote:

Originally Posted by gixxy (Post 1101332)
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

gixxy 10-01-2012 10:00

Re: Linux based development
 
Quote:

Originally Posted by shuhao (Post 1101408)
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. :D

shuhao 10-01-2012 13:04

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

gixxy 10-01-2012 13:08

Re: Linux based development
 
Quote:

Originally Posted by shuhao (Post 1101570)
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.

shuhao 10-01-2012 13:26

Quote:

Originally Posted by gixxy (Post 1101575)
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...


All times are GMT -5. The time now is 11:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi