Wind River Help

Hello,

I having been having issues building an “.out” file to download to the cRio. Before I get into to much detail about my issue, I’ll first state what I can do.

I have downloaded and followed sections 1-5 including benchmark testing and have been successful.
I have downloaded the WPI library and copied the files into the correct folder.
I have created a new “Example” project in Wind River (Simple Robot Template from the Kernel Module Sample wizard), built it and downloaded it to the cRio. I even changed some values in the programing to ensure it wasn’t the default code, so I know how to build “.out” files and download them to the cRio.
I have some background in C++ and I am comfortable with the language.

My issue:

I could simply use the example project, and manipulate it as needed to create a program for the robot, however, I would much prefer to be able to create my own project by extending classes. I have tried to create new projects and have been unsuccessful. I am not sure what the issue is. I’ve tried copying the code from the Simple Robot Template (MyRobot.cpp) into a new project, but this has not helped either. I may not be including the files properly, although I have downloaded and copied them into “C:\WindRiver\WPILib” as instructed.

Would someone be able to give (or link) me a step by step procedure to create a successful “.out” file? For convince, you could use the code from the Simple Robot Template (MyRobot.cpp).

Thank you

What project type are you creating in WindRiver? I was able to build a project from scratch but you need to start a VxWorks Downloadable Kernel project. Then add WPILib to your include and library paths.

How do you add WPILib to your include and library paths.

To add the paths right click on the project and choose Properties. From the tree list choose Build Properties. You add the include path on the Build Path tab. You then can add the library on the Libraries tab (I have mine pointing directly to WPILib.a). Make sure your active build spec is set to PPC603gnu.