Crystal Space
Welcome, Guest. Please login or register.
October 22, 2014, 05:00:22 pm

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8792 Members
Latest Member: Lukerjbgv
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  Crystal Space Development / Support / Re: Is there a way to locate the world coordinates of the mouse cursor? on: January 04, 2009, 10:25:29 am
Excellent. Thanks.
2  Crystal Space Development / Support / Is there a way to locate the world coordinates of the mouse cursor? on: January 03, 2009, 11:41:29 pm
Hey,

Is there a way to know the location of the mouse cursor in world coordinates? And maybe also the mesh/polygon it's on?

Also, I noticed there's a bug with the post-login redirect in the forums. After logging in, I get redirected to:

http://www.crystalspace3d.orghttp//www.crystalspace3d.org/forum/index.php?PHPSESSID=e0b42f03ed76896036358bf6b19263c6&board=2.0

(which obviously doesn't work, 404 error), change it to:

http://www.crystalspace3d.org/forum/index.php?PHPSESSID=e0b42f03ed76896036358bf6b19263c6&board=2.0

fixes it.
3  Crystal Space Development / Support / iCollection on: December 16, 2008, 11:17:51 pm
Hello,

I'm looking into using iCollection for dynamic map loading in my applications. Can you please direct me to a good documentation on the subject? Are there any working examples or tutorials I can use to understand it better?

Thanks.
4  Crystal Space Development / Support / linking errors with plgcspython on: December 16, 2008, 04:20:51 pm
Hello again,

I'm trying to compile plgcspython with msvc9 under Windows XP 64bit, and I'm running into these errors:

Code:
1>cspython.obj : error LNK2019: unresolved external symbol __imp__PyLong_FromVoidPtr referenced in function _PySwigObject_long
1>cspython.obj : error LNK2019: unresolved external symbol __imp__PyString_Format referenced in function _PySwigObject_format
1>cspython.obj : error LNK2019: unresolved external symbol __imp__PyString_FromString referenced in function _PySwigObject_format
1>cspython.obj : error LNK2019: unresolved external symbol __imp__PyTuple_SetItem referenced in function _PySwigObject_format
1>cspython.obj : error LNK2019: unresolved external symbol __imp__PyTuple_New referenced in function _PySwigObject_format

(and many more).

I've checked that my msvc configuration included the path to Python.h and Python26.lib (receiving different errors without them). Everything else under wkstypical.sln compiles just fine.

I also read the documentation about compiling the python binding.

Can anyone try to help me locate the problem please? Thank you.
5  Crystal Space Development / Support / Re: Hey guys i am sorry but can you please help me? on: November 09, 2008, 02:13:22 am
I suggest going for the Visual Studio solution, as I've had some difficulties with the other options. You can download the express edition of VC for free here: http://www.microsoft.com/Express/Download/
6  Crystal Space Development / Support / cannot find entry symbol on: October 31, 2008, 11:31:45 pm
Hey guys,

I've been trying to compile CS for Python here for a few weeks, but I'm still seeing some problems, hopefully you guys can help me out.

I'm getting this error, on both Windows XP, Windows XP 64bit (w/ Cygwin), and with CS v1.4 and the CS trunk:
Code:
LinkSharedLibrary crystalspace-1.9-GCC.dll
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to 69901000

This is followed by many "undefined symbol" messages.

Thanks for your help in advance smiley
7  Crystal Space Development / Support / Re: Compilation Errors on: October 28, 2008, 12:47:26 pm
Thanks smiley
8  Crystal Space Development / Support / Compilation Errors on: October 26, 2008, 08:20:05 pm
Still unlucky. When I try to compile v1.4 or the trunk, I receive the following message right at the beginning:

Code:
LinkSharedLibraryRsp ./out/linux/optimize/libs/libcrystalspace-1.9.so
/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

  g++ -Wl,--as-needed -shared -o ./out/linux/optimize/libs/libcrystalspace-1.9.so -Wl,@./out/linux/optimize/libs/libcrystalspace-1.9.so.resp -Wl,--gc-sections  \
    -lc -lm -ldl -lnsl -L/usr/local/lib -Wl,-z,defs -Wl,--warn-unresolved-symbols -g2 -lz -lpthread -lc -lm -ldl -lnsl -L/usr/local/lib -Wl,-z,defs -Wl,--warn-unresolved-symbols -g2 -Wl,-soname,libcrystalspace-1.9.so

...failed LinkSharedLibraryRsp ./out/linux/optimize/libs/libcrystalspace-1.9.so

I also tried it under windows with Cygwin, same problem. After that, the rest of the compilation process is triggering many messages similar to: "...skipped collada2cs for lack of crystalspace..."

I'm using two AMD 64bit CPUs, does it matter at all? Any ideas what I can do to solve this?

Thanks in advance smiley
9  Crystal Space Development / Support / Re: Python API iObjectRegistry.Get() on: October 22, 2008, 02:28:05 am
That's probably it. I'm on 1.2. I'll just go for 1.4.

Thanks alot Jorrit and Res smiley
10  Crystal Space Development / Support / Re: Python API iObjectRegistry.Get() on: October 20, 2008, 11:38:08 am
Thanks for the swift reply res,

This line:
Code:
vc = object_reg.Get(iVirtualClock)

Is producing this error:
Code:
NotImplementedError: Wrong number of arguments for overloaded function 'iObjectRegistry_Get'.
  Possible C/C++ prototypes are:
    Get(iObjectRegistry *,char const *)
    Get(iObjectRegistry *,char const *,scfInterfaceID,int)
    Get(iObjectRegistry *,scfInterfaceID,int)
    Get(iObjectRegistry *)

object_reg is an instance of iObjectRegistry.
iVirtualClock is a python class, not an instance of one. I'm basically trying to pass the class itself as an argument.

And I agree that there's no need to explicitly access the implementation of iSCF, I was just looking for a workaround for my problem. Also, just for my understanding, in C++ what's "iVirtualClock"? It's an interface right? Can you pass an interface/class name as an argument? in contrast of passing an instance?
11  Crystal Space Development / Support / Python API iObjectRegistry.Get() on: October 20, 2008, 01:53:27 am
Hey guys,

I'm trying to setup the python API environment for CS and CEL. I tested CELStart and all seems to go well, but when I try to follow the tutorials found on the website, I get stuck very early on:
Code:
vc = object_reg.Get(iVirtualClock)
According to the interface, the argument should be an instance of scfInterfaceID, which appears to only be obtainable through iSCF, but for the same reason I can't seem to find how to instantiate iSCF.

Is anyone here familiar with this problem? Is it something I'm doing wrong?

Thanks for your time wink
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 5.136 seconds with 17 queries.