Go to Post Why assume a full trophy case and spreading the message of FIRST (mentoring rookies) are mutually exclusive? Team 16 supported 6 rookies this season and earned 5 banners - I am equally proud of both. - Meredith Novak [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


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


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

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