Go to Post I think the winning robot will be the same as every other year, a robot that is excellent at ONE thing. - Kel D [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-03-2013, 14:07
Anyun Anyun is offline
Co-Captain Team 1308
FRC #1308 (Wildcats)
Team Role: Programmer
 
Join Date: Aug 2012
Rookie Year: 2009
Location: Cleveland
Posts: 13
Anyun is an unknown quantity at this point
Pre-Competition Compiling Issue

Hi guys,

Up until recently I've been using the desktop in our lab to write, compile and deploy code. However, we realized that we will probably need a portable coding station so we installed a Bootcamp partition on my laptop to install Windriver and all the driver software. I imported our project onto the partition, and as a test I compiled it, and received tons of errors. I tried to compile a sample project (the simple robot template), and that didn't work either. Anyone have any ideas?

For reference, the errors I got:

process_begin: CreateProcess((null), svnversion -n .., ...) failed.
This happened while building WPILib, which is of course set as a reference

Then we got
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:1:20: WPILib.h: No such file or directory
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:10: error: expected class-name before '{' token
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:11: error: `RobotDrive' does not name a type
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:12: error: `Joystick' does not name a type
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp: In constructor `RobotDemo::RobotDemo()':
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:16: error: class `RobotDemo' does not have any field named `myRobot'
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:17: error: class `RobotDemo' does not have any field named `stick'
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:19: error: `myRobot' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:19: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp: In member function `void RobotDemo::Autonomous()':
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:27: error: `myRobot' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:29: error: `Wait' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp: In member function `void RobotDemo::OperatorControl()':
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:38: error: `myRobot' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:39: error: `IsOperatorControl' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:41: error: `stick' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:42: error: `Wait' undeclared (first use this function)
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp: At global scope:
C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:54: error: expected constructor, destructor, or type conversion before ';' token
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [SimpleTemplate_partialImage/Debug/Objects/SimpleTemplate/MyRobot.o] Error 1
Build Failed in Project 'SimpleTemplate' (Process Exit Value was 2): 2013-03-18 14:00:41 (Elapsed Time: 00:00)


I am seriously lost, anyone?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2013, 14:09
virtuald's Avatar
virtuald virtuald is online now
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,067
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Pre-Competition Compiling Issue

Are you sure that you installed the Workbench update for WPILib correctly (you can't just install WindRiver, you need the update too)? It should have placed the WPILib files at C:\WindRiver\vxworks-6.3\target\h\WPILib . If they aren't there.. then that's your problem.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #3   Spotlight this post!  
Unread 19-03-2013, 14:42
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: Pre-Competition Compiling Issue

Quote:
This happened while building WPILib, which is of course set as a reference
You rebuilt WPILib? Did you put it in the right directory? That would definitely be your problem.

Alex Brinister
Reply With Quote
  #4   Spotlight this post!  
Unread 19-03-2013, 17:40
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Pre-Competition Compiling Issue

If you are building with the WPILib source, you will need to follow all the instructions here:
http://wpilib.screenstepslive.com/s/...ib-source-code
Looks like you might have some issues with the project references.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-03-2013, 23:20
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 578
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Pre-Competition Compiling Issue

To be clear, it shouldn't be necessary to rebuild WPILib in order to install the update, unless you are for some reason modifying it.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-03-2013, 13:48
wlmeng11's Avatar
wlmeng11 wlmeng11 is offline
Registered User
FRC #0008 (Paly Vikings)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Palo Alto
Posts: 24
wlmeng11 will become famous soon enough
You could also try using UCPP to build on OSX directly.
Reply With Quote
Reply


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 14:36.

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