Go to Post There are so many creative and brilliant minds out there that build wonderful inventions and machines---surely we can be equally creative and open minded ... - Tonya Scott 476 [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 07-01-2012, 23:25
grantf's Avatar
grantf grantf is offline
Software Engineering Mentor
FRC #4061 (SciBorgs)
Team Role: Engineer
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Pullman, WA
Posts: 16
grantf has a spectacular aura aboutgrantf has a spectacular aura about
Cannot Compile SimpleRobot Example - Missing WPILib.a

Hi Folks,

I am having great difficulty getting the WindRiver Workbench software working. First, I will describe the symptom I am seeing, and then I will outline the steps I took to get there. If anyone has a potential solution, please share it.

The Symptom
When building any of the FRC Robot Template projects (SimpleRobot and CommandBasedRobot, both with no changes), I get the following error in the Build Console:
Code:
nmppc: C:/WindRiver/vxworks-6.3/target/lib/WPILib.a': No such file
ccppc: C:/WindRiver/vxworks-6.3/target/lib/WPILib.a: No such file or directory
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [SimpleTemplate/Debug/SimpleTemplate.out] Error 1
Build Failed in Project 'SimpleTemplate' (Process Exit Value was 2):   2012-01-07 22:22:20   (Elapsed Time: 00:01)
The Steps
  1. Install the FRC Tools from the 2012 National Instruments Install USB Drive (the plastic flash drive in the business-card).
  2. Install WindRiver 3.0, according to all the directions outlined in the FIRST_Robotics_Competition_2012_README_FIRST.pdf document contained in the root of the WindRiver Installation disk. The install locaion was set to C:\WindRiver as recommended in the installation instructions.
  3. Since I am running Windows 7, 64-bit, I installed the WindRiver Workbench 3.3.1 software. I made sure to NOT LAUNCH the 3.0 version by un-checking the two checkboxes in the final window of the first installation. The Second disk installation proceeded successfully.
  4. Next, I installed the WPI updates from firstforge: http://firstforge.wpi.edu/sf/frs/do/...c_update_v2978. This installer did not provide any feedback as to the outcome.
  5. Next, I installed the LabView Utilities update from here: http://joule.ni.com/nidu/cds/view/p/id/2262
  6. Finally, I launched WindRiver (3.3), opened the SimpleRobot project, and then selected Project -> Build Project and obtained the error I detailed above.

The Investigation So Far...
Since the compiler was trying to find WPILib.a and couldn't, I tried to look for it myself. I searched the entire contents of the C:\ drive and WPILib.a is no where to be found. I would have expected one of the aforementioned software installations to provide this library.

What's more, the WPI header files ARE PRESENT in the expected location. For example, this file (among many others) exists on my machine:
/cygdrive/c/WindRiver/vxworks-6.3/target/h/WPILib/RobotBase.h

Some Questions...
  1. Is the WPI Release missing the 2012 WPILib.a?
  2. Is anyone having this problem on Windows XP or Vista?

Thanks in advance for any help you can provide!
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2012, 00:24
pspeer's Avatar
pspeer pspeer is offline
Programming / Electronics
FRC #1730 (TeamDriven)
Team Role: Engineer
 
Join Date: Mar 2007
Rookie Year: 2006
Location: Lee's Summit, MO
Posts: 9
pspeer is an unknown quantity at this point
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

We are also having this problem. From the looks of things, we've followed the same procedure with the same result. We'll keep you posted if we find a solution.

Build Error:
nmppc: 'C:/WindRiver/vxworks-6.3/target/lib/WPILib.a': No such file
Reply With Quote
  #3   Spotlight this post!  
Unread 08-01-2012, 00:35
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

I am also having the same issue. I created a similar thread here in the C++ development thread.
__________________
Attending: MN Duluth Regional
Reply With Quote
  #4   Spotlight this post!  
Unread 08-01-2012, 00:35
pspeer's Avatar
pspeer pspeer is offline
Programming / Electronics
FRC #1730 (TeamDriven)
Team Role: Engineer
 
Join Date: Mar 2007
Rookie Year: 2006
Location: Lee's Summit, MO
Posts: 9
pspeer is an unknown quantity at this point
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

We were able to fix this problem.. The simple solution is to find a copy WPILib.a from last season and paste it into the folder "C:\WindRiver\vxworks-6.3\target\lib."

I've attached our WPILib.a file for your convenience.

Good luck.

It looks like the installer is simply missing this file. My guess is we'll be seeing another update once someone discovers this issue. Most teams will be installing from scratch so a large number of teams should encounter this problem if they are following the directions.
Attached Files
File Type: zip WPILib.zip (2.48 MB, 44 views)
Reply With Quote
  #5   Spotlight this post!  
Unread 08-01-2012, 00:52
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Are you sure that last year's WPILib.a works with this years software?

edit: Guess I just better test this Monday
__________________
Attending: MN Duluth Regional

Last edited by theprgramerdude : 08-01-2012 at 01:22.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-01-2012, 01:43
grantf's Avatar
grantf grantf is offline
Software Engineering Mentor
FRC #4061 (SciBorgs)
Team Role: Engineer
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Pullman, WA
Posts: 16
grantf has a spectacular aura aboutgrantf has a spectacular aura about
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Quote:
Originally Posted by pspeer
We are also having this problem. From the looks of things, we've followed the same procedure with the same result. We'll keep you posted if we find a solution.
Sorry to hear you're having this issue too... but it's good to know I'm not alone in this!

Quote:
Originally Posted by pspeer
I've attached our WPILib.a file for your convenience.
Thanks a lot for the upload, this may bridge a gap in the immediate short term. However, this is not a long-term solution because...

Quote:
Originally Posted by theprgramerdude
Are you sure that last year's WPILib.a works with this years software?
If you are going to use the CommandBasedRobot, then last year's WPILib will certainly not work since that class was not even present back then - the problem we are currently having will change from "cannot find WPILib.a" to "linker failure - whole bunches of symbols not found". The CommandBasedRobot is but one of a list of changes that have happened in the WPILib since last year. Note: I am basing this last comment on the change-logs on the WPI first-forge page.

Thanks for the feedback, and hopefully WPI releases an update pronto!
Reply With Quote
  #7   Spotlight this post!  
Unread 08-01-2012, 02:34
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Quote:
Originally Posted by grantf View Post
Sorry to hear you're having this issue too... but it's good to know I'm not alone in this!

Thanks a lot for the upload, this may bridge a gap in the immediate short term. However, this is not a long-term solution because...

If you are going to use the CommandBasedRobot, then last year's WPILib will certainly not work since that class was not even present back then - the problem we are currently having will change from "cannot find WPILib.a" to "linker failure - whole bunches of symbols not found". The CommandBasedRobot is but one of a list of changes that have happened in the WPILib since last year. Note: I am basing this last comment on the change-logs on the WPI first-forge page.

Thanks for the feedback, and hopefully WPI releases an update pronto!
Thanks for the info. I wonder if Java has these issues as well; since the languages are the exact same, and the SmartDashboard/Laptop based vision are based on it, maybe it's this year we switch over...
__________________
Attending: MN Duluth Regional
Reply With Quote
  #8   Spotlight this post!  
Unread 08-01-2012, 03:23
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Quote:
Originally Posted by theprgramerdude View Post
Are you sure that last year's WPILib.a works with this years software?
It most certainly will not. The update will be repaired ASAP.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-01-2012, 03:40
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Quote:
Originally Posted by grantf View Post
Thanks for the feedback, and hopefully WPI releases an update pronto!
Until the release is fixed, here is the correct WPILib.a that should be in the release to get you through the short term.

-Joe
Attached Files
File Type: zip WPILib.2978.zip (3.21 MB, 32 views)
Reply With Quote
  #10   Spotlight this post!  
Unread 08-01-2012, 07:57
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Quote:
Originally Posted by jhersh View Post
Until the release is fixed, here is the correct WPILib.a that should be in the release to get you through the short term.

-Joe
Somehow we ended up bad installer. There is a new one posted on FIRSTForge now that has the missing file. Everything else should be the same.

Sorry about the mistake.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #11   Spotlight this post!  
Unread 08-01-2012, 11:17
grantf's Avatar
grantf grantf is offline
Software Engineering Mentor
FRC #4061 (SciBorgs)
Team Role: Engineer
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Pullman, WA
Posts: 16
grantf has a spectacular aura aboutgrantf has a spectacular aura about
Re: Cannot Compile SimpleRobot Example - Missing WPILib.a

Quote:
Originally Posted by jhersh
Somehow we ended up bad installer. There is a new one posted on FIRSTForge now that has the missing file. Everything else should be the same.
This latest update solves this problem Thanks for getting this turned around so fast.
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 11:50.

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