Spidermonkey
From NESTFE Wiki
Contents |
[edit]
Setting up the Python-JavaScript Interpreter
- Follow the first part of the Development_Environment_Demo if you don't already have Python set up
[edit]
Linux
- Download
- spidermonkey
- python-spidermonkey
- Pyrex
- Pygame
- SDL
- SDL_image
- might not need rest
- PyXML
- DOMForm
- mxBase
- mxEperimental
- Untar everything
- Go into js/src and call make -f Makefile
- Copy the header files in js/src and js/src/platform to
- /usr/local/include/js (if you have root access)
- $LOCALPREFIX/include/js (if not)
- Copy libjs.so and libjs.a to
- /usr/local/lib (if you have root access)
- $LOCALPREFIX/lib (if not)
- Put the lib directory in your $PYTHONPATH
- And put it in your $LD_LIBRARY_PATH
- Copy the Pyrex directory to a convenient spot
- Put its path in your $PYTHONPATH
- Put its bin directory in your $PATH
- Go into the spidermonkey directory
- Edit setup.cfg to have include_dirs to point to the places you put the header and library files
- Run python setup.py install
- If you have root access you're done
- If you didn't put the libjs files in /usr/local/lib you will get an error
- Copy the whole gcc line and paste it into the command prompt
- Add -Llib_directory before -ljs
- Copy build/lib.platform/spidermonkey.so to the library directory
- You should now be able to import spidermonkey in python
- Go into the pygame directory
- LOCALBASE=directory-where-lib-and-include-are python setup.py build
- python setup.py install --prefix=same-directory
- Do the same kind of stuff for the rest
[edit]
(Working Area for Me)
[edit]
Setting Up Python
(draw in files through api cause number will definetly change)
function n AKA GMap class a = container b = map types[] c = width d = height e = ??
- document.createElement("div")
- container
- ownerDocument
- style
- overflow
- position
- absolute
- relative
- top
- left
- zIndex
- offsetWidth
- offsetHeight
- appendChild(div)
- innerHTML
[edit]
More Stuff
- mostlikey need pygame to display the png(overlay), gif(map), and jpg(satellite) files
