|
GettingStarted
All the information you need to compile and execute the project
Featured IntroductionThis page will give you all the steps required to compile and execute the project. Right now it only works under Windows and the document focuses on a Visual Studio + Eclipse environment. Porting the project to different platforms and environments should not be too difficult, and we're definitely interested in hosting a multi-platform version so you're welcome to contribute this! Initial set-upThe project has been tested under Visual Studio 2008 and Eclipse with PyDev. You can install PyDev using Eclipse update manager from http://pydev.org/updates. Eclipse and PyDev are only useful if you want to edit and debug the Python code. The project uses a mercurial repository. Under windows, you can use TortoiseHg. Once you have the above tools, set-up your workspace directory, say $workspace (The path shouldn't contain any spaces). Download and unzip lib.zip from the downloads section into $workspace\lib, make sure you use precisely that directory name. You can then clone the mercurial repository at https://cartwheel-3d.googlecode.com/hg/ into $workspace/cartwheel. For more information, here is an excellent mercurial tutorial. Important! The project uses the glew32.dll and glut32.dll found in $workspace\lib. You will therefore need to add that directory to your PATH environment variable, or copy the two dlls into C:\Windows\System32. Compiling the C++ codeOpen $workspace/cartwheel/simbicon.sln with Visual Studio. Right-click on the Core project and Set as StartUp Project. Then select the Release build in the drop-down box beside the play button and hit Ctrl+Shift+B to build the solution. Once built, you should can hit Ctrl-F5 to start the project without debugging. If you want to debug the C++ code, you can compile in Debug and hit F5. Writing and debugging the Python codeIf you want to edit and debug the Python code, including all the user interface code, you can use the Eclipse environment. In Eclipse, first set-up your python environment. Go to Window --> Preferences --> Pydev --> Interpreter - Python. Add a New... interpreter, name it Python26 and select $workspace\lib\Python26\python.exe. To import the PyDev project select File --> Import then General --> Existing Projects into Workspace. As the root directory, select $workspace (not $workspace\cartwheel), make sure you check only the simbicon project, and hit Finish. Now click the drop-down arrow beside the play button and select BasicEditor Release. To debug the python code, select BasicEditor Debug from the debug drop-down. This will only work if you compiled the debug version of the C++ code. NOTES FROM SUCCESSFUL COMPILE W/ VS2010EXPRESS MORE NOTES and info related to editing SNMApp.py and implementing OSC to send joint information to Blender3D |
Might be worth adding that the pre-build step seems to require that there aren't any spaces in the path.
Unfortunately, even with that, I get this error when running:
Traceback (most recent call last):
UnboundLocalError?: local variable 'mod' referenced before assignment(not familiar with python, unfortunately)
I remember getting a similar error whn the project was unable to find glew32.dll or glut32.dll. You may want to double check that they are in your path.
I debugged the Python code following the steps of the "Writing and debugging the Python code".Unfortunately,I got this error when running:" Could not get project: simbicon "
I have the same problem as rowlhouse.
UnboundLocalError??: local variable 'mod' referenced before assignment.
Any idea of fixing this problem?
The previous problem of "UnboundLocalError???: local variable 'mod' referenced before assignment. " was fixed by adding the location of "glew32.dll" to the PATH environment variable.
One more problem:
Traceback (most recent call last):
ImportError?: No module named Data.RigidBodies?.FlatGround?I was unable to run the program using VS Express 2010. It couldn't find the Core.dll
WooHoo?! Finally got it compiled and the UI running. I'll post some instructions later after I play with it. This is an amazing piece of software and I thank you! Any plans for further documentation or development?
Glad you like it! Extra documentation would be much welcome. I gave you write access to the wiki so you can edit it right there.
Some contributors have expressed their interest in providing a Linux version. Personally, even though I think it is a very exciting project, I just don't have much time for it now.
Here is a link to some notes I made on successfully compiling cartwheel-3d on VS2010Express/Eclipse/PyDev?
COMPILING NOTES
I am very exciting when I found this page after reading the project paper of SIGGRAPH. But after i download the Solution Package, some problem come out. Until now, there is still one problems i can't conquer it. When I run the project with VC2008 successfully, the command list in PYTHON.EXE point out that "ImportError?" with Module of "GLUtils" I can't figure out it. Could anyone give me help. APPRECIATION!!!
I just followed the instuction. However, python.exe in \lib\python26 makes error. Somebody helps me?
Does this instruction work at Windows7?