summaryrefslogtreecommitdiff
path: root/cad/src/experimental/pyrex-opengl/README
blob: e309de0b01844dee512e37585fc748ba85b512fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83


 Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 

Wed Mar 15 17:16:49 EST 2006 - wware
------------------------------------

The code in the cad/src directory has been changed to expect the quux.so
library to be in cad/bin rather than this directory. If you are a developer
then you'll need to copy it to cad/bin manually. (Maybe I'll modify the
makefile to do this.)

This was for the benefit of release building. Later I will plan to change the
name 'quux' to something more informative like 'shapeRenderer' or some such.
This change will apply to both release builds and developer builds.

Refer to Bruce's email of Mar 15, 2006 4:06 PM for more ideas about what
might need to be changed.


Mon Feb  6 22:21:28 PST 2006 - grantham
----------------------------------------
How to test today's code:

    Assuming Python 2.3 or 2.4 installed

    Assuming OpenGL 1.1 or better installed

    On Windows:

        Install Dev-Cpp 4.9.9.2 (from http://www.bloodshed.net/devcpp.html)
            If you are using "Cygwin" for anything, you may need to put
            /cygdrive/c/Dev-Cpp/Bin (or c:/Dev-Cpp/Bin, but not tested)
            in your $PATH before any Cygwin directories.
            (PATH=/cygdrive/c/Dev-Cpp/Bin:$PATH)

        Install Pyrex 0.9.3.1 (from http://nz.cosc.canterbury.ac.nz/%7Egreg/python/Pyrex/Pyrex-0.9.3.1.tar.gz)
            You can also try the win32 version of the Pyrex installer,
            but I had some trouble making that work and eventually
            just downloaded the source and ran the python install
            script.  (It's possible my trouble was because I had been using
            the wrong Python version for a short time.)

        % cd experimental/pyrex-opengl
        % make          # should build the DLL directly.
        % cd ../../

        Edit selectMode.py, set TEST_PYREX_OPENGL to "True".

        % python atom.py

        When you enable atom selection, you should immediately see some
        colored spheres.

        I just followed this procedure on my laptop, so I'm reasonably
        confident about it.

    On Linux:

        Tested under Gentoo Linux with pyrex-0.9.3, pyopengl-2.0.0.44,
        dev-python/numeric-23.7, PyQt-3.14.1-r1,
        dev-python/imaging-1.1.4, and python-2.4.2 merged.  (Those are
        the ebuilds that that resulted on my system from the command:
        "emerge python numeric pyrex PyQt pyopengl dev-python/imaging")

        % cd experimental/pyrex-opengl
        % make          # should build the DSO directly.
        % cd ../../

        Edit selectMode.py, set TEST_PYREX_OPENGL to "True".

        % python atom.py

        When you enable atom selection, you should immediately see some
        colored spheres.

        I just followed this procedure on my laptop, so I'm somewhat
        confident about it.  But I ran it from "coLinux", which is a
        Linux kernel running side-by-side with Windows, and I ran
        ne-1 to the Cygwin/X server.  (www.colinux.org)  It actually
        ran pretty well.