Re: [cgkit-user] cgkit on Ubuntu 8.10
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2009-02-11 20:14:17
|
Hi Helga, > I have built cgkit on Ubuntu 8.10 Intrepid Ibex without any serious > errors. I tested some scripts which I made some years ago under > Windows, but unfortunately they are not working the way I remember > they did. At least camera movement seems missing. When running the > provided unittests I get segmentation faults for most tests, see > appendix. Also, if I try to import from cgkit.all at the python > shell, there's a segmentation fault and the python interpreter quits. What version of cgkit is this (alpha8)? Is your OS 32bit or 64bit? Is there anything "special" about your system (like: are there several versions of Python available, is it a custom build, etc)? Where does the Boost library come from (it must be built against the correct Python version)? Was there any warning when building the C++ support library or the wrappers? Which optional libraries did you include in the build (lib3ds, CyberX3D, ...)? > $ python Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] > on linux2 Type "help", "copyright", "credits" or "license" for more > information. >>>> from cgkit.all import * > Segmentation fault $ Can you also try: >>> import cgkit._core Does this also segfault? (this is the module that contains the C++ wrappers which is probably the only thing that can actually segfault, but I saw that the bounding box unit test succeeded and that one is using the module as well, so maybe the crash is somewhere else) If this should succeed, can you try importing individual modules instead of cgkit.all (such as cgkit.cgtypes)? Otherwise have a look where the dependent libraries come from using ldd on cgkit/_core.so (this is wherever you installed the package or still inside the build directory). > $ for i in test_*; do echo; echo _____________ $i ____________; > python $i; done By the way, there is a script all.py which just does that. > _____________ test_arrayslots.py ____________ test_arrayslots.py:11: > Warning: 'as' will become a reserved keyword in Python 2.6 ... > test_arrayslots.py:233: Warning: 'as' will become a reserved keyword > in Python 2.6 This is not related to your problem, but I have changed those variable names (I haven't checked cgkit with Python 2.6/3.0 yet). I noticed that the source archive also doesn't contain the data directory which contains files that are used by some tests. I have changed that as well, so that the next release will include those files. Cheers, - Matthias - |