Nice investigating, Michael.

I'm concerned that you had to change $RegistryName to @RegistryName.
The idea of using XSLT is that it works on all target platforms.
If @RegistryName does not work on Linux (I suspect it doesn't),
we'll have to abandon Microsoft's MSXSL.EXE and use a tool like
the one Paul found.

Paul, Thanks for finding the alternative.

Cheers,
    -gww


-----Original Message-----
From:   Paul Dietrich
Sent:   Thu 4/10/2008 8:05 AM
To:     [EMAIL PROTECTED]; [EMAIL PROTECTED]; LLRP Toolkit Development List
Cc:     
Subject:        RE: LLRP C++ Toolkit

Michael,

 

I'm sorry for this problem. We have put much more effort into linux
builds. I tried again here on my machine and didn't see the problem.  I
realized why.  I'm not using msxsl.exe I have a modified gencode.bat
that uses xsltproc.  My version of xsltproc is:

 

Using libxml 20630, libxslt 10122 and libexslt 813

xsltproc was compiled against libxml 20630, libxslt 10122 and libexslt
813

libxslt 10122 was compiled against libxml 20630

libexslt 813 was compiled against libxml 20630

 

and I believe I got it from http://www.zlatkovic.com/libxml.en.html.

 

rem THIS IS NOT WORKING AND I CAN NOT FIGURE OUT WHY

 

rem #

rem # This runs MSXSL.EXE to generate two files used by LTKCPP.

rem #

rem # You can download MSXSL.EXE from this URL

rem #
http://www.microsoft.com/downloads/details.aspx?FamilyId=2FB55371-C94E-4
373-B0E9-DB4816552E41&displaylang=en

rem #

rem # Or do a websearch for

rem #   MXSXL.EXE download

rem # and choose the Microsoft site

rem #

rem # This BAT script assumes that MSXSL.EXE is in the current directory

 

set LLRPDEF=..\..\Definitions\Core\llrp-1x0-def.xml

 

xsltproc --stringparam RegistryName Core -o out_ltkcpp.h
ltkcpp_gen_h.xslt %LLRPDEF%

xsltproc --stringparam RegistryName Core -o out_ltkcpp.inc
ltkcpp_gen_cpp.xslt %LLRPDEF% 

 

With this I was able to build libltkcpp project and build and run the
example1 project.  Libltkcppllrporg is not necessary.  Needless to say,
we will investigate why msxsl.exe does not perform the transformation
correctly.

 

Paul

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 1:37 AM
To: [EMAIL PROTECTED]
Subject: LLRP C++ Toolkit

 

I have downloaded the C++ toolkit but have been unable to build it. The
first problem occurred when running the gencode.bat file - the
stylesheet transformation failed with error number: 

 

0x80004005 

"A reference to variable or parameter 'RegistryName' cannot be resolved.
The variable or parameter may not be defined, or it may not be in
scope."

 

The gencode batch file even has a comment stating "This is not working
and I can not figure out why".

 

After some investigation, I found that the references to RegistryName in
the two xslt files had been entered as '$RegistryName' - changing this
to '@RegistryName' resolved the transformation error.

 

Then, following the build instructions from the Wiki, I tried to build
the Visual Studio solution. The build fails with two errors:

 

*       In libltkcpp, the error is in ltkcpp_genout.cpp and is "error
C3861: 'enrollCoreTypesIntoRegistry': identifier not found"
*       In libltkcppllrporg, the error is in llrporg_ltkcpp.h and is
"fatal error C1083: Cannot open include file: 'out_llrporg_ltkcpp.h: No
such file or directory 

 

The remaining projects in the solution all fail because the two
libraries weren't built.

 

If this is not the correct email for this sort of issue, I would
appreciate it if you could forward this to the right place. 

 

Thanks in advance!

 

Regards

 

Michael Pyne

Software Engineer

De La Rue Identity Systems

Jays Close, Basingstoke

Hampshire RG22 4BS

England

(O) +44 1256 487754

(F) +44 1256 605299

[EMAIL PROTECTED]

www.delarue.com

 

 

 





-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to