Crystal Space
Welcome, Guest. Please login or register.
January 17, 2017, 02:03:13 pm

Login with username, password and session length
Search:     Advanced search
8993 Posts in 2044 Topics by 30292 Members
Latest Member: Rickiesg
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  Crystal Space Development / Support / Re: problem running python tutorial with crystalspace 1.4 on: December 15, 2009, 10:36:43 pm
I have tried quite a few things, let me summurise:

- I have walked into the python debugger through, and some plugins are loaded Ok, some are not because there symbol in python is lost.
I have reduced the python test case to what seems a minimal length:

import sys

from cspace import *

object_reg = csInitializer.CreateEnvironment(sys.argv)

def Report (severity, msg):
    csReport(object_reg, severity, "crystalspace.application.python", msg)

if not csInitializer.SetupConfigManager(object_reg):
    Report(CS_REPORTER_SEVERITY_ERROR, "Couldn't init app!")

plugin_requests = [CS_REQUEST_IMAGELOADER]
if not csInitializer.RequestPlugins(object_reg, plugin_requests):
    Report(CS_REPORTER_SEVERITY_ERROR, "Plugin requests failed!")

The 'iImageIO' symbol is still valid until the code enter  csInitializer.RequestPlugins(object_reg, plugin_requests), where for some reasons it get losts.
From there, since I am not expecting a symbol to disappear magically, I suspect that some code in python or generated swig has done some evil things.
I have tried:
python 2.6.4 + swig 1.3.36 => ko
python 2.5.4 + swig 1.3.36 => ko
python 2.5.4 + swig 1.3.31 => ko

so, when falling to python 2.5 and swig 1.3.31, I thinck I am back to 'rather stable' (I have done a quick search on the swig tracker but did not find anything striking).

So, before going into very new thing for me which would be to step into python code to understand what is happening, can someone state the version of python, swig, gcc that is working for you on release crystal 1.4 ? Please tell me if you are compiling 'optimized' code or debug.

Best regards,

2  Crystal Space Development / Support / Re: problem running python tutorial with crystalspace 1.4 on: December 14, 2009, 07:56:21 am
Unfortunatly, this is not due to Swig versions.

iImageIO symbol and few others are still undefined, while other are ok. So, I am recompiling
 with a log to check if something usable is generated to track the problem.

3  Crystal Space Development / Support / Re: problem running python tutorial with crystalspace 1.4 on: December 12, 2009, 09:41:46 pm
Ha! I thinck I have found:

In the python tutorial, it is mentionned 'swig > 1.3.33 might cause Crash. Since configure was simply looking for better than some version, I assumed it was ok !
The latest ubuntu distributions comes with 1.3.36. So, I am recompiling everything with that and keep updated in that post.

Best regards,

4  Crystal Space Development / Support / Re: problem running python tutorial with crystalspace 1.4 on: December 12, 2009, 09:29:03 pm
Thanck you for the input. I have tried something even more radical: I have installed the debian package created by 'caedes', and I have the same problem. So,ithas to be a bad manipulation on my side.

I'll learn more about python, review the python tutorial on the web site that I thought I did follow step by step, and see.

Best regards,

5  Crystal Space Development / Support / problem running python tutorial with crystalspace 1.4 on: December 10, 2009, 09:41:51 pm

I have downloaded the latest 1.4 from SVN here:
I am running on xubuntu 9.10, and was able to compile everything, install and get walktest to work.

Now, my goal is to go ahead with python bindings. I was trying to run an example to make sure environment was ok before
 doing more complicated stuff. It failed for a reason that I have hard time to identify (note: I am a beginner in python, so something obvious might be happening ...).

The command I am trying is:

seb@seb-laptop:~/Dev/crystal-1.4$ python scripts/python/
Traceback (most recent call last):
  File "scripts/python/", line 180, in <module>
    if not csInitializer.RequestPlugins(object_reg, plugin_requests):
  File "/usr/local/share/crystalspace-1.4/bindings/python/cspace/", line 2509, in _csInitializer_RequestPlugins
    lambda x: _get_tuple(x), plugins):
  File "/usr/local/share/crystalspace-1.4/bindings/python/cspace/", line 2509, in <lambda>
    lambda x: _get_tuple(x), plugins):
  File "/usr/local/share/crystalspace-1.4/bindings/python/cspace/", line 2504, in _get_tuple
    return tuple(x())
  File "/usr/local/share/crystalspace-1.4/bindings/python/cspace/", line 2540, in CS_REQUEST_IMAGELOADER
NameError: global name 'iImageIO' is not defined

I am not sure how to debug that since the binary works and finds the plugins. Any advice on how to debug that
or an info stating that python binding is working for him ?

Additional info:
Python 2.6.4 (r264:75706, Nov  2 2009, 14:38:03)

Best regards,

6  Crystal Space Development / Support / Re: Loading a mesh dynamically on: November 13, 2007, 08:17:13 am

Ok, I understand now.

Thancks for the info,

7  Crystal Space Development / Support / Re: Loading a mesh dynamically on: November 12, 2007, 08:15:09 am
Version informations:
 CEL 1.2
 CS  1.2
 Win xp SP2
 Radeon X700
 Visual C++ 8.0
 libs: 1.2_002
8  Crystal Space Development / Support / Loading a mesh dynamically on: November 12, 2007, 08:11:33 am

I am trying to load a mesh dynamically into my application. I am loading the mesh using the following code
(CEL+C2 1.2) :

clock_mesh_entity = pl->CreateEntity ("clock_mesh_entity", bl, "level_behave",
  if (!clock_mesh_entity)
    return ReportError ("Error creating clock entity!");

  csRef<iPcMesh> pcmesh = CEL_QUERY_PROPCLASS_ENT (clock_mesh_entity, iPcMesh);

     // Load the 3ds model of the clock ...
  csRef<iPluginManager> plugin_mgr = csQueryRegistry<iPluginManager> (object_reg);
  csRef<iModelLoader>   dsLoader = csLoadPlugin<iModelLoader> (plugin_mgr,
  csRef<iMeshFactoryWrapper> ff = dsLoader->Load("clock","/this/Models/Clock/clock.3ds");

Now, I don't see my mesh. I know the 3ds is valid because if I use a billboard and call 'DrawMesh' I see
 my clock in the billboard. So, Does that code should normally work or is there something fundamental
 in the way of displaying meshes by code that I am missing in the code ?

Thancks for any input,

Best regards,

9  Crystal Space Development / Support / Re: Problems with java bindings on: October 18, 2007, 07:36:10 pm
An information for those trying to find info through a 'search' on the forum:

With crystal space 1.2, under windows MinGW,

 don't put your java SDK under 'Program Files' (because of the space).
The configure/MinGW seems to hates that and can't generate a correct -I for the compiler.

Instead put the java SDK under anything but with a path that has no space in it.

Then, compilation with latest JDK 6 works for me.

Best regards,
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.172 seconds with 16 queries.