Go to Post Too many hours of robotics and too little sleep causes me to forget things.... - AdamHeard [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 21-01-2013, 19:55
ScottMo ScottMo is offline
Lead Programming
FRC #0830 (The Rat Pack)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Ann Arbor, Michigan
Posts: 2
ScottMo is an unknown quantity at this point
Trouble with WindRiver/WPILib

So after getting WindRive 3.3.1 and the newest update of WPILib installed on my Windows 8 laptop and trying to write some code, I find that anything I write fails with bizarre errors in the WPILib files. For example, when I try to build a project consisting of a single .cpp file whose only line of code is
Code:
#include "WPILib.h"
the errors I get include
Code:
"C:/WindRiver/vxworks-6.3/target/h/WPILib/Vision/AxisCamera.h", line 12: catastrophic error (etoa:4005): 
          could not open source file "sockLib.h"
  #include <sockLib.h> 
                       ^
"C:/WindRiver/vxworks-6.3/target/h/WPILib/networktables2/util/IllegalStateException.h", line 17: warning (etoa:4997): 
          function "std::exception::what() const" is hidden by
          "IllegalStateException::what" -- virtual function override intended?
  	const char* what(){return message.c_str();};
  	            ^
"C:/WindRiver/vxworks-6.3/target/h/WPILib/ChipObject/tSystemInterface.h", line 17: warning (etoa:4815): 
          type qualifier on return type is meaningless
     virtual const uint32_t * const getExpectedFPGASignature()=0;
and many other equally cryptic errors and warnings, followed by the standard
Code:
1 catastrophic error detected in the compilation of "C:/WindRiver/workspace/TestProject/Test.cpp".
Compilation terminated.
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [TestProject_partialImage/Debug/Objects/TestProject/Test.o] Error 1
Build Failed in Project 'TestProject' (Process Exit Value was 2):   2013-01-21 19:34:48   (Elapsed Time: 00:04)
I've tried re-running the WPILib update, starting a new project in a new workspace, running the program in Windows 7 and googling the error messages in hope of a revelation, with no success. None of these weird errors are showing up in the standard C libraries. I have no idea what the problem is, and neither do any other programmers or mentors. If any of you guys have any inkling as to how I could fix this, help is greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2013, 21:47
xraymypanda's Avatar
xraymypanda xraymypanda is offline
Cowboy programmer
AKA: Chris M
FRC #0599 (RoboDox)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Granada Hills,CA
Posts: 82
xraymypanda has a spectacular aura aboutxraymypanda has a spectacular aura about
Re: Trouble with WindRiver/WPILib

Have you tried opening one of the sample projects and compiling it? My first thought is that your project does not include any of the libraries necessary and that writing '#include "WPILib.h" 'is giving you the error. Try compiling a sample project, if the problem persists then you may want to try another computer?
__________________

2011: Head Scout
2012: (figure)Head Programmer
2013: Head Programmer, Chief Strategist, Outreach Executive, and Driver
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2013, 10:22
GrimmReaper's Avatar
GrimmReaper GrimmReaper is offline
Registered User
FRC #2046 (Bear Metal)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Maple Valley, WA
Posts: 24
GrimmReaper is on a distinguished road
Re: Trouble with WindRiver/WPILib

well in the sample i see one error and a couple of warnings. So just looking at the error it's complaining that it can't load socklib.h. A quick search in C:\WindRiver\vxworks-6.3\target\h finds socklib.h in the directory C:\WindRiver\vxworks-6.3\target\h\wrn\coreip so i will hazard a guess that you do not have that path included in your robot project.

Screenshot below is an example of the paths included on a recent project created on my machine. if you right click the project, click properties, click build properties and go to the paths tab - does yours match?

As another person suggested, if you create a new example project you'll probably get all of that setup for you in the project.

Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2013, 18:30
ScottMo ScottMo is offline
Lead Programming
FRC #0830 (The Rat Pack)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Ann Arbor, Michigan
Posts: 2
ScottMo is an unknown quantity at this point
Works now

I'm still not entirely sure what was going on, but I added WPILib to my system path and rebooted and things seem to work now, so I'm not going to question it.

EDIT: OK, for the benefit of anyone with the same problem, what actually happened was that redirection directory (which I actually don't know what exactly that is) was defaulted to PPC32diab, when apparently it needed to be PPC32gnu. Switching it to the right setting instantly fixed everything.

Last edited by ScottMo : 23-01-2013 at 18:59.
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:08.

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