Knowledgebase Home | Favorites | Login Knowledgebase Home | Favorites | Login
Search the Knowledgebase Browse by Category or Article ID
Using a pre-compiled LM-X SDK
User Opinions (0 votes)
No users have voted.

How would you rate this answer?
Helpful
Not helpful
Article ID: 211

Last Updated: 29th January 2010 01:16:39 pm

Typically, the first time you use the LM-X SDK, you need to compile it using nmake or gnu make, depending on your platform. This one-time compilation of the SDK creates the security configuration file vendor.lmx (if it doesn't already exist) and compiles examples and platform-specific files.

As of LM-X v3.3, the LM-X SDK doesn't require compilation. For example, say you want to use MinGW under Windows in a version not supported by X-Formation, or you want to use a vendor-provided compiler on Unix platforms like HP-UX or AIX. For such cases, the pre-compiled SDK lets you forgo the need to do an initial compilation and proceed with using both the license server and license client.

To use the pre-compiled SDK, you must create a security configuration file, if you don't already have one. You only need to create the security configuration file once, which is normally done by running lmxdev from the config directory as follows:

C:\lm-x\win32_x86\config>..\win32_x86\lmxdev.exe -genconfig test.lmx

The above example will create the file test.lmx in the config directory.

To use the pre-compiled SDK, embed the security configuration file into the provided client library and license server. This is done from the no_security_config directory.

To embed the security configuration file into the client library file, run the following command:

C:\lm-x\win32_x86\no_security_config>..\lmxdev.exe -embedsecurityconfig ..\..\config\test.lmx liblmx-xformation.dll
LM-X Developer Tool v3.3
Copyright (C) 2002-2010 X-Formation. All rights reserved.


Licensed to X-FORMATION

Security configuration successfully embedded!


To embed the security configuration file into the license server file, run the following command:
 
C:\lm-x\win32_x86\no_security_config>..\lmxdev.exe -embedsecurityconfig ..\..\config\test.lmx lmx-serv-xformation.exe
LM-X Developer Tool v3.3
Copyright (C) 2002-2010 X-Formation. All rights reserved.

Licensed to X-FORMATION

Security configuration successfully embedded!


After embedding the security configuration file into the license server file and client library file, you can generate license files using xmllicgen and compile applications using the provided library.

Note: The example extendeddll provides a template on how to use the dll library.

Related Content
Related Articles
Attachments
No attachments were found.
All Content Copyright © 2002-2010 X-Formation. All Rights Reserved.