View Single Post
  #2   Spotlight this post!  
Unread 02-02-2009, 10:54 PM
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Windriver: include paths and new build targets

If memory serves me correctly, this is what I did:
  1. Create a new Project using File->New->VxWorks Downloadable Kernel Module.
  2. Enter a name for the project and select Create project in workspace (default). Click Next a couple times, using defaults, until reaching Build Specs.
  3. Enable PPC603gnu, uncheck the other options. Click Finish.
  4. In the Project Explorer, right-click on the new project and select Properties.
  5. Select Build Properties, then the Build Paths tab. Click Add and and enter a new include path: $(WIND_BASE)/target/h/WPIlib
  6. Select the Libraries tab. Click Add and enter $(WIND_BASE)/target/lib/WPILib.a.
  7. Add your own files to the project, and edit as normal.

The .out file should be located at $(WIND_BASE)\workspace\<ProjectName>\PPC603gnu\<Pr ojectName>\Debug\<ProjectName>.out. The downloader should be configured to use this file. That can be done in Window->Preferences->FIRST Downloader.

Also, note that you need to include WPILib.h, not WPI.h. I'm not sure if this was just a mistake in your post or not.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote