[Bf-committers] NDOF patch and plugin for Linux

Ettore Pasquini ettore_pasquini at 3dconnexion.com
Wed Jul 11 01:19:55 CEST 2007


On 7/10/07 1:39 PM, "OS" <olivier.saraja at free.fr> wrote:

> Hi Ettore,
> 
> sorry for my lack of knowledge and background. I still don't have my Space
> Navigator, but I tried to compile the plugin and failed. Here's why/how,
> perhaps you could explain me better what/how to do, and that would eventually
> be useful for the testing of the patch and the plugin.

Hi Oliver, thanks for trying it!

> Le Lundi 9 Juillet 2007 22:41, Ettore Pasquini a écrit :
>> 
>> http://cubelogic.org/blender/ghost-ndof-linux.patch
> 
> I made a svn checkout with jean-Luc commitment of your patch.

I forgot to mention, but  you probably figured it out, that the patch should
be applied from your blender ndof root folder.

> 
>> - copy the plugin into <BL_ROOT>/intern/ghost/intern/3dcnx/linux
> 
> There were no directory 3dcnx/, so I built one, with another linux/ directory
> and put the plugin within.

Correct.

>> - build as indicated inside the plugin source code
> 
> I got no answer in my console after issuing the specified command:
> 
> olivier at olivier-desktop:~/compil/blender-ndof/ndof$ gcc
> intern/ghost/intern/3dcnx/linux/3dcnxplug-lin.c -Iintern/ghost -Wall -lc
> -shared -fvisibility=hidden -o ../build/linux2/spaceplug.plug
> olivier at olivier-desktop:~/compil/blender-ndof/ndof$

No answer is great! Means everything is ok. :-)

> but I successfully got a spaceplug.plug  in the /build/linux2/ directory.

>> - the driver must be running before you start blender
> 
> how to run the plugin before starting blender?

Make sure that in source/blender/src/ghostwinlay.c::window_open_ndof()
you specify the correct path to the plugin. (I have to use the absolute
path, relative doesn't work for me.)
The plugin is loaded by blender with a dlopen() function call (man dlopen
for more info), you can't run it by itself.
If the 3Dconnexion driver is not running, the plugin should abort its
initialization routine and do nothing.

>> Feel free to report any issues and comments.
> 
> Hope this is helpful.

Yes it certainly was. Feel free to let us know any problems you see with the
code and make corrections/suggestions if the implementation doesn't work as
you expected.

Ettore



More information about the Bf-committers mailing list