|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
C++ deploy code missing
Hi we are unable to deploy code. The menu option is missing. We've reinstalled eclipse and all the plugins etc but nothing works at all. Does anyone know how we can get around this bug?
|
|
#2
|
||||
|
||||
|
Re: C++ deploy code missing
You deploy code by clicking the green play button (top left in image below) and selecting "WPILib C++ Deploy." Do you have that option?
Screenshot |
|
#3
|
|||
|
|||
|
Re: C++ deploy code missing
I will take a look and see if we have that option available.
|
|
#4
|
|||
|
|||
|
Re: C++ deploy code missing
OK, that menu option does exist. However it does nothing at all.
I have created a sample robot program from the supplied sample. We have made no edits to the sample cope at all. we picked, project, clean then, project build all. Then pressed green play button, selected WPILib C++ Deploy and..... Nothing at all......................................... (We are connected with the USB cable). Any suggestions how we can deploy any code to the robot? |
|
#5
|
||||
|
||||
|
Re: C++ deploy code missing
(connected over the network) you can scp the code to the robot, login and run it yourself, something like this...
I do it like this from Linux: scp FRCUserProgram lvuser@roborio1296.local:/home/lvuser ssh lvuser@roborio1296.local (on the robot) ./FRCUserProgram HTH |
|
#6
|
|||
|
|||
|
Re: C++ deploy code missing
Hi and thank you for the reply. Unfortunately I know nothing about Linux or scp. Are there any options within the new roborio web page? If the roborio has a webserver on it, can I upload the code like a web page instead? Would that be done using HTTP protocol?
Thanks |
|
#7
|
|||
|
|||
|
Re: C++ deploy code missing
I tried disabling wifi and wired lan and then I got the deploy option to do something. Unfortunatly the Roborio still doesn't work. The RSL is on solid, I assume this means there's no robot code. Anyway, I couldn't make the deploy option work again because it was no longer on the menus. I deleted all my robot code projects and created a new robot sample. I am now getting a brand new error and the deploy option refuses the work too. Here's the error I am getting now.
Info: Internal Builder is used for build arm-frc-linux-gnueabi-g++ -std=c++1y "-IC:\\Users\\Developer/wpilib/cpp/current/include“ ”-IC:\\Users\\Developer\\workspace\\Mecanum Drive\\src" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\Robot.o“ ”..\\src\\Robot.cpp" arm-frc-linux-gnueabi-g++ "-LC:\\Users\\Developer/wpilib/cpp/current/lib" -Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a -o FRCUserProgram "src\\Robot.o" -lwpi c:/frc/bin/../lib/gcc/arm-frc-linux-gnueabi/4.9.1/../../../../arm-frc-linux-gnueabi/bin/ld.exe: warning: libstdc++.so.6, needed by C:\Users\Developer/wpilib/cpp/current/lib\libFRC_NetworkCommunication.so.1.5.0, not found (try using -rpath or -rpath-link) 23:05:35 Build Finished (took 11s.170ms) Does anyone know hoe to use the rpath- or rpath-link functions? |
|
#8
|
||||
|
||||
|
Re: C++ deploy code missing
that is a warning, not an error
|
|
#9
|
|||
|
|||
|
Re: C++ deploy code missing
Are you getting anything in the Eclipse Console when you try to Deploy? Or does nothing happen at all? How about if you right click on the build.xml in the project and select Run As->Ant Build (I think that's what it's called, this computer doesn't have Eclipse to double check).
|
|
#10
|
||||
|
||||
|
Re: C++ deploy code missing
Try connecting through the network - the first step (after imaging the roborio, did you do that?) is to see if you can ping roborioXXXX.local (XXXX is the team number). If you can do that then deployment from Eclipse should work. Can you post what is printing in the console window (one of the tabbed views in the bottom center of the perspective) when you try to deploy.
I can't help much with the USB connection. We only did that once when we imaged the roborio. You have to connect it to a network eventually anyways - that is how you connect to the driver station. Try it on the network. HTH |
|
#11
|
|||
|
|||
|
Re: C++ deploy code missing
Our team is having a similar problem. we have been deploying from our team laptop for about a week now, everything was going fine. Last meeting however, something changed. When we tried to deploy I noticed that the normal option "WPILib C++ Deploy" had vanished. then after restarting eclipse it now says "WPILib Java Deploy" when clicked it does nothing. the plugins for WPILib java are not installed on this machine. The Ant build option does seem like its deploying (Ill be able to connect to the robot tomorrow.) I have the same problem on a second computer only this one has never populated a deploy option. Why is all this is happening, and is there a better "fix"?
Update: after using the "ant build" option on PC 2 eclipse ran a brief "installing cpp" command, then the build option populated. Trying to replicate on PC 1, so far no such luck. Last edited by Morgan Clemons : 04-02-2015 at 01:21. Reason: Update (2/4/15) |
|
#12
|
|||
|
|||
|
Re: C++ deploy code missing
Well after much trouble I think I have found some things that might help. We have found a series of quirks and tricks that are required for deployment to work. In order to help other teams get past these major problems, here's a list of the things you need to know. We learned these the hard way but we're glad to help any other team and save them from the hell we went through.
First of all, it's crucial that you do not have multiple channels active. What I mean by that is that when you plug in the USB cable you MUST disable the wired and wireless LAN adapters in your laptop. This is the ONLY way that Eclipse will not become hopelessly confused and remove the deploy menu option. Secondly, after you have deployed you MUST unplug the USB and then plug it back in again BEFORE you can deploy again, otherwise Eclipse throws an unrelated error which is very misleading. Thirdly, after you deploy code you MUST find the "restart robot code" button on the drivers station and press it. Otherwise the drivers station erroneously reports that there is NO ROBOT CODE on the roborio. Fourthly, don't expect the roborio to flash the RSL like the Crio did. There seems to be only 2 modes. ON SOLID or BLINKING. Neither of these modes seems to have anything to do with robot code or the readiness of the roborio at all. Finally, As I mentioned, whenever you deploy you MUST disable both wired and wireless LAN adapters so that the USB connection is the ONLY choice that Eclipse has available. Once you have deployed you must unplug the USB connector and enable your wireless adapter so that the drivers station can connect to the roborio. I find this very annoying and time consuming. We have NEVER been able to deploy using ethernet, wired or wireless at all so we stopped wasting our time trying to make it work. There are always challenges related to the setup and usage of the FRC IDE but this season seems to have magnified those challenges and made them a complete show stopper. Our team has lost 1 week of our build season due to these newly introduced problems. We've been unable to deploy any code and therefore unable to test anything. Is this supposed to be part of the challenge? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|