Go to Post We can't turn off inspiration and recognition, development and learning with a switch. It is an on-going process. If it were not, there would be no need for CD except for 6 weeks out of the year. - JaneYoung [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

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 31-01-2015, 16:08
Mr. Rick Mr. Rick is offline
Registered User
FRC #5407 (Wolf Pack Robotics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Philadelphia
Posts: 6
Mr. Rick is an unknown quantity at this point
Change Eclipse wpilib directory

First time poster and complete noob here. Any help is appreciated!

My end goal is to have our code shared between computers using github, sourcetree, and eclipse. We are primarily programming on MacBook Pros. My guess is that everything that relates to the user account folder needs to change because as soon as I push that to github and pull it down on another computer there will obviously be errors.

It seems the wpilib directory is installed by default to the home user account on Mac. I cannot find a way to change this directory. Instead, I copied the directory to the root folder (Macintosh HD), which is also where I placed the /Repositories folder (and made that folder the default workspace in Eclipse).

Naturally that threw some build path errors so I went into the build path preferences and updated the wpilib and networktables variables to be my new /wpilib directory.

Everything seemed to be working fine until I went to build. I am now getting some errors and it is obvious that it is still looking to the home directory for certain things.

Here is the output of the build:

Code:
Buildfile: /Repositories/Team-5407/build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory /Repositories/Team-5407/build
   [delete] Deleting directory /Repositories/Team-5407/dist
compile:
    [mkdir] Created dir: /Repositories/Team-5407/build
     [echo] [athena-compile] Compiling src with classpath=/Users/rickcastorani/wpilib/java/current/lib/WPILib.jar:/Users/rickcastorani/wpilib/java/current/lib/NetworkTables.jar to build
    [javac] Compiling 20 source files to /Repositories/Team-5407/build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: /Repositories/Team-5407/dist
    [mkdir] Created dir: /Repositories/Team-5407/build/jars
     [echo] [athena-jar] Copying jars from /Users/rickcastorani/wpilib/java/current/lib/WPILib.jar:/Users/rickcastorani/wpilib/java/current/lib/NetworkTables.jar to build/jars.
     [copy] Copying 2 files to /Repositories/Team-5407/build/jars
      [jar] Building jar: /Repositories/Team-5407/dist/FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-5407.local
Unknown host: roboRIO-5407.local
     [echo]  roboRIO not found via mDNS, falling back to static USB
     [echo] roboRIO not found via USB, falling back to static address of 10.54.7.2

BUILD FAILED
/wpilib/java/current/ant/build.xml:45: Assertion failed boolean test.
roboRIO not found, please check that the roboRIO is connected, imaged and that the team number is set properly in Eclipse

Total time: 18 seconds

And here is my updated build.xml in my attempt to tweak it so that it does not use the home user directory:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<project name="FRC Deployment" default="deploy">

  <!--
  The following properties can be defined to override system level
  settings. These should not be touched unless you know what you're
  doing. The primary use is to override the wpilib version when
  working with older robots that can't compile with the latest
  libraries.
  -->

  <!-- By default the system version of WPI is used -->
  <!-- <property name="version" value=""/> -->

  <!-- By default the system team number is used -->
  <!-- <property name="team-number" value=""/> -->

  <!-- By default the target is set to 10.TE.AM.2 -->
  <!-- <property name="target" value=""/> -->

  <!-- Any other property in build.properties can also be overridden. -->
  
  <property file="/wpilib/wpilib.properties"/>
  <property file="build.properties"/>
  <property file="/wpilib/java/${version}/ant/build.properties"/>
  
  <import file="/wpilib/java/current/ant/build.xml"/>

</project>

Last edited by Mr. Rick : 31-01-2015 at 16:11. Reason: formatting
 


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 01:47.

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