jerrym | f157933 | 2013-02-07 01:56:28 +0000 | [diff] [blame] | 1 | How to build a custom WPILib in Windriver Workbench
|
| 2 | ---------------------------------------------------
|
| 3 |
|
| 4 | Make a WR WB project "WPILib" to build this copy of WPILib:
|
| 5 | New "Downloadable Kernel Module" project (*not* a Shared Libary project).
|
| 6 | You can create the project in the workspace directory with content at "external location", that is, the directory where you put the WPILib source code.
|
| 7 | Build Specs for PPC603gnu only; debug mode.
|
| 8 | Build tool: Librarian (*not* Linker); Pass the build target to the next level. [Does the "pass" checkbox matter?]
|
| 9 |
|
| 10 | Project Properties > C/C++ General > Indexer > Paths and Symbols > Sources/Filters
|
| 11 | Set a filter to exclude PPC603gnu/, .svn/, .settings/ . [Needed?]
|
| 12 |
|
| 13 | [Irrelevant. CInterfaces is absent in 2013.] Under the Project Explorer view's WPILib project, expand +Build Targets (PPC603gnu - debug), +WPILib (WPILib.a), +WPILib - recursive, +WPILib; select CInterfaces, hit Delete, and confirm excluding the CInterfaces/ directory from the build.
|
| 14 | [With these steps, WR WB won't fail trying to build CInterfaces. For some reason, setting Project Properties > C/C++ General > Paths and Symbols > Sources/Filters exclusion filters won't do it.]
|
| 15 |
|
| 16 | Approach 1:
|
| 17 | Start a build, let it analyze the needed include paths, add the WPILib/ source directory, and move that up to the top of the list.
|
| 18 | It should now say "There are 0 unresolved include directives".
|
| 19 | Proceed.
|
| 20 | Approach 2:
|
| 21 | Select WPILib project > Project Properties > Build Properties > Build Paths
|
| 22 | Add the WPILib/ source directory to the include paths and move that up to the first entry.
|
| 23 | Note: The other include path entries should be -I$(WIND_BASE)/target/h and -I$(WIND_BASE)/target/h/wrn/coreip
|
| 24 | Question: Is there a way to do this using a $variable rather than a hard-wired directory path so you could check in and share the project files?
|
| 25 |
|
| 26 | Build the Project. (If WB asks about generating include files, you can do it or skip it.)
|