![]() |
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. |
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.
|
Re: Rebuilding the WPILib?
Quote:
|
Re: Rebuilding the WPILib?
If i may ask, where can i find the sources to the WPIlib?
|
Re: Rebuilding the WPILib?
c:\WindRiver\WPILib\WPILibC++Source20110106rev2242 .zip
|
Re: Rebuilding the WPILib?
Quote:
I think the question may have been about where to find the sources if you haven't downloaded them. |
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.
|
Re: Rebuilding the WPILib?
Quote:
Back to the original task at hand - maybe Joe Hershberger could shed some light? |
Re: Rebuilding the WPILib?
Quote:
Build like any other... right click on the project and select Build Project. -Joe |
Re: Rebuilding the WPILib?
Quote:
-Joe |
Re: Rebuilding the WPILib?
Quote:
|
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! |
Re: Rebuilding the WPILib?
Try deleting the build output dir and building again.
|
Re: Rebuilding the WPILib?
1 Attachment(s)
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...
|
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. |
| All times are GMT -5. The time now is 13:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi