Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 25-Jun-2011 08:57:39

bobo
Member
Registered: 25-Jun-2011
Posts: 2

rebuild OpenNiSOC.dll

I successful rebuilded OpenNiSOC.DLL  with visual studio 2010(I have not modified any code),and replace the original OpenNiSOC.DLL,but  openspace3d have some errors when the openspace3d opened. The following error:

> Error : PlugIT kinect device in file :tools/os3dplugins/input/kinectdevice/ckinectdevice.pkg
File : C:\Program Files (x86)\Scol Voyager\Partition_LockedApp\tools\os3dplugins\input\kinectdevice\ckinectdevice.pkg
(!) Line #257:
      ??_SETKinectDeviceSkeletonSmoothing kinstr.KIN_Device kinstr.KIN_fSmooth;

link error
'_SETKinectDeviceSkeletonSmoothing' unknown


> Error : PlugIT kinect user in file :tools/os3dplugins/input/kinectuser/ckinectuser.pkg
File : C:\Program Files (x86)\Scol Voyager\Partition_LockedApp\tools\os3dplugins\input\kinectuser\ckinectuser.pkg
(!) Line #104:
    let ??_GETKinectUserJointOrientation kuserstr.KINU_User joint fConfidence -> jquat in

link error
'_GETKinectUserJointOrientation' unknown

Offline

#2 25-Jun-2011 09:47:18

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: rebuild OpenNiSOC.dll

Hi and welcome

Your dll is not loaded. Verify in the log file.

The current Scol source (http://redmine.scolring.org) is a new version to load a dll, no compatible with the old kernel.
( Try ScolLoadPlugin and ScolUnloadPlugin functions )

Offline

#3 25-Jun-2011 11:54:28

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: rebuild OpenNiSOC.dll

hmm yes I began to change some things on this DLL but I didn't have the time to finish yet ^^

Offline

#4 25-Jun-2011 13:31:35

bobo
Member
Registered: 25-Jun-2011
Posts: 2

Re: rebuild OpenNiSOC.dll

TKS,Iri and Arkeon !
Arkeon ,i can not quite understand what you said above. How to load the OpenNiSOC.DLL which i have changed and rebuilded sucessfully into OpenSpace3D?
In  addition, when i want to add a new plugin ,i need modify the code or add two PKG, one XML file, and modify usm.ini?

Offline

#5 25-Jun-2011 13:56:10

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: rebuild OpenNiSOC.dll

The old loader was perfected.
The current Scol release use the old system yet.

The current plugins source use a new loader (they are not in the current release, ok, this is a development version).


Currently, to add a Scol plugin, it's easy. You must add a line to the usm.ini file. That's all.

Offline

#6 25-Jun-2011 22:25:51

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: rebuild OpenNiSOC.dll

haa right Iri I forgot this change ^^

about what I said before, i made some change in openNIdll, yes it compile and work for basic things buts last works like angle and dist detection are not finished yet

to have the curent dev version working,
copy all the scol_sdk/release directory in place of your scol/ and directories from scol_applications/scolvoyager and scol_applications/openspace3d in lockedApp partition (in the good directories)

remove all load and free functions name in the usm.ini for each dll

and it should start ^^

Offline

#7 25-Jun-2011 23:18:55

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: rebuild OpenNiSOC.dll

@Arkeon

About plugins, try to load like this :

/* Hard load and unload the library */
#if defined _WIN32 || defined __WIN32__

#define SCOL_LIBXML2_PLUGIN_EXPORT __declspec (dllexport)
#define SCOL_LIBXML2_PLUGIN_EXPORT_ARG (mmachine m, cbmachine w)

#elif defined linux || defined __linux

#define SCOL_LIBXML2_PLUGIN_EXPORT
#define SCOL_LIBXML2_PLUGIN_EXPORT_ARG (mmachine m)

#else
/* to define others OS  if needed */
#error no platform supported

#endif


SCOL_LIBXML2_PLUGIN_EXPORT int ScolLoadPlugin SCOL_LIBXML2_PLUGIN_EXPORT_ARG
{
    ww = w;
    mm = m;

    SCOLinitplugin (w);
    return SCOLinitLIBXML2class (m);
}


SCOL_LIBXML2_PLUGIN_EXPORT int ScolUnloadPlugin()
{
    xmlCleanupParser ();
    xmlMemoryDump ();
    MMechostr (MSKDEBUG, "LIBXML2 library : released\n");
    return 0;
}

Compatible Windows and Linux (and MacOS in the future) smile

If c++, add an

extern "C"

Offline

Board footer

Powered by FluxBB