Crystal Space
Welcome, Guest. Please login or register.
December 18, 2014, 01:32:24 pm

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9288 Members
Latest Member: Lorrainewhite
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  Crystal Space Development / Support / new input driver on: September 07, 2005, 04:12:23 pm
   Hi, 

    My intention is to control a Crystalspace application by virtual gloves. That is, I want to develop a new input control. I have been making tests. For example  I developed a plugin which wraps the mouse driver: It catchs the mouse events, process the information and later pass it to the applicacion. In a real case the information should be read by means of the gloves driver. I had thought the plugin to implement the “iEventHandler” interface and to read the information at the “Preproccess” phase. Is it a good idea? Also I could do it by forking a new thread, but the gloves API is strongly related to the frame-lifecycle: they need to call a specific function every frame.

   Also I’m not sure how the plugin should pass the information to the applications. I had thought two ways:
-   Storing the information in variables. Later the application would read the data from these variables. It is like state information. I’ve seen that some examples use “GetKeyState” to request the state of the keyboard instead of catch the keyboard events. I’ve been making tests in this way and it seems to work.
-   Throwing its own events. If the plugin throws an event… When will it be catched by the application, before the “PreProccess” phase?

If my plugin is listening to Frame events too (“PreProccess”, “Proccess”, “PostProccess”, “FinalProccess”) which handler of both will be the first in proccessing the event the plugin handler or the application handler?

   Thanks in advance
2  Crystal Space Development / Support / Re: Linux: Compiling Crystal Space: "lack of libcstool.a..." on: September 04, 2005, 12:36:29 pm

   It works!!!

   Yesterady I downloaded the "2005-09-03" version. I have made a lot of tests and now I cannot remember it clearly, but It is possible that I tested it with "gcc-3.3" and it didn't work.... but i cannot remember it sad

   This morning I installed the debian's crystalspace packages and I was playing with "walktest" (just for test my opengl installation). After reading your post I tried to compile it with "gcc-3.3" and it works!!!!. I cannot remember whether i tried it yesterday with "gcc-3.3". I think i didn't it but i'm not sure. May be the debian's packages installation solved my problem

    A lot of thanks for your patiente and for your interest (also sorry for my level of english sad )
3  Crystal Space Development / Support / Re: Linux: Compiling Crystal Space: "lack of libcstool.a..." on: September 03, 2005, 11:09:29 am

   Hi,
   
   Sorry, i hadn't reply you before because i was configuring my system in order to achieve it detects OpenGL correctly. Now it does.

   I was using "gcc-4.0". After reading your post i changed the "Jamconfig" file in order to use "gcc-3.3", but the compilation proccess also fails for this version sad I haven't tried it for "gcc-2.95" yet.

   The error log is attached to the message. Also the output of the configure command is attached.

   I run the following command: "jam all -q 2>jam_errors.txt 1>jam_messages.txt".

   Thanks for your attention
4  Crystal Space Development / Support / Re: Linux: Compiling Crystal Space: "lack of libcstool.a..." on: September 02, 2005, 04:31:53 pm
Hi,

   Finally i run the following command:

   # jam all 2>error_jam.txt  1>messages_jam.txt

  I only attach "messages_jam.txt" to the post because of "error_jam.txt" is too big to be attached (2'4MB... it contains a lot of warnings). At a first moment I had compressed both files into a zip file but the forum does not allow this kind of files. The size of the zip is 72K.

   I think that "messages_jam.txt" is the most important of both files. I contains the error message for 'soft3d.so' at the end. Other messages appear too. For example:

<<
...failed C++ ./out/linuxx86/optimize/libs/cstool/vidprefs.o ...
...skipped libcstool.a for lack of libcstool.a(initapp.o)...
>>

   Thanks

5  Crystal Space Development / Support / Re: Linux: Compiling Crystal Space: "lack of libcstool.a..." on: September 02, 2005, 12:08:10 pm

Ok, but.... now i'm not in front of my computer. Here, at work, we use Windows and i cannot make the test. In a few hours i'll post it. Sorry.

I have been reading and.... Is it necessary to set CRYSTAL environment variable? I didn't it yesterday.

Thanks
6  Crystal Space Development / Support / Re: Linux: Compiling Crystal Space: "lack of libcstool.a..." on: September 02, 2005, 12:01:13 pm
0.98 (stable version)
7  Crystal Space Development / Support / Linux: Compiling Crystal Space: "lack of libcstool.a..." on: September 02, 2005, 11:18:59 am
   Now I’m trying to compile Crystal Space in Linux. The Crystal Space package is available for Debian Sid but I prefer to make my own compilation and in this way to group the application in an only directory one.

   I’ve verified that all libs extra are installed: zlib, libpng, libjpeg, freetype2, libmng, ode. The “configure” command detects them successfully, but later the “make” command fails and write a message which says that “sof3d.so” could not compiled for lack of “libcstool.a…”.

   The configure command fails to dectect “cslibs-config” and “cslibs-package”. Can be it the reason?

   Thanks in advance
8  Crystal Space Development / Support / Re: Compiling the tutorial plugin example: unresolved symbols on: September 02, 2005, 08:40:31 am


   Sorry, I had forgotten to include the crystalspacelib. Sorry sad

   A lot of thanks
9  Crystal Space Development / Support / Compiling the tutorial plugin example: unresolved symbols on: September 01, 2005, 02:47:12 pm
Hi,

I’m trying to develop a small plugin. I’ve been reading the tutorial’s section “Create Your Own Plugin”. When I try to compile the code I’m getting errors due to an unresolved external symbols.

On the other hand, I would like to know what kind of project I’ve to select in Visual Studio. I’m using “Console Application” but it seems to be requesting me for a “main” function at the linking phase.

These are the errors (there is another one due to “_mainCRTStartup”):

GlovesPlugin error LNK2001: unresolved external symbol "public: static struct iSCF * iSCF::SCF" (?SCF@iSCF@@2PAU1@A)

GlovesPlugin error LNK2001: unresolved external symbol "void __cdecl csStaticVarCleanup_csutil(void (__cdecl*)(void))" (?csStaticVarCleanup_csutil@@YAXP6AXXZ@Z)

   Thanks in advance
10  Crystal Space Project Development / Development Discussion / new input control on: August 29, 2005, 10:01:11 am
   Hi,

   I’m new to Crystal Space. My intention is to use virtual gloves as input control. I’ve been reading a bit about Crystal programming and still I have to dedicate it more time, but if you could orientate me it would be very helpful to me.

   What I have to do? an input driver or a plugin?
   Where can I find information about it?

   Thanks in advance,

   John
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 3.127 seconds with 17 queries.