Flexnet License Vendor Daemon Development
Overview
This page describes how to build the DDC-I FLEXnet Daemon (ddciflex.exe) and supporting Flexnet applications required for a DDS release. DDC-I products use three versions of FLEXnet, 10.1.3, 10.8.0.7, and 11.9.1. Supporting applications are built using all three versions of FLEXnet for various puposes. Visual Studio 2005 is required for building FLEXnet and the supporting applications. Currently, everything is under configuration management control using SVN at the following url (https://deos.ddci.com/svn/DDCI/products/DDCI_Flexnet/). Because Visual Studio 2005 is required and installed only on the scorebuild machine, all the files are currently checkout on scorebuild in D:\DDCI_Flexnet.
NOTE: This page does not address older DDC-I products such as DACS which use the ddciada.exe FlexLM daemon.
DDCI_Flexnet Directory Structure
- DDCI_Flexnet_10.1.3
- CheckoutFeature
- FLEXnet_10.1.3
- DDCI_Flexnet_10.8.0.7
- CheckoutFeature
- FLEXnet_10.8.0.7
- SCORE_DLL
- DDCI_Flexnet_11.9.1
- CheckoutFeature
- DeosIntegDLL
- FLEXnet_11.9.1
- javaflexlic
- FLEXnet_Downloads
- FLEXnet_10.8.0.7
- FLEXnet_11.9.1
CheckoutFeature Directories
The CheckoutFeature directories contain Microsoft Visual Studio 2005 projects/solutions for building 3 executables, one for each version of FLEXnet, that are used by OpenArbor to check out license features for license borrowing (see DDCI_PCR:2050 for more details). When successfully built, the Release directory will contain an executable called checkout_<flexversion>_Feature.exe that must be copied to \\nx3000\openarbor\Downloads\BuildResources to be properly built into an OpenArbor release.
Building CheckoutFeature:
- RDC to scorebuild
- Login as "scoretest", password "scteorste1"
- Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005
- File | Open | Project/Solution
- Navigate to the CheckoutFeature directory you wish to build, Open checkoutFeature.sln
- Build | Build checkout_<version>_Feature, where <version> is a the Flexnet version you are working on (ie. 10_1_3).
FLEXnet_<version> Directories
The FLEXnet directories each contain the installed FLEXnet versions and their supporting libraries and executables. Each one contains an "i86_n3" and "machind" directory where a small set of files has been updated to produce a DDCI specifc version of flexnet. The details of that are beyond the scope of this wiki page, but is properly documented in each FLEXnet version's documentation. Currently, DDC-I distributes the 11.9.1 version of the ddciflex.exe, and it's supporting executables.
To Build:
- RDC to scorebuild
- Login as "scoretest", password "scteorste1"
- Must use Visual Studio 2005 (from a command prompt)
- Click on Start -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
- In the command window, enter:
- D:
- cd DDCI_Flexnet\DDCI_Flexnet_11.9.1\FLEXnet_11.9.1\i86_n3
- build MT
The following list of files are distributed by DDC-I: (pic is from an installation of FLEXnet 11.9.1)
SCORE_DLL Directory
The SCORE_DLL directory contain Microsoft Visual Studio 2005 project/solution for building the SCORE.DLL with FLEXnet 10.8.7, used by SCORE and TRAC to checkout licenses. When successfully built, the Release directory will contain an dll called SCORE.dll that the SCORE and TRAC teams use in their build process (contact DM).
Building SCORE_DLL:
- RDC to scorebuild
- Login as "scoretest", password "scteorste1"
- Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005
- File | Open | Project/Solution
- Navigate to D:\DDCI_Flexnet\DDCI_FLEXnet_10.8.7\SCORE_DLL, Open SCORE.sln
- Build | Build SCORE
DeosIntegDLL Directory
The DeosIntegDLL directory contain Microsoft Visual Studio 2005 project/solution for building the SCORE.DLL with FLEXnet 11.9.1, used by the Deos IT tool to checkout licenses. When successfully built, the Release directory will contain an dll called ddcix11.dll that the Deos IT team uses in it's build process (contact GK).
Building DeosIntegDLL:
- RDC to scorebuild
- Login as "scoretest", password "scteorste1"
- Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005
- File | Open | Project/Solution
- Navigate to D:\DDCI_Flexnet\DDCI_FLEXnet_11.9.1\DeosIntegDLL, Open ddcix11.sln
- Build | Build ddcix11
javaflexlic Directory
The javaflexlic directory contain Microsoft Visual Studio 2005 project/solution for building the javaUtil.dll with FLEXnet 11.9.1, used by the OpenArbor to checkout licenses. When successfully built, the Release directory will contain an dll called javaUtil.dll that is released via the com.ddci.common.ide\lib directory of OpenArbor.
Building javaflexlic:
- RDC to scorebuild
- Login as "scoretest", password "scteorste1"
- Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005
- File | Open | Project/Solution
- Navigate to D:\DDCI_Flexnet\DDCI_FLEXnet_11.9.1\javaflexlic, Open javaflexlic.sln
- Build | Build javaflexlic
FLEXnet_Downloads
This directory contains the installation media for the various versions of FLEXnet.
Java Licensing Installation Instructions (deprecated)
NOTE: ***Because license borrowing is not supported with Java via FLEXnet, this method of licensing is no longer being used!
32 Bit Installations
- Flexnet Publisher (FNP) 11.7 (or higher) supports Windows 7.
- Downloaded the 32bit and 64bit version of the Java 1.6 SDK (required by Java Licensing toolkit)
- Username & Password are found here:
- Lotus Notes Contracts/Maintenance database "FLEXERA/Acresso FLEXnet Contract"
- Using machine: SCOREBUILD (D drive)
- Chose 11.9.1 because the Java toolkit was not available yet for 11.10.
- FlexNetLicensingToolkitForJava-v11.9.1.0.msi (toolkit needed to build lmgr11.dll for Java Licensing)
- i86_n3-11.9.1.zip (32bit v of FNP)
- x64_n6-11.9.1.zip (64bit v of FNP)-f
- fnp_JavaProgGuide.pdf (Java Programming Guide)
- fnp_LicAdmin.pdf (License Adminstration Guide)
- Decided to start with the 32bit v and build it to see if all the 32bit machines (Windows7 & XP) still work with this new version.
- Unzipped i86_n3-11.9.1.zip to D:\FLEXnet_11.9.1 on scorebuild\D$
- Watched a training video for Flexera "Getting Started"
- Update D:\FLEXnet_11.9.1\machind\lm_code.h. I updated the following lines (based on what was in 11.6.1)
- VENDOR_KEY values
- LM_SEED values
- VENDOR_NAME
- LM_STRENGTH value
- TRL_KEY values
- Edit i86_n3\makefile to change the VENDORNAME there to ddciflex to match VENDOR_NAME in lm_code.h
- Rename i86_n3\demo.rc to i86_n3\ddciflex.rc
- Build the Native toolkit using Visual Studo nmake cmd.
- Open a Visual Studio command prompt (Start | Microsoft Visual Studio 2005 | Visual Studio Tools | Visual Studio 2005 Command Prompt)
- cd to the i86_n3 directory
- nmake -f makefile DLL=1
- This builds the vendor daemon (ddciflex.exe, lmgr11.dll) and other tools...lmcrypt.exe, etc.
- lmcrypt.exe is used by the LicenseGenerator to encrypt license files. NOTE: Need to update the license generator with this new #:file.
- Install the Licensing Toolkit for Java (FlexNetLicensingToolkitForJava-v11.9.1.0.msi ).
- Refer to the fnp_JavaProgGuide.pdf downloaded from Flexera.
- By default this gets installed into C:\Program Files\FNP\FlexNet Licensing Toolkit for Java 11.9.1.0\
- Copy the build.py script over from the 11.6.1 installation (JSW wrote this to automate the build process for the Java Toolkit steps).
- Edited this file as needed to follow the documentation for the 11.9.1. release of the Java Licensing Toolkit.
- Execute the script (python build.py) in the C:\Program Files\FNP\FlexNet Licensing Toolkit for Java 11.9.1.0\java directory.
- Put the following files in the com.ddci.score.ide\lib directory (so it gets delivered in the plugin zip file)
- ddciInfo.jar
- EccpressoAll.jar
- flexlm.jar
- These files appear to be the "same" for both the 32bit toolkit and the 64bit toolkit (same size & date of the files). So these files should work for both installations! WOOT!
- The License Generator and DDC-I Flex installation scripts need to be updated with the new versions of all the "stuff" built. Coordinate this with DM
64 Bit Installation
Free Visual Studio compiler and 64bit add-on Info Here:
- http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express
- http://en.wikipedia.org/wiki/Windows_SDK
- http://msdn.microsoft.com/en-us/library/ff660764.aspx
Download Here:
- http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
- http://www.microsoft.com/download/en/details.aspx?id=8279
More Info Here:
On TESTW7P2 I downloaded and installed the following two files:
- vc_web.exe (visual studio 2010 express)
- winsdk_web.exe (windows sdk)
I could then open a Visual Studio Command Prompt (2010) and run the SetEnv.cmd /x64 option to setup 64bit compilation environment.
I downloaded and installed the 64bit version of FLEXnet 11.9.1 and the Java Licensing Toolkit FlexNetLicensingToolkitForJava-v11.9.1.0.msi
- x64_n6-11.8.1.zip
- jdk-6u27-windows-x64.exe (Java 6 jdk)
Followed the same instructions as above for the 32bit file updates, etc in the FLEXnet installation.