|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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>
Code:
<project name="FRC Deployment" default="deploy"> Code:
<import file="${wpilib.ant.dir}/build.xml"/>
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|