Go to Post I don't need sleep, just more Mountain Dew. Oh, and a muffin. - hallk [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 19-12-2012, 15:19
ssong1995 ssong1995 is offline
Registered User
FRC #1403
 
Join Date: Oct 2011
Location: Belle Mead
Posts: 12
ssong1995 is an unknown quantity at this point
WPILib.h missing

Hi, our team has changed from LABView to C++ this year and have just started using Wind River - our apologies if the question seems silly. Where is the WPILib.h file located? Apparently it comes with installatiom but we could not find the actual file and cannot compile our code as a result. Any help is appreciated, thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-12-2012, 18:33
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: WPILib.h missing

Have you installed the WPILib update (from FIRST Forge)? If not, you don't have the WPILib headers installed

If you have installed that, then how did you create your project? Was it as a new "vxWorks Downloadable Kernel Module Project", or did you take one of the samples and rename it? If the former, then the project doesn't have the proper include directories set, and thus can't find the files.

All of the header files can be found in C:\WindRiver\vxworks-6.3\target\h\WPILib
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"

Last edited by Radical Pi : 19-12-2012 at 18:33. Reason: forgot to close the URL tag
Reply With Quote
  #3   Spotlight this post!  
Unread 21-12-2012, 15:03
ssong1995 ssong1995 is offline
Registered User
FRC #1403
 
Join Date: Oct 2011
Location: Belle Mead
Posts: 12
ssong1995 is an unknown quantity at this point
Re: WPILib.h missing

Thanks! We found it, but we're having another problem. How do we udpate our new cRIO for C++? Measurement & Automation is for LABView but we cannot find the C++ equivalent, we changed our prefeences in the FRC Imaging Tool if that helps.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-12-2012, 17:13
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: WPILib.h missing

Assuming the cRIO had been set up for Labview before, make sure the imaging tool actually performed the necessary changes on the cRIO. If that's done, you need to tell Wind River where to find the cRIO, and what image to download. To do that, go to Window->Preferences->FIRST Downloader Preferences. Set your team number, and click browse to select where to find the binary file to download (make sure you've already built the project at least once via either Project->Build Project or the shortcut Ctrl-B Ctrl-P). Assuming a default install, the file should be something along the lines of "C:\WindRiver\workspace\MyRobot\PPC603gnu\CommandB asedRobotTemplate\Debug\CommandBasedRobotTemplate. out". Note that "MyRobot" and "CommandBasedRobotTemplate" may change depending on how your project is named and what template you used. Once that's been setup, hit OK to close the preferences. Now, whenever you build your project, hit FIRST->Deploy to download it to the cRIO, then reboot to load it.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
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 13:01.

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