View Single Post
  #1   Spotlight this post!  
Unread 28-01-2011, 15:47
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Building RobotPy from git repo

Hello. I worked with FIRST programming a few years ago, but Wind River is new to me. I'd really like to get the RobotPy system going, as I believe it will make development much quicker and easier.

I'm trying to build from the git repo (maybe you will say that I should just use the built distribution, and that's fair, but I'd like to get this working from the source.)

I found this in the README

"""
To build the interpreter: open the RobotPy directory as a Wind River project.
Build the project and download the code to your robot. Now you have the
Python interpreter on the robot.
"""

Here is what I did:

Start Wind River Workbench
Create a new folder (on Desktop) for workspace and select it
When Workbench loads, click the X on the only tab to close the welcome screen
Click File -> New Wind River Workbench Project...
Set Target Operating System to Wind River VxWorks 6.3 and click Next
Set Build Type to Downloadable Kernel Module
Click Create project in workspace with content at external location
Browse to the git repository and select ...gitrepo/RobotPy/RobotPy
Click Finish

In the Wind River Workbench, top left panel...
Right click on the project name and choose Build Project
Choose Generate Includes and click Next
Leave everything else at default settings
Click Next and Finish


(Please tell me if any of that is wrong. I did not find a simpler way to "open the RobotPy directory as a Wind River project.")


The build proceeds for a while, then stops with an error:

building pyFIRST_partialImage/Debug/Objects/pyFIRST/RobotPy/Python/Modules/posixmodule.o
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 3977: error (dcc:1551): argument type does not match prototype
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 4949: warning (dcc:1481): function close not declared
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 4990: warning (dcc:1481): function dup not declared
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 5011: warning (dcc:1481): function dup2 not declared
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 5096: warning (dcc:1481): function read not declared
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 5124: warning (dcc:1481): function write not declared
"C:/Users/Developer/Desktop/FIRST_2011/python/gitrepo/RobotPy/RobotPy/Python/Modules/posixmodule.c", line 5436: warning (dcc:1481): function putenv not declared
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [pyFIRST_partialImage/Debug/Objects/pyFIRST/RobotPy/Python/Modules/posixmodule.o] Error 1
Build Failed in Project 'pyFIRST' (Process Exit Value was 2): 2011-01-28 15:31:48 (Elapsed Time: 00:37)
Reply With Quote