0.8a released

5 views
Skip to first unread message

Casey Duncan

unread,
Jan 8, 2009, 12:29:56 AM1/8/09
to py-lept...@googlegroups.com
Get it while it's hot:

http://py-lepton.googlecode.com/files/lepton-0.8a.tar.gz

Change list here:

http://code.google.com/p/py-lepton/source/browse/trunk/CHANGES.txt

No new major features in 0.8a, but some useful bugfixes and optimized
goodness. All of the existing CPU-intensive code has now been ported
to C so future work will be centered around new functionality. I've
started working on a game to showcase what lepton can do and to push
the envelope a bit to see what needs work next. Some things that come
to mind are:

- Exposing generalized and fast vector, quaternion and matrix
operations to python so it can interact more efficiently with lepton.
Currently tuples and simple vectors are the order of the day and they
don't have the sort of easy arithmetic functionality exposed to
python. I'll probably put them in a separate package namespace because
they will be generic (I'm thinking "linear", but other more
imaginative suggestions are welcome). They will be included, built and
used by lepton, but could also be distributed separately.

- Using quaternions for rotation and exposing apis to create quats
from euler angles and to convert them to matrices for use in OpenGL.

- New wizbang controllers like Wind, Jet, Magnet, and Target. Wind
will simulate particles moving through a moving or stationary fluid.
Jet will set the velocities of particles inside of one domain to
vectors generated from another domain. Magnet will allow domains to
attract or repulse particles. Target will let you link particles to
goal particles. The particles will match whatever attributes
(position, velocity, size, color, etc) that you select to the goal
particles over time. The goal particles need not be static, and may or
may not themselves be displayed (they will be able to be in separate
groups)

- New domain shapes that can be rotated off axis, including Box,
Cylinder and Cone.

Not all of these things will make it in the next release, but these
are some priorities off the top of my head. Other suggestions welcome.

-Casey

Collin Arnold

unread,
Jan 8, 2009, 4:13:38 PM1/8/09
to py-lept...@googlegroups.com
Casey, I downloaded and tried building 0.8a and have been trying to build it, but I'm getting compile errors under widows with mingw:

C:\Users\coarnold\Documents\Projects\lepton-0.8a>setup.py clean build
running clean
removing 'build\temp.win32-2.5' (and everything under it)
running build
running build_py
running build_ext
building 'lepton._controller' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\lepton
C:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../include -IC:\Python25\include -IC:\Python25\PC
-c lepton/group.c -o build\temp.win32-2.5\Release\lepton\group.o
C:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../include -IC:\Python25\include -IC:\Python25\PC
-c lepton/controllermodule.c -o build\temp.win32-2.5\Release\lepton\controllermodule.o
writing build\temp.win32-2.5\Release\lepton\_controller.def
C:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\lepton\group.o build\temp.w
in32-2.5\Release\lepton\controllermodule.o build\temp.win32-2.5\Release\lepton\_controller.def -L../
lib -LC:\Python25\libs -LC:\Python25\PCBuild -lopengl32 -lpython25 -lmsvcr71 -o build\lib.win32-2.5\
lepton\_controller.pyd
build\temp.win32-2.5\Release\lepton\controllermodule.o:controllermodule.c:(.text+0x1475): undefined
reference to `Vector_new'
build\temp.win32-2.5\Release\lepton\controllermodule.o:controllermodule.c:(.text+0x1486): undefined
reference to `ParticleRefObject_New'
build\temp.win32-2.5\Release\lepton\controllermodule.o:controllermodule.c:(.text+0x17ab): undefined
reference to `Vector_new'
build\temp.win32-2.5\Release\lepton\controllermodule.o:controllermodule.c:(.text+0x17c6): undefined
reference to `Vector_new'
build\temp.win32-2.5\Release\lepton\controllermodule.o:controllermodule.c:(.text+0x1b28): undefined
reference to `ParticleRefObject_New'
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Lepton 0.7a build fine, however, so this is a new problem introduced in 0.8a.  It looks like perhaps a missing header include?

Thanks for any help on this,
--Collin

Casey Duncan

unread,
Jan 8, 2009, 4:26:50 PM1/8/09
to py-lept...@googlegroups.com
Looks like a missing linkage in setup.py, which unfortunately didn't
cause an error on my machine. Try replacing setup.py with the attached
and let me know if that fixes it. If so I'll re-release it with the
change.

Thanks,

-Casey
setup.py

Collin Arnold

unread,
Jan 8, 2009, 5:57:03 PM1/8/09
to py-lept...@googlegroups.com
Yep, that file did the trick.  Thanks for the quick response.

Cheers,
--Collin
Reply all
Reply to author
Forward
0 new messages