Go to Post After all, each day is fresh with no mistakes in it [yet]. - atomikitten [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2015, 17:45
VD3626 VD3626 is offline
Registered User
FRC #3626
 
Join Date: Jan 2015
Location: Texas
Posts: 6
VD3626 is an unknown quantity at this point
Errors when deploying code to robot

I am writing the code for my robot in C++. I tried to deploy the code to my robot by right-clicking the project and then going to Run As>WPILIB C++ deploy. I have been able to build the code before without getting any errors but when I deploy it I get an error in build.xml

Here is the file:
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=""/> -->

  <property file="${user.home}/wpilib/wpilib.properties"/>
  <property file="build.properties"/>
  <property file="${user.home}/wpilib/cpp/${version}/ant/build.properties"/>

  <import file="${wpilib.ant.dir}/build.xml"/>

</project>
The error is in line 3 and it says that "Default target deploy does not exist in this project", here is the line:
Code:
<project name="FRC Deployment" default="deploy">
There is also a warning in like 26 which says, "Cannot find /Users/victordusa/workspace/MyRobot/${wpilib.ant.dir}/build.xml imported from /Users/victordusa/workspace/MyRobot/build.xml", here is that line:
Code:
<import file="${wpilib.ant.dir}/build.xml"/>
Also when I try to deploy this is what I get in the console:
Buildfile: /Users/victordusa/workspace/MyRobot/build.xml

BUILD FAILED
/Users/victordusa/workspace/MyRobot/build.xml:26: Cannot find /Users/victordusa/workspace/MyRobot/${wpilib.ant.dir}/build.xml imported from /Users/victordusa/workspace/MyRobot/build.xml

Total time: 197 milliseconds

I have no idea what the problem is. Any help is appreciated.

Last edited by VD3626 : 12-01-2015 at 18:06. Reason: More information about the problem
  #2   Spotlight this post!  
Unread 12-01-2015, 18:08
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Errors when deploying code to robot

Try creating a new "dummy" project (you can delete it after creation) then try building your old project.
  #3   Spotlight this post!  
Unread 12-01-2015, 18:16
VD3626 VD3626 is offline
Registered User
FRC #3626
 
Join Date: Jan 2015
Location: Texas
Posts: 6
VD3626 is an unknown quantity at this point
Re: Errors when deploying code to robot

Creating a dummy project did not work, also I am curious about what is in the ${wpilib.ant.dir}/build.xml file. Could I just remove the line to fix part of the problem without cause more problems??
  #4   Spotlight this post!  
Unread 13-01-2015, 14:49
VD3626 VD3626 is offline
Registered User
FRC #3626
 
Join Date: Jan 2015
Location: Texas
Posts: 6
VD3626 is an unknown quantity at this point
Re: Errors when deploying code to robot

I've tried this on two computers one running osx one running windows 7 and both have the same problem.
  #5   Spotlight this post!  
Unread 03-02-2015, 17:54
gadzygadz gadzygadz is offline
Registered User
FRC #0272
 
Join Date: Feb 2015
Location: Lansdale PA
Posts: 1
gadzygadz is an unknown quantity at this point
Re: Errors when deploying code to robot

I am having this same problem. Mine happened when I brought code in from github and it just wont work now.

Last edited by gadzygadz : 03-02-2015 at 18:02.
  #6   Spotlight this post!  
Unread 05-02-2015, 17:52
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Re: Errors when deploying code to robot

We've had the same problem. We found that disabling the wired and wireless LAN adapters on the laptop and only using the USB cable makes the deploy option work.
Closed Thread


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 02:44.

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