Go to Post If Teflon-coated pans have a no-stick surface, then how to they get the Teflon to stick to the pans? - dlavery [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 14-01-2011, 15:48
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Rebuilding the WPILib?

So I'd like to keep my own development copy of the C++ WPILib, but I'm having some trouble getting it to build as a project in WindRiver. I gather the following needs to be done

1) Download source (done)
2) Import into WindRiver (done)
3) Build...?
4) Run the update script in %root%/Scripts

When I attempt to build the project, nothing happens.
When I attempt to open a workbench shell and use `make` to build the project, no errors occur but nothing happens.

At this point I'm tempted to just make my own Rakefile (ruby version of make) that uses the ccppc compiler and linked, but I'm wondering what the 'correct' way of building the WPI library is.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2011, 19:47
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 674
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Rebuilding the WPILib?

Why do you need to rebuild WPILib unless you want to modify it? I keep my own copy of the WPILib sources too but for reference only. I did find some scenarios that I need to change the lib but I managed to do it without changing their sources. I either create a new object that inherits the WPILib object and overrides what I need to modify or I just make a copy of the source file and make it part of my project.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2011, 19:52
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Rebuilding the WPILib?

Quote:
Originally Posted by mikets View Post
Why do you need to rebuild WPILib unless you want to modify it?
Sharing patches with the community is a bonus in my opinion. And why not? This should be something more than possible.
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2011, 07:29
DjMaddius's Avatar
DjMaddius DjMaddius is offline
Registered User
AKA: Matt Smith
FRC #2620 (Southgate Titans)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Southgate, Mi
Posts: 161
DjMaddius is an unknown quantity at this point
Re: Rebuilding the WPILib?

If i may ask, where can i find the sources to the WPIlib?
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2011, 08:44
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 674
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Rebuilding the WPILib?

c:\WindRiver\WPILib\WPILibC++Source20110106rev2242 .zip
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 15-01-2011, 09:00
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Rebuilding the WPILib?

Quote:
Originally Posted by mikets View Post
c:\WindRiver\WPILib\WPILibC++Source20110106rev2242 .zip
Isn't that only helpful if one has already downloaded the sources?
I think the question may have been about where to find the sources if you haven't downloaded them.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote
  #7   Spotlight this post!  
Unread 15-01-2011, 11:41
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 674
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Rebuilding the WPILib?

Hmm, I just found it in that directory. So I am assuming it either came with the WindRiver software installation or the WorkBenchUpdate that I applied.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 15-01-2011, 12:27
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Rebuilding the WPILib?

Quote:
Originally Posted by mikets View Post
Hmm, I just found it in that directory. So I am assuming it either came with the WindRiver software installation or the WorkBenchUpdate that I applied.
It came with the workbench update for me. You can also find it on the WPILib project on FIRST Forge in the Subversion repo.

Back to the original task at hand - maybe Joe Hershberger could shed some light?
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2011, 01:54
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: Rebuilding the WPILib?

Quote:
Originally Posted by basicxman View Post
Back to the original task at hand - maybe Joe Hershberger could shed some light?
Extract the WPILib source to C:\WindRiver\workspace\WPILib. In Workbench, go to File>>Import. Select General>>Existing Projects Into Workspace and click Next. Next to the Select root directory: field, click Browse. Select the C:\WindRiver\workspace\ path. Check the WPILib project in the list box and click finish. The project should now be in Workbench with any other projects you have.

Build like any other... right click on the project and select Build Project.

-Joe
Reply With Quote
  #10   Spotlight this post!  
Unread 17-01-2011, 01:58
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: Rebuilding the WPILib?

Quote:
Originally Posted by gvarndell View Post
Isn't that only helpful if one has already downloaded the sources?
I think the question may have been about where to find the sources if you haven't downloaded them.
New this year, the corresponding WPILib source code and reference documentation is installed with each update. You no longer have to hunt for it online only to find that we forgot to post it. You also won't find out-of-date reference doxygen help installed with the update. Each reference help file now includes the update revision number in the title page so you know which release it is documenting.

-Joe
Reply With Quote
  #11   Spotlight this post!  
Unread 17-01-2011, 11:31
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Rebuilding the WPILib?

Quote:
Originally Posted by jhersh View Post
Extract the WPILib source to C:\WindRiver\workspace\WPILib. In Workbench, go to File>>Import. Select General>>Existing Projects Into Workspace and click Next. Next to the Select root directory: field, click Browse. Select the C:\WindRiver\workspace\ path. Check the WPILib project in the list box and click finish. The project should now be in Workbench with any other projects you have.

Build like any other... right click on the project and select Build Project.

-Joe
Thank you, interesting how it didn't work even when I changed the paths in the Makefile.
Reply With Quote
  #12   Spotlight this post!  
Unread 20-01-2011, 12:02
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Rebuilding the WPILib?

Joe,

I followed your process for importing the project and it seemed to go smoothly however when I build the project no WPILib.a is produced. I can see WPILib.a as a build target for PPC603gnu and the build console is indicating that it is building the target but the WPILib.a doesn't appear under C:\windriver\workspace\WPILib\PPC603gnu. There is a Makefile in this directory. Please help if you can. Here is the build console output:

Build Started in Project 'WPILib': 2011-01-20 11:40:41
Generation of makefiles started.
Generation of makefiles finished (Elapsed Time: 00:02).
Platform: Wind River VxWorks 6.3
Command: make --no-print-directory BUILD_SPEC=PPC603gnu DEBUG_MODE=1 TRACE=1 clean all
Working Directory: C:/windriver/workspace/WPILib/PPC603gnu
make: removing targets and objects of C:/windriver/workspace/WPILib/PPC603gnu
make: built targets of C:/windriver/workspace/WPILib/PPC603gnu
Build Finished in Project 'WPILib': 2011-01-20 11:40:43 (Elapsed Time: 00:02)

Looking at this output myself now I guess it looks like it is only running a clean?? Do i need to add a build target to make it "make all" somehow?

Thanks!
Reply With Quote
  #13   Spotlight this post!  
Unread 20-01-2011, 13:04
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: Rebuilding the WPILib?

Try deleting the build output dir and building again.
Reply With Quote
  #14   Spotlight this post!  
Unread 20-01-2011, 14:07
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Rebuilding the WPILib?

Thanks for your reply. I deleted this directory C:\windriver\workspace\WPILib\PPC603gnu, right-clicked the project in the workbench and selected Build Project. The output dir was created again with the Makefile in it but no binary. I attached the Makefile if that helps...
Attached Files
File Type: zip Makefile.zip (5.5 KB, 4 views)
Reply With Quote
  #15   Spotlight this post!  
Unread 20-01-2011, 17:16
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Rebuilding the WPILib?

Solved. After a long day of troubleshooting I closed the workbench and re-opened it and whalah! it built. hahahahhahahahaha....not funny.

Anyway I did go through the process of importing the project trying to build, not building, closing the workbench and re-opening to fix it one more time to confirm that this does happen every time. Not sure if it just my machine but it probably would happen to others.

One more question. When building I see an error for each file that is compiled, "process_begin: CreateProcess((null), svnversion -n .., ...) failed." Its only a nuisance, the lib still gets built, but if there is an easy way to change a setting or something it would be nice.
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:38.

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