Go to Post Some clever fellow a few years back made a little scooter based on this principal and made so much on the idea he can afford the finest denim in the land. - phrontist [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-02-2009, 22:30
Shira Shira is offline
Registered User
FRC #1836
Team Role: College Student
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Los Angeles
Posts: 30
Shira is an unknown quantity at this point
Windriver: include paths and new build targets

I'm having trouble using WindRiver. I want to start figuring out how to implement my ideas for the code but I keep getting hung up on setting up my project in WindRiver.

So far:
I made a new project once and I tried to include WPI.h. I added the right include path but the compiler gave an error saying it couldn't open WPI.h.
At that point I just decided to use the project DefaultRobot and edit the .cpp file there.

But with DefaultRobot I could never find the .out file. I tried adding new build targets but none showed up anywhere at all (I searched the whole computer).

So now I'm just editing a project that I know had all the right include files and a build target already. That works fine for now I guess, but explanations would still be nice.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2009, 22:54
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
  #3   Spotlight this post!  
Unread 02-02-2009, 23:18
Shira Shira is offline
Registered User
FRC #1836
Team Role: College Student
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Los Angeles
Posts: 30
Shira is an unknown quantity at this point
Re: Windriver: include paths and new build targets

Thanks. I haven't tried that yet but I'll do that during tomorrow's team meeting.

Also, yeah, that was a typo in my post. My include statement was for WPILib.h, not WPI.h
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Labview Dashboard and Windriver Example Help sircedric4 Programming 7 25-02-2009 01:58
New WindRiver Update Pancake C/C++ 5 27-01-2009 15:31
Need help in c++ and windriver jkjohnson C/C++ 3 13-01-2009 18:50
Build/Mechanical teams after build and integration Bomberofdoom General Forum 1 02-02-2008 13:45
UTC site updated to include tons of statistics and specifics archiver 2001 8 24-06-2002 01:39


All times are GMT -5. The time now is 10:06.

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