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: classRobotDemo’ does not have any field named myRobot' C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:17: error: classRobotDemo’ 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 functionvoid 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?

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 arget\h\WPILib . If they aren’t there… then that’s your problem.

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

If you are building with the WPILib source, you will need to follow all the instructions here:
http://wpilib.screenstepslive.com/s/3120/m/7913/l/84341-building-with-the-wpilib-source-code
Looks like you might have some issues with the project references.

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.

You could also try using UCPP to build on OSX directly.