There is a file gencode.bat in the LTKCPP library directory. This will generate 
the files you are looking for.  It requires xsltproc, which is available for 
download via the internet.

Paul

________________________________
From: Klaus Holst Jacobsen [mailto:[email protected]]
Sent: Monday, December 21, 2009 2:47 AM
To: LLRP Toolkit Development List
Subject: Re: [ltk-d] How to add Impinj (or other) extensions to LTKCPP bui ld

Gordon,

Thanks for your response.
I've come a little further.
I see the llrp.org example extension in the visual studio project, but it does 
not compile until you've generated the .h and .inc files for the extension. 
This means modifying the gencode.bat file to also generate code for the 
extension.
I've succeeded in doing this for both the LLRP.Org example extension and also 
for the Impinj extensions.
One thing that puzzles me though is the fact that in the generated files I find 
the following function:

Void enrollCoreTypesIntoRegistry (CTypeRegistry *pTypeRegistry)
{

    pTypeRegistry->enroll(&CIMPINJ_ENABLE_EXTENSIONS::s_typeDescriptor);
    
pTypeRegistry->enroll(&CIMPINJ_ENABLE_EXTENSIONS_RESPONSE::s_typeDescriptor);
    pTypeRegistry->enroll(&CIMPINJ_SAVE_SETTINGS::s_typeDescriptor);
    ...
}

But I would expect it to be called enrollImpinjTypesIntoRegistry(...) in order 
to avoid name clashing with the core enrolment function.
Can you clarify this for me?

//Klaus

________________________________
From: Gordon Waidhofer [mailto:[email protected]]
Sent: 21. december 2009 05:24
To: LLRP Toolkit Development List
Subject: Re: [ltk-d] How to add Impinj (or other) extensions to LTKCPP build

Howdy Klaus,

I'm afraid I haven't time to dig into this. It has been a long while since I 
looked at this stuff. Here's what I recall...

If you haven't found instructions for Windows there probably aren't any.

There is an example extension for LLRP.org. It doesn't do anything but provide 
an example. It was put in place to help illustrate how an example is added. I 
looked and the Visual Studio project for LTKCPP does -- I believe -- include th 
LLRP.org extensions.

Normally when I build LTKCPP I use a network drive. I build on Linux first, 
then build using Visual Studio. The files generated by the Linux build are 
reused for the Visual Studio build.

I'm sure this wasn't what you were hoping for. But I hope this helps a little.

Regards,
    -gww

________________________________
From: Klaus Holst Jacobsen [[email protected]]
Sent: Sunday, December 20, 2009 12:20 PM
To: LLRP Toolkit Development List
Subject: [ltk-d] How to add Impinj (or other) extensions to LTKCPP build
Hello!

I'm building the LTKCPP libs using MS visual studio.
So far I've managed to build the standard 1.0.0.5 LTKCPP library.

But I would like to add Impinj extensions.
I've had a look at 
http://sourceforge.net/apps/mediawiki/llrp-toolkit/index.php?title=Extensions_in_LTKC_(CPP)#Building_Extensions_in_LTKC.28CPP.29
But it seems to only explain how to add extensions in a linux environment.

Is there a place where I can find instructions on how to add extensions in a 
MS/win32 environment?
For example how do I generate a out_xxx_ltkcpp.inc file. I guess by 
manipulating gencode.bat, but it would be nice with some kind of instructions.

Please help.

//Klaus Jacobsen


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to